change the MAC on an vlan interface
Schlothauer, Martin
Martin.Schlothauer at LVERMAFF.brandenburg.de
Wed Dec 17 10:07:26 PST 2003
Hello,
I tried to use freevrrpd on an vlan interface and had trouble.
When i change the MAC on the vlan interface i lost packets.
After restoring the MAC it works again.
A simple test whith ifconfig and 3 ping-packets shows the problem.
After the first packet i have done
# ifconfig vlan0 ether 0:0:5e:0:1:b0
and after the second back with
# ifconfig vlan0 ether 00:01:02:69:91:7c
The tcpdump on the parent interface is what i expect, but on the
vlan0 i missing one echo reply.
Whats wrong ?
# tcpdump -eni xl0
tcpdump: WARNING: xl0: no IPv4 address assigned
tcpdump: listening on xl0
16:42:24.907298 0:1:2:69:91:7c 8:0:2b:e7:51:62 8100 102: 802.1Q vlan#306 P0 10.133.2.22 > 10.133.2.28: icmp: echo request
16:42:24.907777 8:0:2b:e7:51:62 0:1:2:69:91:7c 8100 102: 802.1Q vlan#306 P0 10.133.2.28 > 10.133.2.22: icmp: echo reply
16:42:29.340845 0:0:5e:0:1:b0 ff:ff:ff:ff:ff:ff 8100 46: 802.1Q vlan#306 P0 arp who-has 10.133.2.22 tell 10.133.2.22
16:42:34.917443 0:0:5e:0:1:b0 8:0:2b:e7:51:62 8100 102: 802.1Q vlan#306 P0 10.133.2.22 > 10.133.2.28: icmp: echo request
16:42:34.917908 8:0:2b:e7:51:62 0:0:5e:0:1:b0 8100 102: 802.1Q vlan#306 P0 10.133.2.28 > 10.133.2.22: icmp: echo reply
16:42:38.122184 0:1:2:69:91:7c ff:ff:ff:ff:ff:ff 8100 46: 802.1Q vlan#306 P0 arp who-has 10.133.2.22 tell 10.133.2.22
16:42:44.927599 0:1:2:69:91:7c 8:0:2b:e7:51:62 8100 102: 802.1Q vlan#306 P0 10.133.2.22 > 10.133.2.28: icmp: echo request
16:42:44.928132 8:0:2b:e7:51:62 0:1:2:69:91:7c 8100 102: 802.1Q vlan#306 P0 10.133.2.28 > 10.133.2.22: icmp: echo reply
^C
8 packets received by filter
0 packets dropped by kernel
#
# tcpdump -eni vlan0
tcpdump: listening on vlan0
16:42:24.907289 0:1:2:69:91:7c 8:0:2b:e7:51:62 0800 98: 10.133.2.22 > 10.133.2.28: icmp: echo request
16:42:24.907780 8:0:2b:e7:51:62 0:1:2:69:91:7c 0800 98: 10.133.2.28 > 10.133.2.22: icmp: echo reply
16:42:29.340838 0:0:5e:0:1:b0 ff:ff:ff:ff:ff:ff 0806 42: arp who-has 10.133.2.22 tell 10.133.2.22
16:42:34.917435 0:0:5e:0:1:b0 8:0:2b:e7:51:62 0800 98: 10.133.2.22 > 10.133.2.28: icmp: echo request
16:42:38.122176 0:1:2:69:91:7c ff:ff:ff:ff:ff:ff 0806 42: arp who-has 10.133.2.22 tell 10.133.2.22
16:42:44.927591 0:1:2:69:91:7c 8:0:2b:e7:51:62 0800 98: 10.133.2.22 > 10.133.2.28: icmp: echo request
16:42:44.928135 8:0:2b:e7:51:62 0:1:2:69:91:7c 0800 98: 10.133.2.28 > 10.133.2.22: icmp: echo reply
^C
7 packets received by filter
0 packets dropped by kernel
#
Best regards,
Martin Schlothauer
More information about the freebsd-net
mailing list