Exercice 4.3.8 : Configure Layer 3 Switching and Inter-VLAN Routing
Part 1: Configure Layer 3 Switching
Step 1: Configure G0/2 as a Routed Port
Command Sequence:
MLS(config)# interface g0/2 MLS(config-if)# no switchport MLS(config-if)# ip address 209.165.200.225 255.255.255.252
Verification:
Ping 209.165.200.226:
MLS# ping 209.165.200.226
Output:
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 209.165.200.226, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms
Part 2: Configure Inter-VLAN Routing
Step 1: Add VLANs
Command Sequence:
MLS(config)# vlan 10 MLS(config-vlan)# name Staff MLS(config)# vlan 20 MLS(config-vlan)# name Student MLS(config)# vlan 30 MLS(config-vlan)# name Faculty
Step 2: Configure SVI Interfaces
Commands for VLAN 10:
MLS(config)# interface vlan 10 MLS(config-if)# ip address 192.168.10.254 255.255.255.0
Commands for VLAN 20:
MLS(config)# interface vlan 20 MLS(config-if)# ip address 192.168.20.254 255.255.255.0 MLS(config-if)# ipv6 address 2001:db8:acad:20::1/64
Commands for VLAN 30:
MLS(config)# interface vlan 30 MLS(config-if)# ip address 192.168.30.254 255.255.255.0 MLS(config-if)# ipv6 address 2001:db8:acad:30::1/64
Commands for VLAN 99:
MLS(config)# interface vlan 99 MLS(config-if)# ip address 192.168.99.254 255.255.255.0
Step 3: Configure Trunking
On MLS:
MLS(config)# interface g0/1 MLS(config-if)# switchport mode trunk MLS(config-if)# switchport trunk native vlan 99 MLS(config-if)# switchport trunk encapsulation dot1q
On S1:
S1(config)# interface g0/1 S1(config-if)# switchport mode trunk S1(config-if)# switchport trunk native vlan 99
Step 4: Enable Routing
Verify routing:
MLS> show ip route
Enable routing:
MLS(config)# ip routing
Verify active routes:
MLS# show ip route
Step 5: Verify End-to-End Connectivity
Ping tests:
From PC0 to PC3, PC1 to PC4, and PC2 to PC5.
Verify inter-VLAN and external connectivity.
Part 3: Configure IPv6 Inter-VLAN Routing
Step 1: Enable IPv6 Routing
Command:
MLS(config)# ipv6 unicast-routing
Step 2: Configure SVI for IPv6
Example for VLAN 10:
MLS(config)# interface vlan 10 MLS(config-if)# ipv6 address 2001:db8:acad:10::1/64
Repeat for VLANs 20 and 30.
Step 3: Configure IPv6 Address on G0/2
Command:
MLS(config)# interface G0/2 MLS(config-if)# ipv6 address 2001:db8:acad:a::1/64
Step 4: Verify IPv6 Routing and Connectivity
Use the show ipv6 route command:
MLS# show ipv6 route
Perform IPv6 ping tests:
From PC3, PC4, and PC5 to MLS.
Verify inter-VLAN IPv6 routing.
PreviousExercice 4.2.7 : Configure Router-on-a-Stick Inter-VLAN RoutingNextModule 1 : Introduction aux Réseaux
Last updated