DUP! Pings with if_lagg configuration.

Federico Lorenzi florenzi at gmail.com
Fri Aug 10 06:29:48 PDT 2007


Hi there.

I'm trying to set up a link between a two mini FreeBSD servers of mine using
if_lagg in loadbalance mode and two NIC cards in each box. They are also
on the same switch. Both machines are the latest 6-stable.

After following some simple instructions in the man page, each machine is
configured as follows:
Machine 1:
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        ether 00:e0:4c:ff:38:7e
        media: Ethernet 100baseTX <full-duplex>
        status: active
        lagg: laggdev lagg0
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        ether 00:e0:4c:ff:38:7e
        media: Ethernet 100baseTX <full-duplex>
        status: active
        lagg: laggdev lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255
        ether 00:e0:4c:ff:38:7e
        media: Ethernet autoselect
        status: active
        laggproto loadbalance
        laggport: rl1 flags=4<ACTIVE>
        laggport: rl0 flags=4<ACTIVE>

Machine 2:
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::201:2ff:fea8:da61%xl0 prefixlen 64 scopeid 0x1
        ether 00:01:02:a8:da:61
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        lagg: laggdev lagg0
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::201:2ff:fea8:da61%dc0 prefixlen 64 scopeid 0x2
        ether 00:01:02:a8:da:61
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        lagg: laggdev lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::201:2ff:fea8:da61%lagg0 prefixlen 64 duplicated scopeid 0x4
        ether 00:01:02:a8:da:61
        media: Ethernet autoselect
        status: active
        laggproto loadbalance
        laggport: dc0 flags=4<ACTIVE>
        laggport: xl0 flags=4<ACTIVE>

Now, while this setup is working, the speeds seem to be terrible! A FTP
from machine 1 to machine 2 goes at 4MB/s. Both PCs are 2.4ghz P4s
so I doubt the CPU is limiting that.

Something which I also noticed was that pinging the machines from a non
lagg configured box gave me:
PING 192.168.1.6 (192.168.1.6): 56 data bytes
64 bytes from 192.168.1.6: icmp_seq=0 ttl=64 time=0.643 ms
64 bytes from 192.168.1.6: icmp_seq=0 ttl=64 time=0.712 ms (DUP!)
^C
--- 192.168.1.6 ping statistics ---
2 packets transmitted, 2 packets received, +2 duplicates, 0% packet loss
round-trip min/avg/max/stddev = 0.474/0.586/0.712/0.096 ms

And pinging the boxen from each other gave me:
PING 192.168.1.7 (192.168.1.7): 56 data bytes
64 bytes from 192.168.1.7: icmp_seq=0 ttl=64 time=0.460 ms
64 bytes from 192.168.1.7: icmp_seq=0 ttl=64 time=0.464 ms (DUP!)
64 bytes from 192.168.1.7: icmp_seq=0 ttl=64 time=0.548 ms (DUP!)
64 bytes from 192.168.1.7: icmp_seq=0 ttl=64 time=0.549 ms (DUP!)
^C
--- 192.168.1.7 ping statistics ---
1 packets transmitted, 1 packets received, +3 duplicates, 0% packet loss
round-trip min/avg/max/stddev = 0.460/0.505/0.549/0.043 ms

Any help in solving this would be greatly appreciated!

Federico


More information about the freebsd-questions mailing list