什么叫“!” 和句号“.” 意味着在交换机配置文件中

网络工程 转变 网络
2021-07-09 13:57:43

怎么办!和 。是指在交换机配置文件中吗?

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
!
.
<output truncated>
.
interface gigabitethernet0/1
ip address 172.20.137.50 255.255.255.0
!
interface gigabitethernet0/2
mvr type source
<output truncated>
...!
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 
2个回答

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

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

它们没有任何其他含义。

嗨,我只是在这里用谷歌搜索,因为在某些情况下这些!绝对令人恼火,即。在这个输出中,“aaa authentication login telnet local (and) username cisco password 0 Ocsic”的分组逻辑被那个!。对于我的逻辑,我不会在没有关于输出的先验知识的情况下对这些行进行分组:

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