当前位置:文档之家› 配置检查命令

配置检查命令

1.luo(config)#show vlan //查看vlan和端口的对应关系VLAN Name PvidPorts UntagPorts TagPorts
--------------------------------------------------------------------------------
1 VLAN0001 fei_1/2-22,
gei_1/25-26
2 VLAN0002 fei_1/1
3 VLAN0003 fei_1/24
5 VLAN0005 fei_1/23
2. luo(config)#show ip inter brief //查看本设备上配置的IP地址Interface IP-Address Mask AdminStatus PhyStatus Protocol
vlan2 10.10.10.1 255.255.255.0 up up up vlan3 20.20.20.1 255.255.255.252 up up up vlan5 40.40.40.2 255.255.255.252 up up up
3. luo(config)#show ip route //查看本设备上的路由转发表
IPv4 Routing Table:
Dest Mask Gw Interface Owner Pri Metric
10.10.10.0 255.255.255.0 10.10.10.1 vlan2 direct 0 0 10.10.10.1 255.255.255.255 10.10.10.1 vlan2 address 0 0 20.20.20.0 255.255.255.252 20.20.20.1 vlan3 direct 0 0 20.20.20.1 255.255.255.255 20.20.20.1 vlan3 address 0 0 30.30.30.0 255.255.255.0 20.20.20.2 vlan3 ospf 110 20 40.40.40.0 255.255.255.252 40.40.40.2 vlan5 direct 0 0 40.40.40.2 255.255.255.255 40.40.40.2 vlan5 address 0 0 50.50.50.0 255.255.255.252 20.20.20.2 vlan3 ospf 110 2
4. luo(config)#show ip ospf neighbor //查看本设备的邻居表
OSPF Router with ID (10.10.10.1) (Process ID 1)
Neighbor 20.20.20.2
In the area 0.0.0.0
via interface vlan3 20.20.20.2
Neighbor is DR
State FULL, priority 1, Cost 1
Queue count : Retransmit 0, DD 0, LS Req 0
Dead time : 00:00:36 Options : 0x42
In Full State for 01:27:27
5. show ip ospf database //查看拓扑表,也就是链路状态数据库
6. show inter brief //查看端口是否正常up
7. luo(config)#show logfile 查看历史配置命令
8. ping 对端的IP地址,测试连通性;
9. tracert 对端的IP地址,测试数据流走过的路径;。

相关主题