Re: using multiple interfaces for same Network Card

From: Ian FREISLICH <ianf_at_cloudseed.co.za>
Date: Wed, 13 Mar 2013 10:21:15 +0200
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
Received on Wed Mar 13 2013 - 07:30:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:35 UTC