Can neone help me in config of my ethernet int with VLAN?

Can neone help me in config of my ethernet int with VLAN?

ashish19 <ashish_its@yahoo.co-dot-in.no-spam.invalid> wrote:

Can neone help me in config of my ethernet int with VLAN?

ifconfig -C

vlan

ifconfig vlan0 create

ifconfig vlan0

vlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST>

ifconfig vlan0 vlan 1234 vlanif en0

ifconfig vlan0

vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1496
vlan: 1234 parent: en0
address: 00:15:c5:a8:bd:7e
inet6 fe80::215:c5ff:fea8:bd7e%vlan0 prefixlen 64 scopeid 0x3

Thanks, it is working. Now I want to know about how io-net will
distinguish between between en0 and vlan0, I mean when TCPIP has to
send some packet out, how will it decide which to use either en0 or
vlan0

ashish19 <ashish_its@yahoo.co-dot-in.no-spam.invalid> wrote:

Thanks, it is working. Now I want to know about how io-net will
distinguish between between en0 and vlan0, I mean when TCPIP has to
send some packet out, how will it decide which to use either en0 or
vlan0

Normal routing applies. You give vlan0 an ip address and set
up your routing table as desired. If a route resolves to vlan0
as the outgoing interface, the packet gets encapsulated with a
vlan tag and sent out the parent interface (vlanif = en0 in the
previous example).

Regards,

-seanb