VLAN & Subinterface Config??

in CCNA & CCENT
Each trunk created for a switch you need a seperate subinterface on your router... Its also good practice to have a different subnet for each Vlan. I know each switch receives a management IP and default gateway in the Native Vlan - Vlan 1 (802.1q). Those credentials are for management purposes only.
Where do you set the IP/Mask for each Trunk/VLAN?? Is this also configured on each subinterface of your router in addition to your encapsulation? (802.1q)
Where do you set the IP/Mask for each Trunk/VLAN?? Is this also configured on each subinterface of your router in addition to your encapsulation? (802.1q)
Ok CCNA BREAK IS OVER, TIME FOR CCSP!!!
Comments
So, if your switch has 4 VLANs in it, and you have a VLAN trunk going to your router, you would need 4 subinterfaces on the router to address each VLAN. You specify on the subinterface the encapsulation type and VLAN identifier that the subinterface will use. The subinterface identifier doesn't have to match the VLAN identifier, but it's a good idea to corrolate them.
Ok so a seperate subint on your router for EACH VLAN flowing through the trunk coming off that switch. So where do you set the mask/gateway for each Vlan?
Also you should configure which type of encapsulation you are using... dot1q or isl
Ah ok, thats what I figured! Thanks for clarifying.
So, whatever you would do on a dedicated physical interface, you would do on a VLAN subinterface, including assigning an IP.