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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network unavailable on newly installed NIC

Status
Not open for further replies.

alanthas

MIS
Oct 10, 2002
2
US
I have a Redhat 9 machine with three network interfaces, but I can only get 2 of them to pass any traffic. When I originally setup the machine, I only set it up to use 2 interfaces and now I want to add the third. Here is an example of the configuration I am trying to use.

eth0 - public IP
|
|
|------eth1 - DMZ IP (10.x.x.x)
|
|
eth2 - internal IP (172.x.x.x)


The problem arises when I bring up eth2. If I am only using eth0 and eth1 everything is fine, but when I bring up eth2, I receive the message "RTNETLINK answers: Network is unreachable".

At first I thought that it might be a routing problem, but everything looks good there. I also checked the cables and they are good. Here are my routing tables (ip addresses have been substituted) when eth2 is up.

208.248.160.0/24 dev eth0 scope link
10.1.1.0/24 dev eth1 scope link
172.69.0.0/16 dev eth2 scope link
127.0.0.0/8 dev lo scope link
default via 10.1.1.1 dev eth1
default via 172.69.69.1 dev eth2
default via 208.248.160.129 dev eth0

Here are my ethx configs

DEVICE=eth0 - external
ONBOOT=yes
BOOTPROTO=static
IPADDR=208.248.160.254
NETMASK=255.255.255.0
GATEWAY=208.248.160.129

DEVICE=eth1 - DMZ
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.1.1.254
NETMASK=255.255.255.0
GATEWAY=10.1.1.1

DEVICE=eth2 - internal
ONBOOT=yes
BOOTPROTO=static
IPADDR=172.69.69.2
NETMASK=255.255.0.0
GATEWAY=172.69.69.1


Since routing and subnetting is fine, I looked at my IPTABLES configuration. Since I was not concerned about security at this point, I turned it off (service iptables stop/chkconfig iptables off). This did nothing for me. I can ping the ip address assigned to eth2, but I can't ping eth2's gateway. I double and tripple checked all cables to no avail. I have even shutdown the other two interfaces and only had eth2 active. Still the same results.

As an act of desparation I even replaced the NIC card thinking it might be bad. This did not change anything. I really think that I am missing something in the configuration. The other two were configured when I first installed, but I chose not to configure the third interface. Is there something special that needs to be done when adding this third interface?

Oh, I forgot to mention that this box is not a router. It is providing multiple services which each service being bound to only the network that it is intended for.

Thank you for any ideas.
 
Lets see the output of "route -n" and "ifconfig"...


ChrisP
 
Here is my ifconfig;

eth0 Link encap:Ethernet HWaddr 00:A0:C9:EB:FD:42
inet addr:xx.xx.xx.254 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49021 errors:0 dropped:0 overruns:0 frame:0
TX packets:35840 errors:0 dropped:0 overruns:0 carrier:0
collisions:78 txqueuelen:100
RX bytes:8558895 (8.1 Mb) TX bytes:3899966 (3.7 Mb)
Interrupt:14 Base address:0xdce0 Memory:f4001000-f4001038

eth1 Link encap:Ethernet HWaddr 00:A0:C9:EB:FD:3A
inet addr:10.x.x.xxx Bcast:10.x.x.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12653 errors:0 dropped:0 overruns:0 frame:0
TX packets:16886 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1349684 (1.2 Mb) TX bytes:9694680 (9.2 Mb)
Interrupt:11 Base address:0xdcc0 Memory:f4000000-f4000038

eth2 Link encap:Ethernet HWaddr 00:20:78:0F:A2:52
inet addr:172.xx.xxx.2 Bcast:172.xx.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:908 overruns:0 frame:0
TX packets:0 errors:30 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0x8000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:477 errors:0 dropped:0 overruns:0 frame:0
TX packets:477 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:73004 (71.2 Kb) TX bytes:73004 (71.2 Kb)


Routing tables

Destination Gateway Genmask Flags Metric Ref Use Iface
xx.xx.xx.0 * 255.255.255.0 U 0 0 0 eth0
10.x.x.0 * 255.255.255.0 U 0 0 0 eth1
172.xx.0.0 * 255.255.0.0 U 0 0 0 eth2
169.254.0.0 * 255.255.0.0 U 0 0 0 eth2
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.x.x.1 0.0.0.0 UG 0 0 0 eth1 - DMZ
default 172.x.xxx.1 0.0.0.0 UG 0 0 0 eth2 - internal
default xx.xx.xx.129 0.0.0.0 UG 0 0 0 eth0 - external

If I only bring up eth2, I still cannot pass traffice on it. It does not matter which IP set is assigned to it either. Thank you in advance for any suggestions.
 
Copy and paste the exact output of "route -n". Just change the public IP to something made up (no reason to use x's with private IPs). You can't have 3 default gateways, or else it wouldn't be a default gateway.

ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top