1. 串口登录
a. 华为附带的232串口线,通过232转usb后连接交换机的console口和pc的usb口
b. 登录配置
c. 指令
<Quidway> 用户视图 system-view命令进入系统视图
[Quidway] 系统视图 quit进入用户视图
display current-configuration 显示当前配置情况(注意:配置文件中有http server enbale,但如果http没有成功启动的话,会显示undo http server enable)
d 设置交换机的ip
[Quidway]interface Vlanif 1
[Quidway-Vlanif1]ip address 192.168.100.100 255.255.255.0
e 解决ping的问题
ping -c 1 -q ip地址
f 解决http启动不了的问题
默认的网页登陆账号和密码都是admin,以下两行是 display current-configuration 输出的信息
local-user admin password simple admin
local-user admin service-type http
指定web文件
[Quidway]http server load S2700-V100R005C01SPC100.web.zip
Info: Load web file successfully.
[Quidway]http server enable
Info: Starting the HTTP server successfully.
显示交换机所有端口状态
[Quidway]display interface br
为某个用户同时开启多个服务 (多个服务名之间用空格分开)
local-user huawei service-type http telnet
关于startup
1.<Quidway>display startup
输出:
MainBoard:
Configured startup system software: flash:/S5700SI-V100R005C01SPC100.cc
Startup system software: flash:/S5700SI-V100R005C01SPC100.cc
Next startup system software: flash:/S5700SI-V100R005C01SPC100.cc
Startup saved-configuration file: flash:/hehe.cfg
Next startup saved-configuration file: flash:/hehe.cfg
Startup paf file: NULL
Next startup paf file: NULL
Startup license file: NULL
Next startup license file: NULL
Startup patch package: flash:/s27_37_57-v100r005sph013.pat
Next startup patch package: flash:/s27_37_57-v100r005sph013.pat
2.
解决ftp
更改交换机的配置文件
tftp 192.168.100.99 get yy.cfg gmi.cfg
dir
设置交换机启动时加载的配置文件:
h 解决telnet
system-view
user-interface vty 0 4
authentication-mode aaa
user privilege level 3 控制用户可操作的指令有哪些,如果不设置,像display 和 进入系统视图的指令都不可执行。
aaa
local-user gmi password simple gmi 24口s2700不支持simple ,采用cipher
local-user gmi service-type telnet
quit
telnet server enable
quit
save
i 添加用户
j 忘记密码
查看交换机端口与所接设备的映射表
[Quidway]display mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
VSI/SI MAC-Tunnel
-------------------------------------------------------------------------------
00e0-4c00-25a0 1 - - GE0/0/1 dynamic -
00e0-4c00-25aa 1 - - GE0/0/1 dynamic -
00e0-4c00-25b6 1 - - GE0/0/1 dynamic -
00e0-4c00-2581 1 - - GE0/0/1 dynamic -
00e0-4c00-2580 1 - - Eth0/0/8 dynamic -
00e0-4c00-2582 1 - - GE0/0/1 dynamic -
00e0-4c00-2587 1 - - GE0/0/1 dynamic -
00e0-4c00-2588 1 - - GE0/0/1 dynamic -
00e0-4c00-258b 1 - - GE0/0/1 dynamic -
00e0-4c00-258a 1 - - GE0/0/1 dynamic -
00e0-4c00-258c 1 - - GE0/0/1 dynamic -
00e0-4c00-2593 1 - - GE0/0/1 dynamic -
00e0-4c00-259c 1 - - GE0/0/1 dynamic -
00e0-4c00-259f 1 - - Eth0/0/5 dynamic -
00e0-4c00-2560 1 - - Eth0/0/16 dynamic -
00e0-4c00-2562 1 - - GE0/0/1 dynamic -
00e0-4c00-2565 1 - - Eth0/0/13 dynamic -
00e0-4c00-2564 1 - - GE0/0/1 dynamic -
00e0-4c00-2567 1 - - Eth0/0/11 dynamic -
00e0-4c00-2568 1 - - GE0/0/1 dynamic -
00e0-4c00-256b 1 - - GE0/0/1 dynamic -
00e0-4c00-256a 1 - - GE0/0/1 dynamic -
00e0-4c00-256d 1 - - GE0/0/1 dynamic -
00e0-4c00-2570 1 - - GE0/0/1 dynamic -
00e0-4c00-2572 1 - - GE0/0/1 dynamic -
00e0-4c00-2576 1 - - Eth0/0/3 dynamic -
00e0-4c00-2579 1 - - Eth0/0/4 dynamic -
然后解析 ETH开头的 Eth0/0/X,其中X对应的交换机的端口编号
或者 display mac-address | include Eth 这样就只显示以太网端口下的设备了
查看交换机端口通断状态
display interface brief
显示信息的过滤
http://book.51cto.com/art/201312/422806.htm
a. 让交换机显示全部信息的设置,规避telnet登陆后执行交换机指令,得到的信息不全;
system-view
user-interface vty 0 4
screen-length 0