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

  1. 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
  2. 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

  1. 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

  1. Commands for VLAN 10:

    MLS(config)# interface vlan 10
    MLS(config-if)# ip address 192.168.10.254 255.255.255.0
  2. 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
  3. 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
  4. 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

  1. 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
  2. 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

  1. Verify routing:

    MLS> show ip route
  2. Enable routing:

    MLS(config)# ip routing
  3. 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

  1. Command:

    MLS(config)# ipv6 unicast-routing

Step 2: Configure SVI for IPv6

  1. Example for VLAN 10:

    MLS(config)# interface vlan 10
    MLS(config-if)# ipv6 address 2001:db8:acad:10::1/64
  2. Repeat for VLANs 20 and 30.

Step 3: Configure IPv6 Address on G0/2

  1. 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.

Last updated