Ideas: trunk/ default route (equals Cisco default gateway) Description Manage VLAN 1, which requires access to any VLAN 1 from the PC. // Configure SW1 [H3c]sysname SW1 [Sw1]int Vlan1 [Sw1-vlan-interface1]ip Add 192.168.1.1 29 [Sw1-vlan-interface1]vlan 10 [Sw1-vlan10]int Vlan10 [Sw1-vlan-interface10]ip Add 192.168.10.1 24 [Sw1-vlan-interface10]vlan 20 [Sw1-vlan20]int Vlan20 [Sw1-vlan-interface20]ip Add 192.168.20.1 24 [Sw1-vlan-interface20]quit // Configure interface for trunk [Sw1]int G1/0/1 [Sw1-gigabitethernet1/0/1]port Link-type Trunk [sw1-gigabitethernet1/0/1]port trunk Permit VLAN// do not write all to avoid garbage flow. [Sw1-gigabitethernet1/0/1]int G1/0/2 [Sw1-gigabitethernet1/0/2]port Link-type Trunk [Sw1-gigabitethernet1/0/2]port trunk Permit VLAN 20 //SW1 Configuration Complete // Configure SW2 [H3c]sysn SW2 [Sw2]int G1/0/1 [Sw2-gigabitethernet1/0/1]port Link-type Trunk [Sw2-gigabitethernet1/0/1]port trunk Permit VLAN 10 [Sw2-gigabitethernet1/0/1]int G1/0/2 [Sw2-gigabitethernet1/0/2]port link-type Access [Sw2-gigabitethernet1/0/2]vlan 10 [Sw2-vlan10]port G1/0/2 [Sw2-vlan10]int Vlan1 [Sw2-vlan-interface1]ip Add 192.168.1.2 29 //vlan 1 IP finished, but the 10 segment is not accessible, and you need to add a default route [Sw2]ip route-static 0.0.0.0 0 192.168.1.1 // Configure SW3, as with SW2 [H3c]sysn SW3 [Sw3]int G1/0/1 [Sw3-gigabitethernet1/0/1]port Link-type Trunk [Sw3-gigabitethernet1/0/1]port trunk Permit VLAN 20 [Sw3-gigabitethernet1/0/1]int G1/0/2 [Sw3-gigabitethernet1/0/2]port link-type Access [Sw3-gigabitethernet1/0/2]vlan 20 [Sw3-vlan20]port G1/0/2 [Sw3-vlan20]int Vlan1 [Sw3-vlan-interface1]ip Add 192.168.1.3 29 [Sw3]ip route-static 0.0.0.0 0 192.168.1.1 |