Click to See Complete Forum and Search --> : changing default gatewate for eth1


datadan
08-21-2001, 10:24 AM
What's the command for changing my default gateway from ip 123 to 345 on eth1?

(I'm changing ISPs)

Thanks,

jrbush82
08-21-2001, 10:33 AM
type netconfig as root/su to root

datadan
08-21-2001, 10:50 AM
Is there a way of doing this without using netconfig? X is not installed. Many of the "helpers" like linuxconf cause seg faults and core dumps. This makes me wary.

Thanks

teeitup
08-21-2001, 11:35 AM
man route

ie:

route del default gw eth1 xxx.xxx.xxx.xxx
route add default gw eth1 xxx.xxx.xxx.xxx

If your changing ISP's don't forget
/etc/resolv.conf for your new DNS servers.

Good Luck,

[ 21 August 2001: Message edited by: teeitup ]

Dru Lee Parsec
08-21-2001, 12:32 PM
Just use LinuxConf and go to the networking section and then choose "gateways" You should be able to set it there.

You probably need to do it as root.