[Voyage-linux] setting the default gateway

Mike R (spam-protected)
Fri Jun 13 07:41:11 HKT 2008


Have you tried to set the gateway in the /etc/network/interfaces file?

I'm assuming you are using a static IP address for eth0.  So having
something like the following in that file should work.

auto eth0
iface eth0 inet static
 address 192.168.1.2
 netmask 255.255.255.0
 gateway 192.168.1.1

Before you edit that file you will have to remountrw, edit the file using vi
or another editor if you've installed one, once you have finished editing
the file you can reboot to test.



-----Original Message-----
From: voyage-linux-bounces+miker=rockisland.com at list.voyage.hk
[mailto:voyage-linux-bounces+miker=rockisland.com at list.voyage.hk] On Behalf
Of Chris Pawelko
Sent: Thursday, June 12, 2008 1:51 PM
To: voyage-linux at voyage.hk
Subject: [Voyage-linux] setting the default gateway


Hi all,
I am trying to set the default gateway using route add default gw
192.168.1.1 eth0

After I either reboot or pull the power, reboot and do a route, the route
that I entered above is not there. I tried the remountrw - command -
remountro and still does the same.

Any tips?

Thanks,

cp.


_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux





More information about the Voyage-linux mailing list