Open /etc/network/interfaces file:
$ sudo vi /etc/network/interfaces
Set gateway using following syntax:gateway {router-ip}
For example, set gateway to 192.168.1.254, enter:
gateway 192.168.1.254
At the end it should look like as follows:
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254
Save and close the file. Restart networking:
$ sudo /etc/init.d/networking restart
Verify new routing is working, enter:
If you need any assistance, We can provide you for a small fee. please email us mayur.c24@gmail.com
$ ping 192.168.1.254
$ route -n
$ host google.com
Source - http://www.cyberciti.biz/faq/ubuntu-linux-configure-gateway-ip/
Ubuntu Linux Configure Gateway / Default Routing IP Address
Posted by Mayur's BLOG
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment