华为智选交换机配置过程
华为智选交换机配置过程
第一次接触华为智选的交换机,型号是s5735s,发现命令跟华为还是有区别的。。也有可能是软件版本的问题
比方第一次配置telnet的时候就发现怎么也连不上。。在官网查了这个型号的文档才发现还需要配一条命令。。
[huawei]telnet server-source -i Vlanif 10 //填对应的vlan接口
这条命令如果不敲,怎么也连不上去。。。我刚拿到手的时候就很懵逼。
还有http,我以为配了ip地址就可以登上去了,我想的太简单了,也是要配一条命令。。
http server-source -i vlanif 10
而且需要创建一个账号,华为的是可以配local-user admin service-type all,这个就不行,我一开始以为只能telnet,ssh,http各一个账号,后来发现可以写成local-user admin service-type telnet ssh http
配置ssh的时候也一样
ssh server-source -i vlanif 10
连接时报错如下:
Couldn't agree a host key algorithm (available: rsa-sha2-512,rsa-sha2-256,)
配置
ssh server publickey rsa
配置snmp也需要加一句
snmp-agent protocol source-interface vlanif 10
其他配置上目前没发现有不同
堆叠配置
两台交换机一根线
switchA
[switchA]interface stack-port 0/1
[SwitchA-stack-port0/1] port interface gigabitethernet 0/0/25 enable
switchB
[switchB]interface stack-port 0/2
[SwitchB-stack-port0/2] port interface gigabitethernet 0/0/26 enable
[switchB]stack slot 0 priority 10 //默认为100,优先级越大越优先
[switchB]stack slot 0 renumber 1 //默认为0
两台交换机两根线
switchA
[switchA]interface stack-port 0/1
[SwitchA-stack-port0/1] port interface gigabitethernet 0/0/25 enable
[switchA]interface stack-port 0/2
[SwitchA-stack-port0/1] port interface gigabitethernet 0/0/26 enable
switchB
[switchB]interface stack-port 0/1
[SwitchB-stack-port0/2] port interface gigabitethernet 0/0/25 enable
[switchB]interface stack-port 0/2
[SwitchB-stack-port0/2] port interface gigabitethernet 0/0/26 enable
[switchB]stack slot 0 priority 10 //默认为100,优先级越大越优先
[switchB]stack slot 0 renumber 1 //默认为0
查看详细内容
dis stack configuration
* : Invalid-configuration
# : Unsaved configuration
---------------Configuration on slot 0 Begin---------------
stack enable
stack slot 0 renumber 0
stack slot 0 priority 100
stack reserved-vlan 4093
stack timer mac-address switch-delay 10
interface stack-port 0/1
port interface GigabitEthernet0/0/25 enable
interface stack-port 0/2
port interface GigabitEthernet0/0/26 enable
---------------Configuration on slot 0 End-----------------
---------------Configuration on slot 1 Begin---------------
stack enable
stack slot 0 renumber 1
stack slot 1 priority 10
stack reserved-vlan 4093
stack timer mac-address switch-delay 10
interface stack-port 1/1
port interface GigabitEthernet1/0/25 enable
interface stack-port 1/2
port interface GigabitEthernet1/0/26 enable
---------------Configuration on slot 1 End-----------------
说明:
1.配置好后关机,连线后再开机
2.stack-port 0/1必须连接邻设备的stack-port 0/2,否则堆叠组建不成功
3.先为SwitchA上电,SwitchA启动后,再为SwitchB上电
清除堆叠配置
reset stack configuration
ps:用undo port interface g0/0/25 enable报错, 先shutdown interfacegt0/0/25
License:
CC BY 4.0