14.3-步骤2:VLAN、Trunk配置

数通2022-07-29

网络拓扑和配置要求见 14.1-500人规模园区网设计

核心交换机SW1:

[HX_SW1]vlan batch 10 20 30 40 200
[HX_SW1]port-g g Eth-Trunk 1 to Eth-Trunk 4
[HX_SW1-port-group]port link-ty trunk
[HX_SW1-port-group]port trunk allow-pass vlan all

接入交换机SW2:

[JR_SW2]int Eth-Trunk 1
[JR_SW2-Eth-Trunk1]p l t
[JR_SW2-Eth-Trunk1]p t a v all
[JR_SW2-Eth-Trunk1]dis this
#
interface Eth-Trunk1
 port link-type trunk
 port trunk allow-pass vlan all
 stp instance 0 cost 10000
#
return
[JR_SW2-Eth-Trunk1]qu
[JR_SW2]int e0/0/1
[JR_SW2-Ethernet0/0/1]p l a
[JR_SW2-Ethernet0/0/1]p d v 10
[JR_SW2-Ethernet0/0/1]int e0/0/2
[JR_SW2-Ethernet0/0/2]p l a
[JR_SW2-Ethernet0/0/2]p d v 20

接入交换机SW3:

[JR_SW3]vlan 30
[JR_SW3-vlan30]qu	
[JR_SW3]int Eth-Trunk 2
[JR_SW3-Eth-Trunk2]p l t
[JR_SW3-Eth-Trunk2]p t a v all
[JR_SW3-Eth-Trunk2]qu
[JR_SW3]port-g g Ethernet 0/0/1 to Ethernet 0/0/2
[JR_SW3-port-group]p l a
[JR_SW3-port-group]p d v 30

接入交换机SW4:

[JR_SW4]vlan 40
[JR_SW4]int Eth-Trunk 3
[JR_SW4-Eth-Trunk3]p l t
[JR_SW4-Eth-Trunk3]p t a v all
[JR_SW4-Eth-Trunk3]qu
[JR_SW4]int e0/0/1
[JR_SW4-Ethernet0/0/1]p l a
[JR_SW4-Ethernet0/0/1]p d v 40

接入交换机SW5:

[JR_SW5]vlan 200
[JR_SW5-vlan200]qu
[JR_SW5]int Eth-Trunk 4
[JR_SW5-Eth-Trunk4]p l t
[JR_SW5-Eth-Trunk4]p t a v all
[JR_SW5-Eth-Trunk4]qu	
[JR_SW5]port-g g Ethernet0/0/1 to Ethernet0/0/2
[JR_SW5-port-group]p l a
[JR_SW5-port-group]p d v 200

调试命令:

[JR_SW5]dis vlan
#
[JR_SW5]dis port vlan active 
版权声明:本文为下一朵云发布文章,转载请附上原文出处链接和本声明。
本文链接:https://www.orcy.net.cn/2650.html

​ 广告:HCIE-Security认证课程辅导资料(付费)

暂无评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注