From owner-freebsd-net Thu Jun 6 11:43:55 2002 Delivered-To: freebsd-net@freebsd.org Received: from inje.iskon.hr (inje.iskon.hr [213.191.128.16]) by hub.freebsd.org (Postfix) with ESMTP id A8FA837B406 for ; Thu, 6 Jun 2002 11:43:47 -0700 (PDT) Received: from tel.fer.hr (zg05-220.dialin.iskon.hr [213.191.138.221]) by mail.iskon.hr (8.11.4/8.11.4/Iskon 8.11.3-1) with ESMTP id g56IhdT02827; Thu, 6 Jun 2002 20:43:39 +0200 (MEST) Message-ID: <3CFFAD41.441C0E@tel.fer.hr> Date: Thu, 06 Jun 2002 20:43:13 +0200 From: Marko Zec X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: "Vladimir B. Grebenschikov" , freebsd-net@freebsd.org Subject: Re: [HELP] IPless VLAN interfaces References: <20020606125126.3d44145c.c.prevotaux@hexanet.fr> <1023373804.470.20.camel@vbook.express.ru> <3CFF7644.F4F5CC1@tel.fer.hr> <1023376206.470.40.camel@vbook.express.ru> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "Vladimir B. Grebenschikov" wrote: > χ Thu, 06.06.2002, Χ 18:48, Marko Zec ΞΑΠΙΣΑΜ: > > > > # ifconfig fxp0 1.1.1.1/24 > > > # ifconfig vlan0 1.1.1.1/32 > > > # ifconfig vlan1 1.1.1.1/32 > > > # ifconfig vlan2 1.1.1.1/32 > > > > This will never work - you can't have the same IP address/mask on more than > > one interface. > > Sure ? Do have try cut and paste my example into xterm ? > > vbook#/sys/i386/compile/VBOOK 142_> ifconfig -a > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > fxp0: flags=8843 mtu 1500 > inet 192.168.1.111 netmask 0xffffff00 broadcast 192.168.1.255 > ether 08:00:46:04:31:b3 > media: Ethernet autoselect (100baseTX) > status: active > vbook#/sys/i386/compile/VBOOK 143_> ifconfig lo0 1.1.1.1/32 alias > vbook#/sys/i386/compile/VBOOK 144_> ifconfig fxp0 1.1.1.1/32 alias > vbook#/sys/i386/compile/VBOOK 145_> uname -a > FreeBSD vbook.express.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Fri May 24 > 15:49:21 MSD 2002 > root@vbook.express.ru:/usr/obj/usr/local/src/sys/VBOOK i386 > vbook#/sys/i386/compile/VBOOK 147_> ifconfig -a > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > inet 1.1.1.1 netmask 0xffffffff > fxp0: flags=8843 mtu 1500 > inet 192.168.1.111 netmask 0xffffff00 broadcast 192.168.1.255 > inet 1.1.1.1 netmask 0xffffffff broadcast 1.1.1.1 > ether 08:00:46:04:31:b3 > media: Ethernet autoselect (100baseTX) > status: active > > Both addresses are work: > > vbook#/sys/i386/compile/VBOOK 153_> ping -R -S 1.1.1.1 127.0.0.1 > PING 127.0.0.1 (127.0.0.1) from 1.1.1.1: 56 data bytes > 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.167 ms > RR: localhost (127.0.0.1) > 1.1.1.1 > 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.150 ms (same > route) > vbook#/sys/i386/compile/VBOOK 154_> ping -n -R -S 1.1.1.1 192.168.1.109 > PING 192.168.1.109 (192.168.1.109) from 1.1.1.1: 56 data bytes > 64 bytes from 192.168.1.109: icmp_seq=0 ttl=64 time=1.836 ms > RR: 192.168.1.109 > 1.1.1.1 > 64 bytes from 192.168.1.109: icmp_seq=1 ttl=64 time=1.600 ms (same > route) > > (use loopback not best way to do this, but you can try any interface) > > > What OS are you running? > > # uname -a > FreeBSD vbook.express.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Fri May 24 > 15:49:21 MSD 2002 > root@vbook.express.ru:/usr/obj/usr/local/src/sys/VBOOK i386 > > Same setup works well on 4-STABLE In your original post, you were suggesting to put the same IP/mask on different "real" interfaces, not loopback. Could you pls. try to create a couple of vlan interfaces (ifconfig vlan0 create...), than configure them with the same IP addresses/masks as you suggested earlier, and show us the results of this procedure? On my 4.6-RC system, such thing just don't work, thanks God. Marko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message