检查接口ip
- 方式一
display ip interface brief
[AR1]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 0
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 100.1.1.254/24 up up
GigabitEthernet0/0/1 12.1.1.1/30 up up
GigabitEthernet0/0/2 13.1.1.1/30 up up
NULL0
- 方式二
进入接口执行display this
[AR1-GigabitEthernet0/0/0]display this
[V200R003C00]
#
interface GigabitEthernet0/0/0
ip address 100.1.1.254 255.255.255.0
#
return
- 方式三
display current-configuration
[AR1]display current-configuration
#
... 这里太多了
#
interface GigabitEthernet0/0/0
ip address 100.1.1.254 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 12.1.1.1 255.255.255.252
#
interface GigabitEthernet0/0/2
ip address 13.1.1.1 255.255.255.252
#
interface NULL0
#
路由表
[AR1]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 10 Routes : 10
Destination/Mask Proto Pre Cost Flags NextHop Interface
34.1.1.0/30 Direct 0 0 D 34.1.1.2 GigabitEthernet 0/0/0
34.1.1.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/0
ospf检查
查看ospf学习到的路由
[AR1]display ospf peer brief
OSPF Process 1 with Router ID 100.1.1.254
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/2 23.1.1.2 Full
0.0.0.0 GigabitEthernet0/0/1 12.1.1.2 Full
----------------------------------------------------------------------------
BGP检查
[AR4]display bgp peer
BGP local router ID : 34.1.1.2
Local AS number : 200
Total number of peers : 2 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
34.1.1.1 4 100 3 3 0 00:01:27 Established 0
45.1.1.2 4 200 0 1 0 00:01:30 Established 0
[AR5]display bgp routing-table
BGP Local router ID is 200.1.1.254
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 5
Network NextHop MED LocPrf PrefVal Path/Ogn
i 12.1.1.0/30 34.1.1.1 2 100 0 100?
i 13.1.1.0/30 34.1.1.1 0 100 0 100?
i 23.1.1.0/30 34.1.1.1 0 100 0 100?
i 100.1.1.0/24 34.1.1.1 2 100 0 100?
*> 200.1.1.0 0.0.0.0 0 0 i
BFD
display bfd seesion all
MAC地址表
display mac-address