Find the answer to your Linux question:
Results 1 to 2 of 2
Hi folks, Ubuntu 7.04 lamp server amd64 only one NIC Connection Server --> Router --> DSL Modem --> ISP The router is supplied by ISP and password-locked by ISP. I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,787

    Config on /etc/network/interfaces


    Hi folks,


    Ubuntu 7.04 lamp server amd64
    only one NIC


    Connection
    Server --> Router --> DSL Modem --> ISP

    The router is supplied by ISP and password-locked by ISP. I suppose 192.168.0.1 is the gateway. How can I check it?


    Fixed IP
    220.232.213.178

    IP address reserved for server on Router
    192.168.0.10

    DNS
    202.14.67.4/14


    $ cat /etc/network/interfaces
    Code:
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth0
    iface eth0 inet dhcp

    Now I'll change the second part after "auto eth0" as:
    Code:
    auto eth0
    iface eth0 init static
    	address 192.168.0.10
    	netmask 255.255.255.255
    	network ???
    	broadcast ???
    	gateway ???
    	# dns -* options are implemented by the resolvconf package, if installed
    	dns-nemserver 202.14.67.4 204.14.67.14
    Please advise what shall I enter for
    network ???
    broadcast ???
    gateway ???


    Shall I put the fix IP (202.232.213.17 here? It is for external only.


    TIA


    B.R.
    satimis

  2. #2
    Just Joined! antivirus_b's Avatar
    Join Date
    Mar 2007
    Posts
    27
    Code:
    auto eth0
    iface eth0 init static
    address 192.168.0.10
    netmask 255.255.255.255
    network ???
    broadcast ???
    gateway ???
    # dns -* options are implemented by the resolvconf package, if installed
    dns-nemserver 202.14.67.4 204.14.67.14

    Please advise what shall I enter for
    network ???
    broadcast ???
    gateway ???



    R U sure about the Netmask which u have entered 255.255.255.255. i think it will be 255.255.255.0. if 192.168.0.10 is your ip then maybe ur network is 192.168.0.0 and the brodcast is 192.168.0.255 and the gateway's ip will be ur router ip. im not sure but im just giving u the most common configuration using this ip range

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •