Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2013 10:21:15 +0200
From:      Ian FREISLICH <ianf@cloudseed.co.za>
To:        Yasir hussan <kolyasir@gmail.com>
Cc:        Tom Evans <tevans.uk@googlemail.com>, Current <freebsd-current@freebsd.org>
Subject:   Re: using multiple interfaces for same Network Card
Message-ID:  <E1UFgw0-0000fa-LX@clue.co.za>
In-Reply-To: <CAMwCe3S6kyokrv9rVsHqHUuas58C0jqkEJz2WoK5cOMnHS4rFg@mail.gmail.com>
References:  <CAMwCe3S6kyokrv9rVsHqHUuas58C0jqkEJz2WoK5cOMnHS4rFg@mail.gmail.com> <CAMwCe3SeCroZW1EuZ1FouZcu9S6==o%2BCDoukZt_o2UQjTvcV9Q@mail.gmail.com> <CAFHbX1LDeWRZ=KTJTYy=0QOsoSuRCTp0odiGngq=pWD4Qjpm4Q@mail.gmail.com> <CAMwCe3SyJJVLDciEYjt2urQ9Z2HwPWA1c1pLQC1Y8qJ8p-0f3g@mail.gmail.com> <E1UFNyS-000H0R-TC@clue.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
Yasir hussan wrote:
> --20cf3005141ab7271904d7be84ff
> Yes, i want to use them as vlan interface, Does any one has used *vlandev*,
> after seen this
> http://www.cyberciti.biz/faq/howto-configure-freebsd-vlans-with-ifconfig-comm
and/i
> tried to use it as
> 
> ifconfig vlan11  create 10.10.11.1  255.255.255.0 vlan 11  vlandev arge0
> ifconfig vlan12  create 10.10.12.1  255.255.255.0 vlan 12  vlandev arge0
> ifconfig vlan13  create 10.10.13.1  255.255.255.0 vlan 13  vlandev arge0
> ifconfig vlan14  create 10.10.14.1  255.255.255.0 vlan 14  vlandev arge0

you want:

ifconfig vlan11 create vlan 11 vlandev arge0 inet 10.10.11.1 netmask 255.255.255.0

or

ifconfig vlan11 create vlan 11 vlandev arge0 inet 10.10.11.1/24

Ian

-- 
Ian Freislich



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1UFgw0-0000fa-LX>