使用命令show ip interface进行验证
命令show ip interface显示路由器接口的第三层配置信息:
1.Router#sh ip interface
FastEthernet0/0 is up,line protocol is up
Internet addressis 1.1.1.1/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access Tist is not set
Inbound access list is not set
Proxy ARP is enabled
Security level is default
Split horizon is enabled
[output cut]
上述输出包含如下信息:接口的状态、接口的IP地址和子网掩码、在接口上是否设置了访问列表以及基本的IP信息。
使用命令show ip interface brief
我们可在思科路由器中使用的命令中,show ip interface brief可能是非常有用的一个。它提供路由器接口的摘要信息,包括逻辑地址和状态:
Router#sh ip int brief
别忘了,管理性关闭意味着需要给接口配置命令no shutdown。注意,Serial0/0/0的状态为up/down,这意味着物理层正常且检测到了载波,但未收到来自远程端的存活消息。在非生产网络(如我在这里使用的网络)中,我们没有设置时钟频率。