VLAN and subinterfaces

hi

I'm using Boson sim. On one router's ethernet interface I have conected switch with two hosts. Every host belongs to diffrent vlan ( VLAN 2 , VLAN3). So I configure subinterfaces in router with diffrent network address ( ethernet 0/0.2 --> 192.168.1.1 ; ethernet 0/0.3--> 192.168.2.1 ). But I left physical ethernet 0/0 without address ( can I ? ). I used 'no shutdown' command on evry subinterfaces. Now I try ping those addresses and it doesn't work. I have no reply. Is anybody now what is wrong?

Thanks

P.S. I am beginer and sorry for so simple question (probly) :)

Reply to
grzesiek
Loading thread data ...

You need to configure each subinterface with the encapsulation type (I assume dot1q) and the vlan id. Just enumerating subinterfaces doesn't associate them with a vlan tag, and no, the subinterface number and vlan id don't have to match.

M.

Reply to
Mark Lar

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.