Fedora: which network interface card is being used?

Q I've just installed Fedora and am a bit confused as to which of my network interface cards is the one in use; I have two, and on the previous install eth0 was used as the default. Here is the output from ifconfig:

eth0 Link encap:Ethernet HWaddr
00:30:18:58:4A:A3
inet addr:192.168.1.101
Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST MULTICAST
MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0
overruns:0 frame:0
TX packets:0 errors:0 dropped:0
overruns:0 carrier:0
eth1 Link encap:Ethernet HWaddr
00:50:BA:B3:B1:A5
inet addr:192.168.1.152
Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::250:baff:feb3:
b1a5/64 Scope:Link
UP BROADCAST RUNNING
MULTICAST MTU:1500 Metric:1
RX packets:258479 errors:0
dropped:0 overruns:0 frame:0
TX packets:264885 errors:0
dropped:0 overruns:13 carrier:0

While the network is working, it looks to me as if all traffic is going through eth1. Could you shed some light on this?

A Are you using DHCP on both network interface cards? If so, here's what's probably happening:

Step 4 resets the routing table's default gateway, overriding the route set in step 2. You can check this by running

route -n

The line that shows a destination of 0.0.0.0 will end with whichever interface is used as default. Is there a reason why you use two NICs? If so, you probably need to set up the default route manually. Otherwise, disable the 'activate device when computer starts' option for one of the NICs in the network configuration program.

Follow us on Identi.ca or Twitter

Username:   Password:
Create Account | About TuxRadar