单臂路由器和三层交换机的实验

103 阅读1分钟

实验拓扑 a2d0025ff168580677c4e4b74d93cee.png 1.配置PC1,PC2,PC3,PC4的IP地址和子网掩码

image.png image.png image.png image.png 配置SW1,SW2,SW3,SW4,SW5 SW4 sysname SW4 vlan batch 10 interface Ethernet0/0/1 port link-type access port default vlan 10

interface Ethernet0/0/2 port link-type access port default vlan 10 interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 2 to 4094 SW5 sysname SW5 vlan batch 20 nterface Ethernet0/0/1 port link-type access port default vlan 20 interface Ethernet0/0/2 port link-type access port default vlan 20 interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094 SW3 sysname SW3 vlan batch 20 300 interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094 interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 2 to 4094 interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094 interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 2 to 4094 ip route-static 0.0.0.0 0.0.0.0 10.1.13.1 SW2 sysname SW2 vlan batch 10 200 interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094 interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 2 to 4094 interface Vlanif10 ip address 192.168.1.254 255.255.255.0 interface Vlanif200 ip address 10.1.12.2 255.255.255.252 ip route-static 0.0.0.0 0.0.0.0 10.1.12.1 SW1 sysname SW1 vlan batch 100 200 300 interface GigabitEthernet0/0/1 port link-type access port default vlan 100 interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 2 to 4094 interface GigabitEthernet0/0/3 port link-type trunk port trunk allow-pass vlan 2 to 4094 interface Vlanif100 ip address 10.1.11.2 255.255.255.252 interface Vlanif200 ip address 10.1.12.1 255.255.255.252 interface Vlanif300 ip address 10.1.13.1 255.255.255.252 ip route-static 172.16.1.0 255.255.255.0 10.1.11.1 ip route-static 192.168.1.0 255.255.255.0 10.1.12.2 ip route-static 192.168.2.0 255.255.255.0 10.1.13.2 R1 sysname R1 interface GigabitEthernet0/0/0 ip address 10.1.11.1 255.255.255.252 interface GigabitEthernet0/0/1 ip address 172.16.1.254 255.255.255.0 ip route-static 0.0.0.0 0.0.0.0 10.1.11.2

image.png

image.png

image.png