华为设备配置
1、基础配置
[]修改设备名: sysname
<>进入系统视图: system-view
<>设置时钟: clock datetime 时:分:秒 年-月-日
<>设置时区: clock timezone <zone name> add <08:00:00>
<>查看时间与时区: display clock
[]设置登录前消息: header login information <text>
[]设置登录后消息: header shell information <text>
<>关闭系统提示信息: undo terminal monitor
2、认证设置
1、console认证
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]user-interface console 0
[Huawei-ui-console0]user privilege level 3
[Huawei-ui-console0]authentication-mode pa
[Huawei-ui-console0]authentication-mode password
[Huawei-ui-console0]set authentication password cipher hjjzs
[Huawei-ui-console0]
2、vty(远程登录)
vty最多支持15个vty用户登录,但如下设置会报错
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]user-interface vty ?
INTEGER<0-4> The first user terminal interface to be
configured
[Huawei]user-interface vty 5
^
Error: Wrong parameter found at '^' position.
[Huawei]
如何使其支持15个vty用户登录呢?
[Huawei]user-interface
maximum-vty ?
INTEGER<0-15> The maximum number of VTY users, the default
value is 5
[Huawei]user-interface maximum-vty 15
[Huawei]user-interface vty ?
INTEGER<0-14> The first user terminal interface to be
configured
[Huawei]
设置密码
[Huawei]user-interface
vty 5
[Huawei-ui-vty5]user privilege level 3
[Huawei-ui-vty5]authentication-mode password
[Huawei-ui-vty5]set authentication password cipher hjjzs
[Huawei-ui-vty5]
3、远程登录
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]telnet server enable
Info: The Telnet server has been enabled.
[Huawei]
[Huawei]int
Vlanif 1
[Huawei-Vlanif1]ip ad
[Huawei-Vlanif1]ip address 192.168.1.3 24
[Huawei-Vlanif1]
[Huawei]user-interface
vty 0
[Huawei-ui-vty0]user privilege level 3
[Huawei-ui-vty0]authentication-mode password
[Huawei-ui-vty0]set authentication password cipher hjjzs
[Huawei-ui-vty0]
3、批处理操作
可以同时对多个端口进行操作
[Huawei]port-group
group-member e0/0/2 to e0/0/6 # group-member e0/0/07 to e0/0/08 e0/0/11
[Huawei-port-group]port link-type trunk
[Huawei-Ethernet0/0/2]port link-type trunk
[Huawei-Ethernet0/0/3]port link-type trunk
[Huawei-Ethernet0/0/4]port link-type trunk
[Huawei-Ethernet0/0/5]port link-type trunk
[Huawei-Ethernet0/0/6]port link-type trunk
[Huawei-port-group]