H3C交换机配置
2021-06-08
来源:好走旅游网
(4)swA基本配置清单如下:
system-view System View: return to User View with Ctrl+Z. [H3C]sysnameswA VLAN配置: [swA]vlan10 [swA-vlan10]quit [swA]vlan 20 [swA-vlan20]quit [swA]vlan 30 [swA-vlan30]quit [swA]vlan 40 [swA-vlan40]quit [swA]vlan 50 [swA-vlan50]quit [swA]vlan 60 [swA-vlan60]quit [swA]quit [swA]vlan 10 [swA-vlan10]port Ethernet 1/0/1 to Ethernet 1/0/2 [swA-vlan10]quit [swA]vlan 20 [swA-vlan20]port Ethernet 1/0/3 to Ethernet 1/0/6 [swA-vlan20]quit [swA]vlan 30 [swA-vlan30]port Ethernet 1/0/7 to Ethernet 1/0/10 [swA-vlan30]quit [swA]vlan 40 [swA-vlan40]port Ethernet 1/0/11 to Ethernet 1/0/16 [swA-vlan40]quit [swA]vlan 50 [swA-vlan50]port Ethernet 1/0/17 to Ethernet 1/0/20 [swA-vlan50]quit [swA]vlan 60 [swA-vlan60]port Ethernet 1/0/21 to Ethernet 1/0/23 [swA-vlan60]quit TRUNK配置: [swA]interface Ethernet 1/0/24//进入fa0/24端口接口模式 [swA-Ethernet1/0/24]port link-type trunk//将fa0/24端口设置成trunk模式 [swA-Ethernet1/0/24]port trunk permit vlan all//定义trunk口允许通过的vlan列表 [swA-Ethernet1/0/24]return save保存配置