R1(config-view)#commands exec include configure terminal
R1(config-view)#commands configure include all interface
R1(config-view)#commands configure include all router
步骤5:
exit退出视图模式.
R1#show privilege
Currently in View Context with view 'root'
R1#exit
从R2登陆到R1上,使用View模式进行配置
R2#telnet 12.1.1.1
Trying 12.1.1.1 ... Open
R1>enable view A
Password: user1password //输入配置view A的时候配置的密码
R1#? //查看可用命令
Exec commands:
<1-99> Session number to resume
configure Enter configuration mode
credential load the credential info from file system
enable Turn on privileged commands
exit Exit from the EXEC
show Show running system information
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#?
Configure commands:
do To run exec commands in config mode
exit Exit from configure mode
interface ** an interface to configure
router Enable a routing process
R1(config)#