华为基本配置命令
华为基本命令<Huawei>system-view【用户视图】
interface gigabitethernet 0/0/1【系统视图】
【接口视图】
quit【退出上一步】ctrl+z【退出上一步】
sysname caiwu 【更改名字】
display version【查看版本】
display current-configuration【查看当前配置】
<Huawei>undo terminal monitor【取消终端监控】
在路由器设置密码:
user-interface console 0【进入到console 0接口】
authentication-mode password
【在认证模式下设置密码】
在交换机设置密码:
user-interface console 0【进入console 0接口】
set authentication password simple 123【 查看认证明文密码】
set authentication password cipher 123 【查看认证密文密码】
创建账号和密码:
aaa
local-user 123 password cipher 123
<Huawei>save【保存配置输入Y确认】
<Huawei>reboot【重启】
<Huawei>reset saved-configuration【删除所有配置】
screen-length 10【显示界面行数】
idle-timeout 0 30
【显示多长时间回到最初界面】
<Huawei>display mac-address【查看MAC地址表】
lldp enable【开启LLDP协议】
display lldp neighbor brief
【查看邻居摘要信息】
<Huawei>display bridge mac-address
【查看交换机MAC地址】
display lldp neighbor【查看邻居详细信息】
display lldp neighbor interface gigabitethernet 0/0/5【查看某个接口详细邻居信息】
undo negotiation auto
【取消自动协商】
duplex full /half
【双工:完全/一半】
speed 10/100/1000
【设置传输速度10/100/1000】
给交换机设置IP
interface vlan 1
ip address 192.168.1.66 24
<Huawei>display ip interface brief【查看详细IP的接口】
<Huawei>display arp【查看ARP缓存表】
<Huawei>display ip routing-table 【查看路由表】
user-interface vty 0 4
【进入虚拟终端接口,允许同时登入人数】
authentication-mode password
【认证模式 密码】
protocol inbound telnet
【配置接口协议是 Telnet 远程】
user privilege level 15
【配置用户登入后的权限】
页:
[1]