欢迎来到天天文库
浏览记录
ID:48053002
大小:70.56 KB
页数:15页
时间:2020-01-21
《华为基础命令总结.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、华为基础命令总结目录1.镜像口配置12.设备改名字23.配置保存24查看路由表25.telnet密码、特权密码26.用户远程登录从用户模式变成特权模式27.交换接口配置(vlan、access、trunk)38.接口物理配置39.DHCP分配310.VRRP配置411.静态路由412.RIP协议413.OSPF协议41.单区域42.多区域53.STUB54.完全STB55.点到点56.改COST值67.查看配置信息614.端口聚合61.二层端口聚合(华为又名E-trunk)62.三层端口聚合715.MSTP71.配置82.查看配置信息1016.ACL101.标准列表102.扩展列表113
2、.时间的配置(例子)114.查看配置信息111.镜像口配置[Quidway]monitor-port 指定镜像端口[Quidway]portmirror 指定被镜像端口[Quidway]portmirrorint_listobserving-portint_typeint_num指定镜像和被镜像2.设备改名字[SW2]sysnameSW23.配置保存saveAreyousuretocontinue?[Y/N]y4查看路由表displayiproutin
3、g-table5.telnet密码、特权密码[Quidway]superpassword修改特权用户密码[Huawei]user-interfacevty03[Huawei-ui-vty0-3]authentication-modepassword//设置口令模式[Huawei-ui-vty0-3]setauthenticationpasswordcipher123[Huawei-ui-vty0-3]userprivilegelevel3用户级别6.用户远程登录从用户模式变成特权模式此命令在被telnet的路由器上配置,这里和思科的命令不同,要想在LSW1配置密码只能配置CON密码![H
4、uawei]superpasswordlevel7cipher123例子LSW2远程登录到LSW1telnet192.168.1.1super7Password:sys[Huawei]7.交换接口配置(vlan、access、trunk)[SW1vlan3 [SW1-vlan3]portethernet0/1toethernet0/4 //在VLAN中增加端口[SW1]intg0/0/1[SW1-GigabitEthernet0/0/1]portlink-typeaccess[SW1-GigabitEthernet0/0/1]portd
5、efaultvlan10[SW1]inte0/0/1[SW1-Ethernet0/0/1]portlink-typetrunk[SW1-Ethernet0/0/1]porttrunkallow-passvlan{ID
6、All}[SW1-Ethernet0/0/1]porttrunkpvidvlan3 //设置trunk端口的PVID8.接口物理配置[Quidway-Ethernet0/1]duplex{half
7、full
8、auto}//配置端口工作状态[Quidway-Ethernet0/1]speed{10
9、100
10、auto}//配置端口工作速率[Quidway-Ethernet
11、0/1]flow-control//配置端口流控[Quidway-Ethernet0/1]mdi{across
12、auto
13、normal}//配置端口平接扭接[Quidway-Ethernet0/1]portlink-type{trunk
14、access
15、hybrid}//设置端口工作模式[Quidway-Ethernet0/1]undoshutdown//激活端口9.DHCP分配[SW2]dhcpenable[SW2]ippool1[SW2-ip-pool-1]network192.168.1.0255.255.255.0[SW2-ip-pool-1]dns-list192.168.1.1
16、[SW2-ip-pool-1]gateway-list192.168.1.1[SW2-ip-pool-1]excluded-ip-address 192.168.1.1 255.255.255.0 查看配置命令[Quidway]displayippool查看IP地址池配置情况10.VRRP配置[SW2]intvl10[SW2-Vlanif10]ipadd192.168.1.253255.255.255.0[SW2-Vlanif10]
此文档下载收益归作者所有