Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2009 16:35:01 +0100 (CET)
From:      "JASSAL Aman" <aman.jassal@esigetel.fr>
To:        "Eitan Shefi" <eitans@mellanox.co.il>
Cc:        freebsd-net@freebsd.org
Subject:   Re: When configuring 2 VLANs to be on the same subnet, only one works.
Message-ID:  <52831.193.49.124.107.1231860901.squirrel@webmail.esigetel.fr>
In-Reply-To: <B8C6BEB3-C1E4-49B3-A94C-EF3C633DE641@moneybookers.com>
References:  <5D49E7A8952DC44FB38C38FA0D758EAD0173629B@mtlexch01.mtl.com> <B8C6BEB3-C1E4-49B3-A94C-EF3C633DE641@moneybookers.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Eitan,

I am no expert but I believe Stefan is right, your having a netmask of
255.0.0.0 does look strange. The way I see it, I think you are trying to
configure 2 IP addresses belonging to the same subnet (91.0.0.0/8) on your
interface, but only the first address is taken into account (91.154.12.5
on sw259 and 91.154.12.6 on sw260). Hence ping 91.154.12.6 from sw259
fails. Setting a netmask of 255.255.0.0 as Stefan suggested should solve
your problem.

Kind regards,


Aman Jassal



Le Mar 13 janvier 2009 15:03, Stefan Lambrev a écrit :
> Greetings,
>
>
> For me your configuration looks invalid. Try with netmask 255.255.0.0
> The question here is why freebsd allow this.
>
>
> On Jan 13, 2009, at 3:09 PM, Eitan Shefi wrote:
>
>
>> I'm testing a NIC driver.
>> I use 2 directly connected FreeBSD-7.0 hosts.
>> When I create 2 VLANs for the same interface (mtnic0), on each host,
>> and configure the VLANs on each host to be on the same subnet: ping works
>> only to one of the VLANs.
>>
>> I run:
>> On sw259:
>> /sbin/ifconfig vlan1 create vlan 1 vlandev mtnic0
>> /sbin/ifconfig vlan2 create vlan 2 vlandev mtnic0
>> /sbin/ifconfig vlan1 91.154.12.5 netmask 255.0.0.0
>> /sbin/ifconfig vlan2 91.155.12.5 netmask 255.0.0.0
>>
>>
>> On sw260:
>> /sbin/ifconfig vlan1 create vlan 1 vlandev mtnic0
>> /sbin/ifconfig vlan2 create vlan 2 vlandev mtnic0
>> /sbin/ifconfig vlan1 91.154.12.6 netmask 255.0.0.0
>> /sbin/ifconfig vlan2 91.155.12.6 netmask 255.0.0.0
>>
>>
>> Now on sw259 run:
>> ping 91.154.12.6 - works. ping 91.155.12.6 - does not work.
>>
>> I saw the same behavior also when running via a different NIC.
>>
>>
>>
>> Is this expected ?
>>
>>
>>
>> Thanks,
>> Eitan.
>> _______________________________________________
>> 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"
>>
>
> --
> Best Wishes,
> Stefan Lambrev
> ICQ# 24134177
>
>
>
>
>
>
> _______________________________________________
> 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"
>
>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52831.193.49.124.107.1231860901.squirrel>