78. One-arm routing in the inter-VLAN routing configuration experiment
1. Experimental Topology
2. Experimental configuration
R1 configuration
Interface FastEthernet0/0
No shut
Interface FastEthernet0/0.10
Encapsulation dot1Q 10
Ip address 192.168.10.254 255.255.255.0
Interface FastEthernet0/0.20
Encapsulation dot1Q 20
Ip address 192.168.20.254 255.255.255.0
S2 configuration
Vlan 10
Vlan 20
Interface FastEthernet0/1
Switchport access vlan 10
Switchport mode access
Spanning-tree portfast
Interface FastEthernet0/2
Switchport access vlan 20
Switchport mode access
Spanning-tree portfast
Interface FastEthernet0/3
Switchport mode trunk
Switchport nonegotiate
3. Experimental test