• Traditional Inter-VLAN Routing:• One router interface per VLAN.. • Traditional Inter-VLAN Routing:• Traditional routing requires routers to have multiple physical interfaces to facili
Trang 1Chapter 6 Inter-VLAN Routing
Trang 2Inter-VLAN Routing Introducing Inter-VLAN Routing
Trang 3• What is Inter-VLAN Routing?
• Each VLAN is a unique broadcast domain.
• Computers on separate VLANs are, by default, not able to communicate
• Each VLAN is a unique IP subnetwork.
• To allow VLANs to communicate, we need a router to communicate among separate broadcast domains and unique IP subnetworks
• Inter-VLAN routing, then, is a process of forwarding traffic
Introducing Inter-VLAN Routing
Trang 4• Methods:
• Traditional Inter-VLAN Routing.
• Router-on-a-stick Inter-VLAN Routing.
• Switch Based Inter-VLAN Routing.
Introducing Inter-VLAN Routing
Trang 5• Traditional Inter-VLAN Routing:
• One router interface per VLAN.
Introducing Inter-VLAN Routing
VLAN Tagged
VLAN Tagged
Internally Routed to the proper subnet
Internally Routed to the proper subnet
Tagremoved
Tagremoved
Trang 6• Router-on-a-stick Inter-VLAN Routing:
• One router interface for all VLANs.
Introducing Inter-VLAN Routing
VLAN Tagged
VLAN Tagged
Internally Routed to the proper subnet
Internally Routed to the proper subnet
Tagremoved
Tagremoved
Trang 7• Layer 3 Switch Inter-VLAN Routing:
• Uses Switch Virtual Interfaces (SVI) to retag
the frame
Introducing Inter-VLAN Routing
VLAN Tagged(10)
VLAN Tagged(10)
Tagremoved
Tagremoved
Trang 8• Traditional Inter-VLAN Routing:
• Traditional routing requires routers to have multiple
physical interfaces to facilitate inter-VLAN routing
• Each interface is also configured with an IP address for the subnet associated with the particular VLAN that it is connected to
• In this configuration, network devices can use the router
as a gateway to access the devices connected to the other VLANs
Interfaces and Subinterfaces
Trang 9Traditional Inter-VLAN Routing
Traditional Inter-VLAN RoutingInterfaces and Subinterfaces
TaggedVLAN 10
TaggedVLAN 10RemovedTag
TagRemoved
Router Responds
Router Responds
to Port F0/1
Router tagsthe framefor VLAN 30And switches it
to Port F0/1
Trang 10Interfaces and Subinterfaces
Traditional Inter-VLAN Routing
Traditional Inter-VLAN Routing
Trang 11• Traditional Inter-VLAN Routing:
• Traditional inter-VLAN
routing using physicalinterfaces does have alimitation
• As the number of VLANs
increases on a network, thephysical approach of having one router interface per VLAN quickly becomes hindered by the physical
hardware limitations of a router
• Routers have a limited number of physical interfaces that they can use to connect to different VLANs
• It is very expensive to add an Ethernet Interface
Interfaces and Subinterfaces
Trang 12• Router-on-a-stick Inter-VLAN Routing:
• Subinterfaces:
• Overcomes the hardware limitation of a router
• Subinterfaces are software-based virtual interfaces
that are assigned to physical interfaces
• Each subinterface is configured with its own IP address, subnet mask, and unique VLAN assignment
• Connected to a switch trunk link
• Functionally the same as using the traditional routing model
Interfaces and Subinterfaces
Trang 13Interfaces and Subinterfaces
Router-on-a-stick Inter-VLAN Routing
Router-on-a-stick Inter-VLAN Routing
TaggedVLAN 10
TaggedVLAN 10RemovedTag
TagRemoved
TaggedVLAN 30
TagRemoved
TagRemovedVLAN 30Tagged
TaggedVLAN 30RemovedTagTag
Removed
Trang 14• Router-on-a-stick Inter-VLAN Routing:
• Configuring Subinterfaces:
• Similar to configuring physical interfaces.
• Create the subinterface.
• Assign it to a VLAN.
• Assign an IP Address.
• Enable the interface.
Interfaces and Subinterfaces
Trang 15• Router-on-a-stick Inter-VLAN Routing:
• Create the subinterface:
• The syntax for the subinterface is always the physical interface, followed by a period and a subinterface
Trang 16• Router-on-a-stick Inter-VLAN Routing:
• Assign it to a VLAN:
• Before assigning an IP Address, the interface must to
be configured to operate on a specific VLAN using the proper encapsulation
Interfaces and Subinterfaces
Trang 17• Router-on-a-stick Inter-VLAN Routing:
• Assign an IP Address:
• The IP Address assigned here will become the default gateway for that VLAN
Interfaces and Subinterfaces
Trang 18• Router-on-a-stick Inter-VLAN Routing:
• Enable the interface:
• Subinterfaces are not enabled individually.
• When the physical interface is enabled, all associated subinterfaces are enabled
R1(config-if)#no shutdown
Interfaces and Subinterfaces
Trang 19• Router-on-a-stick Inter-VLAN Routing:
• Configuring Subinterfaces:
Interfaces and Subinterfaces
VLAN 10
VLAN 10VLAN 10VLAN 10
Trang 20• Router-on-a-stick Inter-VLAN Routing:
• Configuring Subinterfaces:
Interfaces and Subinterfaces
Planning!
Planning!
Trang 21• Router Interface and Subinterface Comparison:
Interfaces and Subinterfaces
Trang 22Inter-VLAN Routing Configuring Inter-VLAN Routing
(Putting It All Together)
Trang 23• Traditional Inter-VLAN Routing:
Configuring Inter-VLAN Routing
Trang 24• Traditional Inter-VLAN Routing:
Configuring Inter-VLAN Routing
Trang 25• Traditional Inter-VLAN Routing:
Configuring Inter-VLAN Routing
Trang 26• Router-on-a-stick Inter-VLAN Routing:
Configuring Inter-VLAN Routing
Trunk in Native VLAN
Trang 27• Router-on-a-stick Inter-VLAN Routing:
Configuring Inter-VLAN Routing
Enable All Subinterfaces
Trang 28Inter-VLAN Routing Troubleshooting Inter-VLAN Routing
Trang 29• Switch Configuration Issues:VLAN 30 is working but VLAN 10 cannot communicate with the
Interface F0/4 is still in the default VLAN
switchport access vlan 10
switchport access vlan 10
Trang 30• Switch Configuration Issues:
Configuring Inter-VLAN Routing
Each of the configured subinterfaces is unable to send or receive VLAN traffic
Each of the configured subinterfaces is unable to send or receive VLAN traffic
Interface F0/5 is still in the default VLAN
Interface F0/5 is still in the default VLAN
switchport mode trunk
switchport mode trunk
Trang 31• Router Configuration Issues:
Configuring Inter-VLAN Routing
PC1 cannot communicate with the router interface and the router cannot route to VLAN 30
PC1 cannot communicate with the router interface and the router cannot route to VLAN 30
Switch port F0/4 is for VLAN 10
Switch port F0/4 is for VLAN 10
Move the cable from F0/9 to F0/4
Move the cable from F0/9 to F0/4
One of the most common mistakes in Inter-VLAN routing
One of the most common mistakes in Inter-VLAN routing
Move the cable from F0/9 to F0/4
Move the cable from F0/9 to F0/4
Trang 32• Router Configuration Issues:
Configuring Inter-VLAN Routing
PC1 cannot communicate with the router interface and the router cannot route to VLAN 30
PC1 cannot communicate with the router interface and the router cannot route to VLAN 30
Trang 33• IP Addressing Issues:
Configuring Inter-VLAN Routing
Incorrect IP address for
Incorrect IP address for
subnet 172.16.10.0/24.Incorrect subnet mask for subnet 172.16.10.0/24.
Incorrect subnet mask for
subnet 172.16.10.0/24
PC1 cannot communicate
PC1 cannot communicate