1、实验一三层交换机配置H3C vlan 10 Port f0/1 quitH3C Vlan 20 Port f0/2 quitH3C int vlan 10Ip adder 1.1.1.1 24QuitH3C int vlan 20Ip add 1.1.2.1 24QuitH3C int f0/2Port link-type trunkPort trunk permit vlan 20 二层交换的配置H3C vlan 20Port f0/1 to f0/2QuitH3C int f0/2Port link-type trunk Port trunk permit vlan 20 实验二Route
2、r 0 int f0/1Ip add 1.1.1.1 24 QuitRouter 0 int f0/0Ip add 2.2.2.2 30QuitIp router-static 1.1.2.10 255.255.255.0 2.2.2.1Router 1 int f0/0 Ip add 2.2.2.1 30QuitRouter 1 int f0/1Ip add 3.3.3.2 30QuitRouter 1 int f0/0Ip add 2.2.2.1 30QuitIp router-static 1.1.2.10 255.255.255.0 3.3.3.1Ip router-static 1.1.1.10 255.255.255.0 2.2.2.2Router 2 int f0/1Ip add 3.3.3.1 30QuitRouter 1 int f0/0Ip add 1.1.2.1 24QuitIp router-static 1.1.1.10 255.255.255.0 3.3.3.2