标签:华为交换机
把端口加入端口组里面!!
port-group 1 创建组1 group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/10 将1到10加入到组1 port link-type access 接口类型为接入模式 port access vlan 100 划入vlan 100 or vlan 1200 [Huawei-vlan1200]port GigabitEthernet 0/0/1 to 0/0/3
创建vlan,配置trunk
[Huawei]vlan 1200 创建vlan1200 [Huawei-vlan1200]q [Huawei]vlan 1201 [Huawei-vlan1201]q [Huawei]int GigabitEthernet 0/0/1 [Huawei-GigabitEthernet0/0/1]port link-type trunk 配置trunk模式 [Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan [Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan 1200 允许vlan1200,1201 [Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan 1201
配置聚合:
[Huawei]int Eth-Trunk 1 创建聚合组 [Huawei-Eth-Trunk1]q [Huawei]int GigabitEthernet 0/0/3 把端口加入到聚合组里 [Huawei-GigabitEthernet0/0/3]eth-trunk 1 [Huawei-GigabitEthernet0/0/3]int GigabitEthernet 0/0/2 [Huawei-GigabitEthernet0/0/2]eth-trunk 1 [Huawei-GigabitEthernet0/0/2]int GigabitEthernet 0/0/4 [Huawei-GigabitEthernet0/0/4]eth-trunk 1
在聚合的基础上配置trunk:
[Huawei]int Eth-Trunk 1 [Huawei-Eth-Trunk1]port link-type trunk [Huawei-Eth-Trunk1]port trunk allow-pass vlan 1200 [Huawei-Eth-Trunk1]port trunk allow-pass vlan 1201
配置远程登录:
[Huawei]aaa [Huawei-aaa]local-user test password cipher test 创建test用户加密方式为cipher密码为test [Huawei-aaa]local-user test service-type http ssh telnet web 应用于http,ssh,telnet,web [Huawei-aaa]local-user test level 3 用户的权限模式,level3为最高权限 [Huawei-aaa]q [Huawei]user-interface vty 0 4 进入虚拟终端 [Huawei-ui-vty0-4]authentication-mode aaa 认证方式采用aaa模式 [Huawei-ui-vty0-4]q
开启snmp(通常用于监控交换机)
[H3C]snmp-agent sys-info version v2c [H3C]snmp-agent community read monitor [H3C]snmp-agent trap enable [H3C]snmp-agent target-host trap address udp-domain 172.10.0.251 udp-port 162 params securityname monitor v2c
本文出自 “龙爱雪琪” 博客,请务必保留此出处http://dragon123.blog.51cto.com/9152073/1665270
标签:华为交换机
原文地址:http://dragon123.blog.51cto.com/9152073/1665270