首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >感叹号是什么?和句号“。”在开关配置文件中的平均值

感叹号是什么?和句号“。”在开关配置文件中的平均值
EN

Network Engineering用户
提问于 2018-09-11 05:57:46
回答 2查看 5.6K关注 0票数 5

怎么了!还有。意味着在开关配置文件?

代码语言:javascript
复制
Current configuration: 1363 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch A
!
Command Purpose
Step 1 configure terminal Enter global configuration mode.
enable secret 5 $1$ej9.$DMUvAUnZOAmvmgqBEzIxE0
!
.

.
interface gigabitethernet0/1
ip address 172.20.137.50 255.255.255.0
!
interface gigabitethernet0/2
mvr type source

...!
interface VLAN1
 ip address 172.20.137.50 255.255.255.0
 no ip directed-broadcast
!
ip default-gateway 172.20.137.1 !
!
snmp-server community private RW
snmp-server community public RO
snmp-server community private@es0 RW
snmp-server community public@es0 RO
snmp-server chassis-id 0x12
!
end 
EN

回答 2

Network Engineering用户

回答已采纳

发布于 2018-09-11 06:38:13

在Cisco环境中,当使用show running-configshow startup-config时,感叹号(!)仅用于帮助格式化输出,使其更具可读性,并在配置中的各节之间创建空间。

句点(.)用于截断(删除)配置的长段,这是相同的。

它们没有任何其他意义。

票数 6
EN

Network Engineering用户

发布于 2020-09-21 21:26:52

嗨,我在这里谷歌了一下,因为在某些情况下,这些!绝对令人恼火.在此输出中,"aaa身份验证登录、telnet本地(和)用户名cisco密码为0 Ocsic“的分组逻辑被该逻辑撕裂!就我的逻辑而言,我不会在没有事先了解输出的情况下对这些行进行分组:

代码语言:javascript
复制
aaa new-model
aaa authentication login default none
aaa authentication login telnet local
!
username cisco password 0 Ocsic
!
line vty 0
password LetMeIn
login authentication telnet
transport input telnet
line vty 1
password LetMeIn
transport input telnet
票数 -1
EN
页面原文内容由Network Engineering提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://networkengineering.stackexchange.com/questions/53163

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档