华为S5系列交换机配置

一、设置密码和交换机命名

以23FD17-JK为例,通过Xshell进入交换机进行初始密码设置,统一设置为wllt@123,进入特权模式

 //进入配置模式
<Test>sys
//为交换机命名
[test]sysname 23D17-JK

二、配置vlan和设置端口的类型以及划分vlan

//配置管理vlan 800
[23FD17-JK]vlan 800
//批量配置vlan
[23FD17-JK]vlan batch 300 to 400
//进入接口
[23D17-JK]int g0/0/1
//配置接口模式为access
[23D17-JK-GigabitEthernet0/0/1]port link-type access
//配置接口的vlan号为361
[23D17-JK-GigabitEthernet0/0/1]port default vlan 361
//退出
[23D17-JK-GigabitEthernet0/0/1]quit
//进入主线接口(光口)
[23D17-JK]interface XGigabitEthernet 0/0/1
//配置接口模式为trunk
[23D17-JK-XGigabitEthernet0/0/1]port link-type trunk
//放行所有的vlan
[23D17-JK-XGigabitEthernet0/0/1]port trunk allow-pass vlan all
//退出
[23D17-JK-GigabitEthernet0/0/1]quit

三、配置交换机管理地址和静态路由

//进入交换机虚拟管理接口
[23D17-JK]interface Vlanif 800
//配置管理地址和掩码
[23D17-JK-Vlanif800]ip add 172.50.80.89 24
//退出
[23D17-JK-Vlanif800]quit
//配置静态路由
[23D17-JK]ip route-static 0.0.0.0 0.0.0.0 172.50.80.1

注:生产网静态路由:172.50.20.2
办公网静态路由:172.50.54.1
监控网静态路由:172.50.80.1

四、配置交换机snmp协议,供ZABBIX连接使用

//开启snmp协议
[23D17-JK]snmp-agent
//设置snmp的版本
[23D17-JK]snmp-agent sys-info version all
//关闭团体属性机制
[23D17-JK]snmp-agent community complexity-check disable
//开启团体属性
[23D17-JK]snmp-agent community write public
//开启团体属性
[23D17-JK]snmp-agent community read public

五、配置交换机的本地认证和远程连接模式

//进入aaa认证
[23D17-JK]aaa
//设置登录账户名和密码
[23D17-JK-aaa]local-user admin password cipher WLLT@1234
//用户服务类型为telnet
[23D17-JK-aaa]local-user admin service-type telnet
//配置用户特权等级
[23D17-JK-aaa]local-user admin privilege level 3
//退出
[23D17-JK-aaa]quit   
//进入console连接口
[23D17-JK]user-interface console 0
//认证模式
[23D17-JK-ui-console0]authentication-mode password
//设置console进入密码
[23D17-JK-ui-console0]set authentication password cipher wllt@123
//退出
[23D17-JK-ui-console0]quit
//开启telnet服务
[23D17-JK]telnet server enable
//配置telnet源管理接口(**必须设置,否则telnet服务器无法使用**)
[23D17-JK]telnet server-source -i Vlanif800
//进入远程配置模式
[23D17-JK]user-interface vty 0 4
//通过aaa认证模式进入
[23D17-JK-ui-vty0-4]authentication-mode aaa
//退出
[23D17-JK-ui-vty0-4]quit

六、设置交换机时间

<23D17-JK>clock datetime 11:00:50 2022-11-4

七、保存配置

<23D17-JK>save
 //看到该提示先输入Y,然后在随意按一个键即可
 Are you sure to continue?[Y/N]Y
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值