Monday, 16 March 2015

How to set Static IP in Ubuntu Server

1 - sudo -i ( for super user and not use sudo before every command)

2 - vi /etc/network/interfaces

3 - iface eth0 inet static

        address 192.168.1.100
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        dns-nameservers 8.8.8.8
               

4 - save and exit

5 - service networking restart

No comments:

Post a Comment