Hey all, sorry for the longish post but I think I need to give sufficient backgroud
I am doing some work which requires 2 interfaces per 10GE port. So I have hacked the ixgbe driver to created an extra netdev object each time probe is invoked. When I insert ixgbe.ko, eth0 & eth1 can be configured on port 0.
Connected to my box is a traffic generator. I can ping it fine using eth0, but not using eth1. In fact, no traffic at all reaches the traffic generator when I try to ping through eth1. I can ping the IP address configured on eth1 itself successfully.
I know that it will be difficult for anyone to give me a perfect diagnosis since I hacked the original driver, but I am looking for pointers on how to debug this. I *think* I am calling all the proper routines when I create and bringup the extra netdev (i.e. netif_carrier_on, netif_tx_start_all_queues, netif_tx_wake_all_queues).
I have included output of ifconfig, iptables -L, and logs from my pings below. The ping using eth1 takes a few seconds and then prints "Destination Host Unreachable."
Thank you so much for any help and advice!
-Zack
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@Ares net]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1B:21:36:09:B4
inet addr:3.0.0.1 Bcast:3.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:316 (316.0 b) TX bytes:3588103300 (3.3 GiB)
eth1 Link encap:Ethernet HWaddr 00:1B:21:36:09:B4
inet addr:4.0.0.1 Bcast:4.0.0.255 Mask:255.255.255.0
UP BROADCAST PROMISC 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
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:143529680 (136.8 MiB)
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:107 errors:0 dropped:0 overruns:0 frame:0
TX packets:107 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7800 (7.6 KiB) TX bytes:7800 (7.6 KiB)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@Ares net]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@Ares net]#
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@Ares net]# ping 3.0.0.2
PING 3.0.0.2 (3.0.0.2) 56(84) bytes of data.
64 bytes from 3.0.0.2: icmp_seq=1 ttl=64 time=3.10 ms
64 bytes from 3.0.0.2: icmp_seq=2 ttl=64 time=1.02 ms
--- 3.0.0.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 1.021/2.062/3.104/1.042 ms
[root@Ares net]#
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@Ares net]# ping 4.0.0.1
PING 4.0.0.1 (4.0.0.1) 56(84) bytes of data.
64 bytes from 4.0.0.1: icmp_seq=1 ttl=64 time=0.024 ms
64 bytes from 4.0.0.1: icmp_seq=2 ttl=64 time=0.018 ms
--- 4.0.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.018/0.021/0.024/0.003 ms
[root@Ares net]#
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@Ares net]# ping 4.0.0.2
PING 4.0.0.2 (4.0.0.2) 56(84) bytes of data.
From 4.0.0.1 icmp_seq=2 Destination Host Unreachable
From 4.0.0.1 icmp_seq=3 Destination Host Unreachable
From 4.0.0.1 icmp_seq=4 Destination Host Unreachable
--- 4.0.0.2 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4001ms
, pipe 3
[root@Ares net]#