Broadband connection with fixed IP

Discussion in 'Server Operation' started by satimis, Jan 6, 2007.

  1. satimis

    satimis Member

    Hi folks,

    Ubuntu-6.06.1-LAMP-server-amd64

    Now I'm running Static IP (fixed IP)

    Connection;
    Ubuntu server --> Router --> Modem --> ISP

    Which file I have to edit to setup broadband connection? TIA

    The Router is supplied by ISP with pre-set Virtual IP;
    192.168.0.10 to 192.168.0.60


    If making the connection without router;
    Ubuntu server --> Modem --> ISP

    What shall be the settings. Tks


    B.R.
    satimis
     
    Last edited: Jan 6, 2007
  2. falko

    falko Super Moderator Howtoforge Staff

    Why do you want to leave out the router? :confused:
    I guess 192.168.0.10 to 192.168.0.60 is the DHCP range for your local network, so you can assign another IP address to your Ubuntu system, e.g. 192.168.0.61. This can be done in /etc/network/interfaces. Take a look here: http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p3
     
  3. satimis

    satimis Member

    Hi falko,

    Tks for your advice and link.

    Just for curiosity. I'm planning to build a working ISP server with CentOS as OS on an AMD Athlon64 X2 AM2 box. The static broadband shall be used solely by the server. In such a case I don't need the router.

    I called ISP about the router in order to learn more about it. The reply was "don't touch it".

    If I understood your advice correctly. On a 2nd Ubuntu box plugged on the router I have to edit /etc/network/interfaces as follow;
    Code:
    auto eth0
    iface eth0 inet static
    address 192.168.0.61
    netmask 255.255.255.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    
    ?????

    Remark: ISP preset router as follow:
    Code:
    	
    Suggested Virtual IP: 	192.168.0.10 to 192.168.0.60
    Default Gateway: 	192.168.0.1
    NetMask: 	255.255.255.192
    	
    DNS Server: 	xxx.xxx.xxx.xxx
    WAN IP: 	xxx.xxx.xxx.xxx
    NetMask: 	255.255.255.255
    
    What about On 3rd Ubuntu box "192.168.0.???" etc. ?

    Shall I make change on "NetMask"???

    TIA

    B.R.
    satimis
     
  4. falko

    falko Super Moderator Howtoforge Staff

    It's
    Code:
    auto eth0
    iface eth0 inet static
          address 192.168.0.61
          netmask 255.255.255.0
          broadcast 192.168.0.255
          gateway 192.168.0.1
    The leading spaces are important.
     
  5. satimis

    satimis Member

    Noted with tks.

    What about the 3rd and 4th boxes? The router has 4 ports for 4 PCs.

    Tks


    B.R.
    satimis
     
  6. falko

    falko Super Moderator Howtoforge Staff

    You can plug in a third and fourth PC into it. Either have their network settings configured automatically with DHCP, or assign static IP addresses to them (as shown before).
     

Share This Page