1、选择一个三层交换机S5700和两个二层交换机S3700,拓扑图如下2、配置三层交换机LSW9


vlan batch 10 20 30 40
#
interface Vlanif10
 ip address 192.168.10.1 255.255.255.0 
#
interface Vlanif20
 ip address 192.168.20.1 255.255.255.0 
#
interface Vlanif30
 ip address 192.168.30.1 255.255.255.0 
#
interface Vlanif40
 ip address 192.168.40.1 255.255.255.0 
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan all
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan all
#

3、配置两台二层交换机

LSW10:
vlan batch 10 20
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 10
#
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 all
#


LSW11:
vlan batch 30 40
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 40
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan all
#

4、配置PC

5、测试

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐