Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

prob with NICs

Status
Not open for further replies.

bedrock

Programmer
Nov 6, 2002
94
US
i have a machine ive been using as router/firewall with RH7.3 for 6 mo. or so. its my first linux machine and with the release of 8.0 i decided to start over and get rid of all the mistakes and garbage i already had. but now when setting up my networking my NICs are conflicting. eth0 (external ip) works great when eth1 is not activated. when it is activated then my ip/gateway switches to the internal ive tried to set on eth1. here is results of route -n command:

(before i start eth1...sorry but this window is small)
Destination Gateway Genmask Flags Metric Ref Use Iface
12.xxx.244.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 12.xxx.244.1 0.0.0.0 UG 0 0 0 eth0

(after i start eth1)
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
12.xxx.244.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.10.255 0.0.0.0 UG 0 0 0 eth1
 
Hi,

You need to make sure that the default gateway is set for the eth0 interface but that there is no default gateway for eth1.

I'm running Debian so the config files are different and I can't check where to make the change but you should be able to reconfigure it through the linuxconf program.

 
hmm...well im not quite sure yet what needs to be done. for one, i cant set the default gateway (via rh network configuration) on eth0 because it uses dhcp. plus, if i do not specify a gateway for eth1 then the internal network im creating has no gateway. i tried just deleting the gateway value for eth1 and checked on a windows machine and ip was no good. with the gateway set, and both cards activated the internal ips work but there is no external connection. what am i missing?
 
eureka! i understand what you mean now norwich, and thx for your help. i found where to specify a default gateway device, the piece i missed before, in my /etc/sysconfig/network file. i simply set the var:

GATEWAYDEV=eth0;

now my route table looks like this:Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0 * 255.255.255.0 U 0 0 0 eth1
12.xxx.244.0 * 255.255.252.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 12-xxx-244-1.cl 0.0.0.0 UG 0 0 0 eth0


i hope that this helps someone else in the future
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top