change the MAC on an vlan interface

From: Schlothauer, Martin (Martin.Schlothauer_at_LVERMAFF.brandenburg.de)
Date: 12/17/03

  • Next message: Charles Swiger: "Re: suffering from poor network performance..."
    Date: Wed, 17 Dec 2003 19:06:49 +0100
    To: <freebsd-net@freebsd.org>
    
    

    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

    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Charles Swiger: "Re: suffering from poor network performance..."

    Relevant Pages

    • Re: ntpd fails to synchronize on FreeBSD 6.3-STABLE
      ... 12 packets received by filter ... Then let the tcpdump go for about 15 minutes. ... Firewall on my router/gateway is disabled, ... # shutdown -r now ...
      (freebsd-stable)
    • Re: Should route, but doesnt
      ... > I bought the Netgear box last June. ... > Packets get from the RedHat 7.2 box to my LAN or to the Internet. ... You might find it useful to watch the packets with tcpdump, ... with the private subnets. ...
      (comp.os.linux.networking)
    • Re: Could Not open some sites from Windows Vista and Server 2008 when using FreeBSD as gw
      ... tcpdump: verbose output suppressed, use -v or -vv for full protocol decode ... 433 packets received by filter ... block rules also log the blocked packets -- in this case that should ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
      (freebsd-stable)
    • [opensuse] Re: Xen bridge without IP
      ... I can't see the phisycal interface enslaved to the bridge ... Eth0 will be used exclusively for administration tasks and for heartbeat. ... tcpdump: WARNING: eth2: no IPv4 address assigned ... packets received by filter ...
      (SuSE)
    • Re: Why does tcpdump show few packet?
      ... tcpdump: verbose output suppressed, use -v or -vv for full protocol ... 250 packets received by filter ... UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 ... It seems that my card can't support promiscuous mode because the third line always "UP BROADCAST RUNNING MULTICAST" even I have run tcpdump with root. ...
      (comp.os.linux.networking)