华为交换机s5700学习笔记
把端口加入端口组里面!!1
2
3
4
5
6
7
port-group 1 创建组1
group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/10 将1到10加入到组1
port link-type access 接口类型为接入模式
port accessvlan 100 划入vlan 100
or
vlan 1200
port GigabitEthernet 0/0/1 to 0/0/3
创建vlan,配置trunk
1
2
3
4
5
6
7
8
9
vlan 1200 创建vlan1200
q
vlan 1201
q
int GigabitEthernet 0/0/1
port link-type trunk 配置trunk模式
port trunk allow-pass vlan
port trunk allow-pass vlan 1200 允许vlan1200,1201
port trunk allow-pass vlan 1201
配置聚合:
1
2
3
4
5
6
7
8
int Eth-Trunk 1 创建聚合组
q
int GigabitEthernet 0/0/3 把端口加入到聚合组里
eth-trunk 1
int GigabitEthernet 0/0/2
eth-trunk 1
int GigabitEthernet 0/0/4
eth-trunk 1
在聚合的基础上配置trunk:
1
2
3
4
int Eth-Trunk 1
port link-type trunk
port trunk allow-pass vlan 1200
port trunk allow-pass vlan 1201
配置远程登录:
1
2
3
4
5
6
7
8
aaa
local-user test password cipher test 创建test用户加密方式为cipher密码为test
local-user test service-type http ssh telnet web 应用于http,ssh,telnet,web
local-user test level 3 用户的权限模式,level3为最高权限
q
user-interface vty 0 4 进入虚拟终端
authentication-mode aaa 认证方式采用aaa模式
q
开启snmp(通常用于监控交换机)
1
2
3
4
snmp-agent sys-info version v2c
snmp-agent community read monitor
snmp-agent trap enable
snmp-agent target-host trap address udp-domain 172.10.0.251 udp-port 162 params securityname monitor v2c
页:
[1]