Module 4
Module 4
Inter-VLAN Routing
- process of forwarding network traffic from one VLAN to another VLAN
ROUTER-ON-A-STICK SCENARIO
- In the figure, the R1 GigabitEthernet 0/0/1 interface is connected to the S1 FastEthernet 0/5 port. The S1 FastEthernet 0/1
port is connected to the S2 FastEthernet 0/1 port. These are trunk links that are required to forward traffic within and
between VLANs
- To route between VLANs, the R1 GigabitEthernet 0/0/1 interface is logically divided into three subinterfaces, as shown in the
table. The table also shows the three VLANs that will be configured on the switches
- Assume that R1, S1, and S2 have initial basic configurations. Currently, PC1 and PC2 cannot ping each other because they are
on separate networks. Only S1 and S2 can ping each other, but they but are unreachable by PC1 or PC2 because they are
also on different networks
- To enable devices to ping each other, the switches must be configured with VLANs and trunking, and the router must be
configured for inter-VLAN routing
R1 Subinterface Configuration
- router-on-a-stick method requires you to create a subinterface for each VLAN to be routed
subinterface - created using the interface interface_id subinterface_id global configuration mode command
subinterface syntax - physical interface followed by a period and a subinterface number
- Although not required, it is customary to match the subinterface number with the VLAN number