how to change my gateway

stin wang stin.wang at gmail.com
Thu Apr 3 01:58:19 UTC 2008


i make some mistake about my gateway setting,it should be set to
172.18.20.126, but i enter as 172.18.20.64

so i want to correct it.

first method i tried, i use gui to change it ,and i restart network ,but
route is still 172.18.20.64
2 method i tried, sudo gedit /etc/network/interfaces

auto lo
iface lo inet loopback

iface eth0 inet static
address 172.18.20.87
netmask 255.255.255.224
gateway 172.18.20.64

auto eth0

i change gateway to 172.18.20.126 and then
sudo /etc/init.d/networking restart
but it said siccaddrt:no such process
failed to bring up eth0

how to fix it

-- 
----------------------------------------------
Tie Wang
TianJin Climate Center
TianJin Meteorological Bureau
Tianjin, China, 300074
Email: stin.wang at gmail.com
Tel:+86-22-23333559
----------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080403/fd996b5d/attachment.html>


More information about the ubuntu-users mailing list