- [Instructor] Now that we have our
access ports configured with our VLANs,
for VLANs 10 and 11, and our links
between switches configured as dot1q trunks,
we're gonna go ahead and now configure
routing, or inter-VLAN routing,
and I'm gonna use a router, or router on a stick.
I'm going to trunk that link off of f0/1,
port f0/1, off of switch one,
going to f0/0 of the IVR router,
and then create a sub-interface,
one for each VLAN on the IVR router.
Let's run out to the switch and start with that.
I'm gonna log in here,
and I just need to trunk that one port.
So, all I have to do on the switch,
trunk the port going to the router.
Switchport trunk encap dot1q.
Switchport mode trunk.
I'm done!
I'm done on the switch. Easy.
Don't trunk a router; you trunk the switch.
Now I'm gonna go out to my IVR router and configure that.
Okay, and config t, interface f0/0.
Now I'm gonna put an IP address for our management,
which is the 192.168.50.
That's the default gateway I used on all the switches,
isn't it?
It's untagged, so I'm not gonna
put it under a sub-interface.
Say no shut; enable the port.
Now, create a sub-interface, one for each VLAN.
Now I can create a number of up to...
Not two point one billion of them,
but I can use the number
of up to two point one billion.
In this case here, for VLAN 10,
I'm gonna name it ten.
Don't have to, but I think we will.
Encapsulation identifiers must match VLAN tags,
so I'm gonna say encapsulation
underneath this sub-interface is run on dot1q,
and it's the router interface for VLAN 10.
Now I can put the IP address 192.168.10.1,
which is the default gateway for VLAN 10.
Now I'm going to add the interface for VLAN 11.
Now, I don't have to use the number eleven,
but obviously it kind of makes sense, doesn't it?
Encapsulation dot1q for VLAN 11.
That has to match.
This interface is for VLAN 11.
My subnet default gateway is eleven dot one,
and the mask we'll put in this time.
And that, my friends is all you have to do.
Trunk the switch port.
I do have a native VLAN in here
without frame-tagging under interface f0/0.
I enabled the interface, created a sub-interface,
one for each VLAN.