H3C S2100&S3100 网络配置

初始配置,还原交换机出厂设置命令:reset saved-configuration

1、设置交换机名称

<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]


2、配置交换机的管理ip和网关

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]


3、配置登陆用户,密码,管理级别

[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


4、SNMP 团体号设置,该设置用于监控流量

[Sh-A1-192.168.0.109]snmp-agent community read SnmpSwitchUser      #后面的团体号可以任意设置,这个地方统一设置为EDSnmpSwitchUser
[Sh-A1-192.168.0.109]snmp-agent sys-info version all        #加所有版本

Last modification:January 1st, 1970 at 08:00 am

2 comments

  1. 匿名

    经本人鉴定,此乃大神也 [F6] [F6] [F6] [F6] [F6] [F1]

    1. Mulinux
      @匿名

      @匿名:[F4]

Leave a Comment