I'm attempting to use an Ubuntu Server 14.04 as a network bridge between two 10 Gb/s networks. While the bridge seems to pass traffic to / from the coected machines, it does not play nicely with TCPReplay traffic. The traffic leaves p4p2, enters p1p1, and i've NO idea why. I've confirmed that everything works when ruing over the on-board etheet ports (1 Gb/s network). Here is my setup and what i've done so far.
Network Setup
<--> Represents a DAC cable
-- Represents a 'virtual cable' via brctl
Code:
Sending Server Ubuntu Bridge-Server Receiving-Server
(p4p2) <--> (p1p1) -- br0 -- (p1p2) <--> (p1p1)
First Attempt:
Ubuntu Bridge-Server:
Code:
# uname -a
Linux r220-Plus 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Code:
# modinfo ixgbe | grep version
version: 4.0.1-k
srcversion: 44CBFE422F8BAD726E61653
vermagic: 3.19.0-25-generic SMP mod_unload modversions
Code:
ifconfig p1p1 down
ifconfig p1p2 down
ifconfig p1p1 0.0.0.0
ifconfig p1p2 0.0.0.0
ifconfig p1p1 up
ifconfig p1p2 up
brctl addbr br0
brctl addif br0 p1p1
brctl addif br0 p1p2
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.000cbd06c6c8 no p1p1
p1p2
ifconfig br0 up
Code:
br0 Link encap:Etheet HWaddr 00:0c:bd:06:c6:c8
inet6 addr: fe80::20c:bdff:fe06:c6c8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:418 (418.0 B)
p1p1 Link encap:Etheet HWaddr 00:0c:bd:06:c6:c8
inet6 addr: fe80::20c:bdff:fe06:c6c8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1024 (1.0 KB)
p1p2 Link encap:Etheet HWaddr 00:0c:bd:06:c6:c9
inet6 addr: fe80::20c:bdff:fe06:c6c9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:598 (598.0 B)
Code:
tcpreplay -tK -i p4p2 ~/testing/5gb.pcap
Second Attempt:
I noticed that the modinfo for my ixgbe driver was out of date, so i went to Intel's website and snatched up the new one. Upgrading from 4.0.1-k to 4.1.5 was straightforward (RSS=8 b/c 4 cores, hyper-threaded):
Code:
cd ~/ixgbe-4.1.5/src
make clean
make CFLAGS_EXTRA="-DIXGBE_NO_LRO" RSS=8
rmmod ixgbe
make install
modprobe ixgbe FdirPballoc=3
ifconfig p1p1 up
ifconfig p1p2 up
# modinfo ixgbe | grep version
version: 4.1.5
srcversion: 9781CEF8A3110F93FF9DBA8
vermagic: 3.19.0-25-generic SMP mod_unload modversions
~/ixgbe-4.1.5/scripts/set_irq_affinity p1p1
~/ixgbe-4.1.5//scripts/set_irq_affinity p1p2
- - , .
برچسب:
نویسنده: استخدام کار