I have a Redhat 9 linux server that has two NICs:
1) Gigabit PCI (eth0)
192.168.0.8
255.255.255.0
no gateway
DNS: 192.168.0.3 (a local dns server)
2) 100/10 onboard (eth1)
192.168.0.9
255.255.255.0
Gateway: 192.168.0.254 (the router)
DNS: 192.168.0.3
(and a few other outside DNS servers)
I would like to use the faster NIC for the LAN and the slower NIC for traffic from the Internet from our router.
I have no trouble setting up DNS and the router so that the LAN clients all use 192.168.0.8 and the router uses 192.168.0.9. However, I have trouble getting the linux box to reply to LAN requests using the correct NIC.
For example, if I only plug in the gigabit card, I cannot ping either 192.168.0.8 or 192.168.0.9 from a LAN client. If I only plug in the 100/10 card, I can ping BOTH 192.168.0.8 and 192.168.0.9. Its like the linux box isn't even using the gigabit card.
Both of these identify a unique ip address:
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
What did I do wrong? Is there even a way to control this?
I want all traffic for 192.168.0.* to go through the gigabit card and all other traffic to go through the 10/100 card.
-or-
At the very least, I'd like all traffic to exit using the same card that it came in on and the IP addresses that I've assigned to the NIC's to actually stick.
Thank you for any suggestions!
1) Gigabit PCI (eth0)
192.168.0.8
255.255.255.0
no gateway
DNS: 192.168.0.3 (a local dns server)
2) 100/10 onboard (eth1)
192.168.0.9
255.255.255.0
Gateway: 192.168.0.254 (the router)
DNS: 192.168.0.3
(and a few other outside DNS servers)
I would like to use the faster NIC for the LAN and the slower NIC for traffic from the Internet from our router.
I have no trouble setting up DNS and the router so that the LAN clients all use 192.168.0.8 and the router uses 192.168.0.9. However, I have trouble getting the linux box to reply to LAN requests using the correct NIC.
For example, if I only plug in the gigabit card, I cannot ping either 192.168.0.8 or 192.168.0.9 from a LAN client. If I only plug in the 100/10 card, I can ping BOTH 192.168.0.8 and 192.168.0.9. Its like the linux box isn't even using the gigabit card.
Both of these identify a unique ip address:
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
What did I do wrong? Is there even a way to control this?
I want all traffic for 192.168.0.* to go through the gigabit card and all other traffic to go through the 10/100 card.
-or-
At the very least, I'd like all traffic to exit using the same card that it came in on and the IP addresses that I've assigned to the NIC's to actually stick.
Thank you for any suggestions!