初始配置,还原交换机出厂设置命令:reset saved-configuration
设置交换机名称
1
2
3
4
5
6
7
|
<H3C>
Auto-Configuration has finished!
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]
[H3C]sysname Sh-A1-192.168.0.109 # 设置交换机名称
[Sh-A1-192.168.0.109]
|
配置交换机的管理ip和网关
1
2
3
4
5
6
|
Sh-A1-192.168.0.109]int vlan 1
[Sh-A1-192.168.0.109-Vlan-interface1]ip ad
[Sh-A1-192.168.0.109-Vlan-interface1]ip address 192.168.0.109 255.255.255.192
[Sh-A1-192.168.0.109-Vlan-interface1]q
[Sh-A1-192.168.0.109]ip route-static 0.0.0.0 0.0.0.0 192.168.0.109
[Sh-A1-192.168.0.109]
|
配置登陆用户,密码,管理级别
1
2
3
4
5
6
7
8
|
[Sh-A1-192.168.0.109]local-user edong
New local user added.
[Sh-A1-192.168.0.109-luser-edong]password cipher <密码串>
[Sh-A1-192.168.0.109-luser-edong]service-type telnet ssh level 3
[Sh-A1-192.168.0.109]user-interface vty 0 4
[Sh-A1-192.168.0.109-ui-vty0-4]authentication-mode scheme
[Sh-A1-192.168.0.109-ui-vty0-4]protocol inbound telnet
|
SNMP 团体号设置,该设置用于监控流量
1
2
|
[Sh-A1-192.168.0.109]snmp-agent community read SnmpSwitchUser #后面的团体号可以任意设置,这个地方统一设置为EDSnmpSwitchUser
[Sh-A1-192.168.0.109]snmp-agent sys-info version all #加所有版本
|