#基础
##1.console口:带外
##2.基于网络:带外、带内(用户所使用的网络;配置telnet、ssh登录、Web页面)
##3.视图
###1>设备开机后进入配置窗口VRP: 此时是属于用户视图,能查看,权限低
###2>输入system view,或者简化sy:[Huawei]此时是系统视图 可配置、进入端口配置等
###3>接口视图:
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]
###4>协议视图:
[Huawei]ospf 1 router-id 1.1.1.1
[Huawei-ospf-1]
##4.基础配置
###1>时间配置:在用户视图下
display clock 初始查看时间
2022-11-28 10:48:45 此时此刻
Monday 星期
Time Zone(China-Standard-Time) : UTC-08:00 时区
clock timezone BJ add 8:00:00 配置时区 BJ可换成时区数字
clock datetime 10:51:10 2022-11-28 配置时间
dis clock
2022-11-28 10:51:14
Monday
Time Zone(BJ) : UTC+08:00
###2>登陆提示,在系统模式下配置
####有密码验证
[Huawei]header login information #User login#
q
Configuration console exit, please press any key to log on
User login
Login authentication
Password:
####进入系统就提示
[Huawei]header shell information userlogin2
[Huawei]q
q
Configuration console exit, please press any key to log on
User login
Login authentication
Password:
Password:
userlogin2
####使用文本中信息
不管是有无密码验证,都可以使用文本内容做提示信息
[Huawei]header login ? 登录提示
file Specify filename of banner 使用文本内容提示
information Specify information of banner 直接写提示信息
[Huawei]header shell ? 进入设备提示
file Specify filename of banner 使用文本内容提示
information Specify information of banner 直接写提示信息
###修改设备名称
[Huawei]sysname yanzhengzhuji
[yanzhengzhuji]
##5.用户等级
等级 | 命令执行 |
---|---|
0-访问 | 只执行0级命令 |
1-监控 | 只执行0和1级命令 |
2-配置 | 只执行0、1和2级命令 |
3-管理-15 | 自定义执行全部命令 |
##6.接口登录配置
默认情况(display current-configuration )console、ssh等方式登录是没有密码验证
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
[Huawei]user-interface ? 登录方式
INTEGER<0,129-149> The first user terminal interface to be configured
console Primary user terminal interface console口
current The current user terminal interface
maximum-vty The maximum number of VTY users, the default value is 5
tty The asynchronous serial user