From owner-freebsd-net@FreeBSD.ORG Tue Jan 29 16:42:40 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9A6216A41A for ; Tue, 29 Jan 2008 16:42:40 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 72C5B13C44B for ; Tue, 29 Jan 2008 16:42:40 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so3094743pyb.10 for ; Tue, 29 Jan 2008 08:42:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=bn4OM2mtPZtHaIhrjux5VfmrdyCisGhaTc7dezN7JH8=; b=QVDNTbirOBrAzOKh4LH+xCAWEO4jzjAcVQ1VOWZAUhiqBiuPpMfBnfYOkiydM0P6oOeUBaWfwftK1N/o+HG6eADHDzdRT9nCvpMxvZvMkv1qTRSzdXzXPivGKS2oMg5cDe2kXqXbUnbLPOFy+/7M7GBmqZYm+3OjKkANSGaytak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ccUWfNIAWYy1r4IDZWlwdS8Yaxv/mT0vjx+5bXyMyGdKEu7RJ/58Cs+3LhU8FoGUPgOp5+nColBhezLpRS/g3RYe3k27vDZT+GZNh9N76ck3gNIJM+fCJiaA2OaJ+9GpOuGq4GxkxqKSNPqusy0xMw11gGiSnTD/j8dXlASMTIM= Received: by 10.65.81.10 with SMTP id i10mr14617257qbl.75.1201624959162; Tue, 29 Jan 2008 08:42:39 -0800 (PST) Received: by 10.64.184.9 with HTTP; Tue, 29 Jan 2008 08:42:39 -0800 (PST) Message-ID: <8e10486b0801290842l5d65bb3fk8a02d731c3ad1b91@mail.gmail.com> Date: Tue, 29 Jan 2008 14:42:39 -0200 From: "Alexandre Biancalana" To: "Tom Judge" In-Reply-To: <479F4C3C.5070801@tomjudge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8e10486b0801290439y77568aeby6c6dbfbb5132f61d@mail.gmail.com> <479F4C3C.5070801@tomjudge.com> Cc: freebsd-net@freebsd.org Subject: Re: VLAN problems X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2008 16:42:40 -0000 Hi Tom ! Thanks for your help! I had to step back the chance an put the "old" gateway back, the performance was unacceptable :-( Looking closer I see that still have the problem using the old gateway too, in a small scale because I only use vlan to external links. This old gateway is running 6.2-STABLE and have 4 network interfaces: fxp0, fxp1, sk0 and sk1. fxp0, sk0 and sk1 are no parent of any vlans, are connected to internal networks and work without problems, follow the ifconfig ouput: fxp0: flags=8843 mtu 1500 options=8 inet 10.11.0.1 netmask 0xffff0000 broadcast 10.11.255.255 ether 00:02:a5:41:c6:b2 media: Ethernet autoselect (100baseTX ) status: active sk0: flags=8843 mtu 1500 options=b inet 10.2.0.36 netmask 0xffff0000 broadcast 10.2.255.255 ether 00:0a:5e:5c:9e:2e media: Ethernet autoselect (1000baseTX ) status: active sk1: flags=8843 mtu 1500 options=b inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 ether 00:0a:5e:5c:27:ef media: Ethernet autoselect (100baseTX ) status: active fxp1 is parent of 7 vlan interfaces: vlan16, vlan20, vlan200, vlan201, vlan202 and vlan205 that connect my internal network to some external links, follow the ifconfig output: vlan16: flags=8843 mtu 1500 inet 10.16.0.1 netmask 0xffffff00 broadcast 10.16.0.255 ether 00:0c:f1:ac:91:09 media: Ethernet autoselect (100baseTX ) status: active vlan: 16 parent interface: fxp1 vlan20: flags=8843 mtu 1500 inet 10.20.0.1 netmask 0xffffff00 broadcast 10.20.0.255 ether 00:0c:f1:ac:91:09 media: Ethernet autoselect (100baseTX ) status: active vlan: 20 parent interface: fxp1 vlan200: flags=8843 mtu 1500 inet 10.200.0.1 netmask 0xfffffffc broadcast 10.200.0.3 ether 00:0c:f1:ac:91:09 media: Ethernet autoselect (100baseTX ) status: active vlan: 200 parent interface: fxp1 vlan201: flags=8843 mtu 1500 inet 10.200.0.5 netmask 0xfffffffc broadcast 10.200.0.7 ether 00:0c:f1:ac:91:09 media: Ethernet autoselect (100baseTX ) status: active vlan: 201 parent interface: fxp1 vlan202: flags=8843 mtu 1500 inet 10.200.0.9 netmask 0xfffffffc broadcast 10.200.0.11 ether 00:0c:f1:ac:91:09 media: Ethernet autoselect (100baseTX ) status: active vlan: 202 parent interface: fxp1 vlan204: flags=8843 mtu 1500 inet 10.0.0.85 netmask 0xfffffffc broadcast 10.0.0.87 ether 00:0c:f1:ac:91:09 media: Ethernet autoselect (100baseTX ) status: active vlan: 204 parent interface: fxp1 vlan205: flags=8943 mtu 1500 inet 10.0.0.9 netmask 0xfffffffc broadcast 10.0.0.11 ether 00:0c:f1:ac:91:09 media: Ethernet autoselect (100baseTX ) status: active Like seen before netstat -niW show output errors in vlan interfaces # netstat -niW Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll fxp0 1500 00:02:a5:41:c6:b2 80737726 0 93763586 0 0 fxp0 1500 10.11/16 10.11.0.1 39361 - 781153 - - sk0 1500 00:0a:5e:5c:9e:2e 95954343 3 85444921 0 0 sk0 1500 10.2/16 10.2.0.36 1504482 - 2626656 - - sk1 1500 00:0a:5e:5c:27:ef 7852065 0 5623251 0 0 sk1 1500 192.168.0 192.168.0.1 22824 - 16590 - - fxp1 1500 00:0c:f1:ac:91:09 9790593 0 9423268 1 0 lo0 16384 2519 0 2519 0 0 lo0 16384 127 127.0.0.1 1592519 - 2519 - - vlan2* 1500 00:00:00:00:00:00 0 0 0 0 0 vlan11* 1500 00:00:00:00:00:00 0 0 0 0 0 vlan16 1500 00:0c:f1:ac:91:09 1369 0 1 0 0 vlan16 1500 10.16/24 10.16.0.1 0 - 0 - - vlan20 1500 00:0c:f1:ac:91:09 0 0 1 0 0 vlan20 1500 10.20/24 10.20.0.1 0 - 0 - - vlan200 1500 00:0c:f1:ac:91:09 1373 0 1 0 0 vlan200 1500 10.200/30 10.200.0.1 0 - 0 - - vlan201 1500 00:0c:f1:ac:91:09 53524 0 52234 63 0 vlan201 1500 10.200.0.4/30 10.200.0.5 0 - 0 - - vlan202 1500 00:0c:f1:ac:91:09 5907 0 4421 4 0 vlan202 1500 10.200.0.8/30 10.200.0.9 0 - 0 - - vlan203 1500 00:00:00:00:00:00 0 0 0 0 0 vlan204 1500 00:0c:f1:ac:91:09 1459 0 1 0 0 vlan204 1500 10.0.0.84/30 10.0.0.85 0 - 0 - - vlan205 1500 00:0c:f1:ac:91:09 9728659 0 9373148 87025 0 vlan205 1500 10.0.0.8/30 10.0.0.9 2453956 - 2417754 - - tun0 1450 0 0 0 0 0 tun0 1450 10 10.169.1.2 0 - 0 - - (the vlan205 is the most used and the output error is increasing...) Trying to ping with no fragmentation flag a packet bigger than 1472 bytes throught vlan205 give me the message "Message too long" # ping -D -s 1472 10.0.0.10 PING 10.0.0.10 (10.0.0.10): 1472 data bytes 1480 bytes from 10.0.0.10: icmp_seq=0 ttl=255 time=5.199 ms 1480 bytes from 10.0.0.10: icmp_seq=1 ttl=255 time=4.905 ms 1480 bytes from 10.0.0.10: icmp_seq=2 ttl=255 time=5.036 ms ^C --- 10.0.0.10 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 4.905/5.047/5.199/0.120 ms # ping -D -s 1473 10.0.0.10 PING 10.0.0.10 (10.0.0.10): 1473 data bytes ping: sendto: Message too long ping: sendto: Message too long ping: sendto: Message too long ^C --- 10.0.0.10 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss Let me know if you need more information. Regards, Alexandre