I have a Centos 3 server with three network interfaces. eth0 is for the local network and the firewall is the gateway, the ip and gateway are set statically. eth1 is a adsl connection using dhcp to allocate the ip. I want to make eth1 the default route. If it was statci I would just use a "route add default gwd eth1" command, but I can't do that with DHCP. How do I make eth1 the default route? -- Chris Mason om -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Am Mi, den 15.02.2006 schrieb Chris Mason (Lists) um 18:50:> I have a Centos 3 server with three network interfaces. eth0 is for the > local network and the firewall is the gateway, the ip and gateway are > set statically. > eth1 is a adsl connection using dhcp to allocate the ip. I want to make > eth1 the default route. If it was statci I would just use a "route add > default gwd eth1" command, but I can't do that with DHCP. > How do I make eth1 the default route?> Chris Masongrep GATEWAYDEV /usr/share/doc/initscripts*/sysconfig.txt Alexander -- Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp Serendipity 18:59:47 up 5 days, 3:51, load average: 1.89, 1.58, 1.27 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Dies ist ein digital signierter Nachrichtenteil URL: <http://lists.centos.org/pipermail/centos/attachments/20060215/5e51db62/attachment-0002.sig>
Quoting Alexander Dalloz <ad+lists at uni-x.org>:> Am Mi, den 15.02.2006 schrieb Chris Mason (Lists) um 18:50: > >> I have a Centos 3 server with three network interfaces. eth0 is for the >> local network and the firewall is the gateway, the ip and gateway are >> set statically. >> eth1 is a adsl connection using dhcp to allocate the ip. I want to make >> eth1 the default route. If it was statci I would just use a "route add >> default gwd eth1" command, but I can't do that with DHCP. >> How do I make eth1 the default route? > >> Chris Mason > > grep GATEWAYDEV /usr/share/doc/initscripts*/sysconfig.txtOr he can completely ommit specifying any gateways, and let DHCP create one. Which is probably what he want to do anyhow. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.