Примеры использования утилит
Примеры использования утилиты vtysh
Просмотр таблицы маршрутизации
Перейдите в раздел Управление сервером -> Терминал.
Введите в терминале:
vtysh
Для просмотра таблицы маршрутизации введите:
show ip route
Пример вывода утилиты:
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, F - PBR,
f - OpenFabric,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
t - trapped, o - offload failure
S>* 1.1.1.1/32 [1/0] via 10.10.10.1, Leth1, weight 1, 00:02:32
O 10.10.10.0/24 [110/1] is directly connected, Leth1, weight 1, 00:02:28
C>* 10.10.10.0/24 is directly connected, Leth1, 00:02:33
C>* 10.11.12.0/25 is directly connected, Eeth2, 00:02:33
O>* 10.20.40.0/24 [110/21] via 10.10.10.201, Leth1, weight 1, 00:02:18
S>* 10.128.0.0/16 [1/0] is directly connected, Lvpn0, weight 1, 00:02:32
C>* 169.254.1.0/29 is directly connected, lb_local_in, 00:02:33
C>* 169.254.1.0/29 is directly connected, lb_local_out, 00:02:33
C>* 169.254.1.4/32 is directly connected, Lvpn0, 00:02:33
C>* 169.254.254.254/32 is directly connected, lo, 00:02:33
Полезная информация:
Не все маршруты могут быть выгружены в ядро, поэтому при просмотре таблицы маршрутизации без утилиты
vtsyh
некоторые маршруты могут не отображаться.
Просмотр конфигурации FRR
Перейдите в раздел Управление сервером -> Терминал.
Введите в терминале:
vtysh
Для просмотра конфигурации введите:
show running-config
Пример вывода утилиты:
Building configuration...
Current configuration:
!
frr version 8.5.3
frr defaults traditional
hostname bez-nazvaniya-23000007-c6d8-01c2-a572-d68497c66441
no ipv6 forwarding
service integrated-vtysh-config
!
ip route 10.128.0.0/16 Lvpn0
!
interface Leth1
ip ospf cost 125
exit
!
interface lo
ip ospf passive
exit
!
router ospf
ospf router-id 192.168.0.200
redistribute connected
redistribute static
network 172.16.10.0/24 area 0.0.0.200
default-information originate always
exit
!
ip prefix-list DEFAULT seq 5 deny 0.0.0.0/0
ip prefix-list DEFAULT seq 10 permit 0.0.0.0/0 le 32
!
route-map DEFMAP permit 10
match ip address prefix-list DEFAULT
exit
!
ip protocol ospf route-map DEFMAP
!
end
Просмотр OSPF соседства
Перейдите в раздел Управление сервером -> Терминал.
Введите в терминале:
vtysh
Для просмотра соседей OSPF введите:
show ip ospf neighbor
Пример вывода утилиты:
Neighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL
10.10.10.201 1 Full/DR 6m35s 34.709s 10.10.10.201 Leth1:10.10.10.126 0 0 0
Просмотр BGP соседства
Перейдите в раздел Управление сервером -> Терминал.
Введите в терминале:
vtysh
Для просмотра соседей BGP введите:
show ip bgp neighbors
Пример вывода утилиты:
BGP neighbor is 10.10.10.2, remote AS 123, local AS 123, internal link
Local Role: undefined
Remote Role: undefined
Member of peer-group V4_AS123_10_10_10_2 for session parameters
BGP version 4, remote router ID 10.11.12.2, local router ID 10.11.12.71
BGP state = Established, up for 00:00:10
Last read 00:00:10, Last write 00:00:09
Hold time is 180 seconds, keepalive interval is 60 seconds
Configured hold time is 180 seconds, keepalive interval is 60 seconds
Configured conditional advertisements interval is 60 seconds
Neighbor capabilities:
4 Byte AS: advertised and received
Extended Message: advertised
AddPath:
IPv4 Unicast: RX advertised
Long-lived Graceful Restart: advertised
Route refresh: advertised and received(new)
Enhanced Route Refresh: advertised
Address Family IPv4 Unicast: advertised and received
Hostname Capability: advertised (name: bez-nazvaniya-5f3323c3-6462-4981-b8a0-2b4397e3448a,domain name: n/a) not received
Graceful Restart Capability: advertised and received
Remote Restart timer is 0 seconds
Address families by peer:
none
Graceful restart information:
End-of-RIB send: IPv4 Unicast
End-of-RIB received:
Local GR Mode: Helper*
Remote GR Mode: Helper
R bit: False
N bit: False
Timers:
Configured Restart Time(sec): 120
Received Restart Time(sec): 0
IPv4 Unicast:
F bit: False
End-of-RIB sent: Yes
End-of-RIB sent after update: Yes
End-of-RIB received: No
Timers:
Configured Stale Path Time(sec): 360
Message statistics:
Inq depth is 0
Outq depth is 0
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 1 3
Keepalives: 1 2
Route Refresh: 0 0
Capability: 0 0
Total: 3 6
Minimum time between advertisement runs is 0 seconds
For address family: IPv4 Unicast
V4_AS123_10_10_10_2 peer-group member
Update group 1, subgroup 1
Packet Queue length 0
NEXT_HOP is always this router
Community attribute sent to this neighbor(all)
Inbound path policy configured
Outbound path policy configured
Route map for incoming advertisements is *IMPORT_V4_AS123_10_10_10_2
Route map for outgoing advertisements is *EXPORT_V4_AS123_10_10_10_2
12 accepted prefixes
Connections established 1; dropped 0
Last reset 00:05:26, No AFI/SAFI activated for peer
Internal BGP neighbor may be up to 255 hops away.
Local host: 10.10.10.126, Local port: 179
Foreign host: 10.10.10.2, Foreign port: 38445
Nexthop: 10.10.10.126
Nexthop global: ::
Nexthop local: ::
BGP connection: shared network
BGP Connect Retry Timer in Seconds: 120
Estimated round trip time: 1 ms
Read thread: on Write thread: on FD used: 25
Last updated