Confused ...Please help with my Static Network Configuration on Ubuntu Server

There are 4 replies in this Thread which was already clicked 383 times. The last Post () by fulgas.

  • Hi All,


    Let's say


    1 - My host Ip address (retrieved from myipaddress.com) is 109.255.XXX.XXX
    2 - My router ip (Linksys WRP 400) is 192.168.15.1
    3 - DHCP setting in my ubuntu server as follows; i


    """This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).


    # The loopback network interface
    auto lo
    iface lo inet loopback


    # The primary network interface
    auto eth0
    iface eth0 inet dhcp"""



    Now to change I need to change to STATIC Configuration, I made the following setting:


    # This file describes the network interfaces available on your system
    and how to activate them. For more information, see interfaces(5).
    # The loopback network interface
    auto lo
    iface lo inet loopback


    # The primary network interface
    auto eth0
    iface eth0 inet static
    address 109.255.XXX.XXX
    netmask 255.255.255.0
    broadcast 192.168.15.102
    gateway 192.168.15.1


    I then restart the server using this command nano /etc/network/interfaces


    The server does not go online....


    Where am I going wrong?


    Thank in advance


  • The problem is your 'address 109.255.xxx.xxx' line...


    it should be 'address 192.168.15.xxx' where you choose an IP address for your server on your local network!


    You then just port forward traffic from your router to your local server....


    You need to setup a external DNS with someone like DynDNS eg. fulgas.dyndns.info which points to your 109.255.xxx.xxx address



    Your broadcast address should also be 192.168.15.255



    Make sure you edit the /etc/resolv.conf file and enter your nameservers -


    i.e. ‘name server xxx.xxx.xxx.xxx’




    Finally...if its still not working, make sure your DHCP client has been removed - sudo apt-get remove dhcp-client

  • Thank you Sandman


    I just got a DNS account on No-ip.com as follows: fulgas.*******.******
    At work at the moment. I will try it as per your instruction and keep all posted tonight



    Cheers


  • Hi All,


    In my Router Linksys WRP 400, the DNS setting has no option for no-ip.com but only DynDNS.org or TZM.com


    If I select dyndns.org and add in the relevant fields my
    1 - no-ip.com Username
    2 - no-ip.com Passwd
    3 - no-ip.com hostname fulgas.ilovecollege.info


    Will this work? or I must go dyndns.org


    thank you


  • Thank you Sandman



    My server is currently online. I going to try an CCCam server auto installation script


    Thank you


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!