From owner-freebsd-questions@FreeBSD.ORG Wed Apr 30 03:08:24 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 233F8EB9 for ; Wed, 30 Apr 2014 03:08:24 +0000 (UTC) Received: from mail-oa0-f51.google.com (mail-oa0-f51.google.com [209.85.219.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DFCA61BA3 for ; Wed, 30 Apr 2014 03:08:23 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id l6so1284525oag.24 for ; Tue, 29 Apr 2014 20:08:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=ClTeUdbkbFCPx2nsYDmlykRwEVDnkEvy0pl/2eQ4sbw=; b=PaJG4E9PSB2v9zAGLSS/spGuYwHO8u6SEpoca4mn9eqrHvbXAqRY/qCY6k/78/abvl Xhk3DQ1HVzyw3Akc7iHNGRHUnOp3k0gscjB+15B9W2RbB1lXlV+IE1rbmkovBNZPgZV9 kEzGl26dfTHE0PvIap4Hj/29oN4A40inEZV2D0c7l3NCjw0KC+W0N/kH/Xp0H0ewssla 5zGOjO2V0n3lPg6my6IQ93QESgcwlrPqwJpUNauu0hhVuOkOHAv59pgo+UQMxuxIYMlv BGuaNNHXlKLmEumVLozLoQz1tI3Tsp8UlezFzh5x+U7DWbzPgWCPtl08f4BZn5uQWvK0 6Ujg== X-Gm-Message-State: ALoCoQnJC+dlYsEljSJ2hE3Vilw0fBfF77M64PO4h3c8WdVy7dIqc7dw0uTbecqhEzkVojk3nHUe MIME-Version: 1.0 X-Received: by 10.60.131.40 with SMTP id oj8mr2789581oeb.14.1398824184363; Tue, 29 Apr 2014 19:16:24 -0700 (PDT) Received: by 10.60.17.33 with HTTP; Tue, 29 Apr 2014 19:16:24 -0700 (PDT) Date: Tue, 29 Apr 2014 19:16:24 -0700 Message-ID: Subject: Broken ifconfig vlan interface behavior? From: Michael Sierchio To: FreeBSD Questions , Julian Elischer Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 03:08:24 -0000 I seem unable to create a vlan interface with the vlan tag I'd like. I can't assign it a vlan tag of 2193. em2: port 0x4000-0x401f mem 0xa3000000-0xa301ffff,0xa3020000-0xa3023fff irq 16 at device 0.0 on pci10 renamed to eth2 Transcript of sorrow: root@pvpn-tor:~ # ifconfig vlan2193 create vlan 2193 vlandev eth2 root@pvpn-tor:~ # ifconfig vlan2193 inet 10.75.219.1 netmask 255.255.255.0 root@pvpn-tor:~ # ifconfig vlan2193 vlan2193: flags=8843 metric 0 mtu 1500 options=103 ether 00:00:24:ce:bc:86 inet 10.75.219.1 netmask 0xffffff00 broadcast 10.75.219.255 media: Ethernet autoselect (1000baseT ) status: active vlan: 2193 parent interface: eth2 root@pvpn-tor:~ # ping 10.75.219.1 PING 10.75.219.1 (10.75.219.1): 56 data bytes ^C --- 10.75.219.1 ping statistics --- 8 packets transmitted, 0 packets received, 100.0% packet loss Okay, let's try a different VLAN served on that switch port root@pvpn-tor:~ # ifconfig vlan2193 destroy root@pvpn-tor:~ # ifconfig vlan2193 create vlan 163 vlandev eth2 root@pvpn-tor:~ # ifconfig vlan2193 inet 10.74.19.151 netmask 255.255.252.0 root@pvpn-tor:~ # ping 10.74.19.151 PING 10.74.19.151 (10.74.19.151): 56 data bytes 64 bytes from 10.74.19.151: icmp_seq=0 ttl=64 time=0.087 ms 64 bytes from 10.74.19.151: icmp_seq=1 ttl=64 time=0.050 ms ^C --- 10.74.19.151 ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.050/0.069/0.087/0.018 ms root@pvpn-tor:~ # ping 10.74.16.1 PING 10.74.16.1 (10.74.16.1): 56 data bytes 64 bytes from 10.74.16.1: icmp_seq=0 ttl=255 time=1.065 ms ^C --- 10.74.16.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 1.065/1.065/1.065/0.000 ms and it works. Is this a limitation of the Intel HW VLAN tagging? ifconfig? If it is not to work, why does it permit me to create the interface? - M