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

bridged with qnx.rtos
Post Reply
ashish19

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

Post by ashish19 » Mon May 14, 2007 9:54 am

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

Sean Boudreau

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

Post by Sean Boudreau » Mon May 14, 2007 12:53 pm

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

ashish19

RE: Re: Can neone help me in config of my ethernet int with

Post by ashish19 » Tue May 15, 2007 5:53 am

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

Sean Boudreau

Re: Can neone help me in config of my ethernet int with

Post by Sean Boudreau » Tue May 15, 2007 12:53 pm

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

Post Reply

Return to “qnx.rtos”