type /sbin/route -n and your default gateway will most likely be on the
last line.
To restart networking..
/etc/rc.d/init.d/network restart
Run the route command again to see if anything changes.
If you want to restart networking on a foreign machine through
telnet/ssh then do
nohup /etc/rc.d/init.d/network restart &
and you won't be logged out :)
take a look in /etc/sysconfig/network-scripts/ I think for where it's
stored. There are appropriately named files in there. (eth0-cfg,
eth1-cfg, ppp0-cfg, etc.)
Donncha.
Ruairi Roddy wrote:
>> I'm obviously doing something stupid, but if my RH6.2 box can ping
> everything in its subnet, but can't ping anything on the internet, then the
> default gateway is not set.
> However, it does appear to be set in linuxconf. So I don't trust linuxconf
> any more.
> Where is this information normally stored, so I can edit the file manually,
> and what should an entry look like?
> What service should I stop and restart to make sure that the new settings
> are used?
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!