CE01#show run | s net1/0/1$|net1/0/2[1-2]$|el21|^router ospf
interface Port-channel21
description CE02_Po21
no switchport
ip address 203.0.113.137 255.255.255.252
ip ospf network point-to-point
ip ospf cost 100
interface GigabitEthernet1/0/1
description CORE01_Gi1/0/23
no switchport
ip address 203.0.113.141 255.255.255.252
ip ospf network point-to-point
ip ospf cost 1
interface GigabitEthernet1/0/21
description CE02_Gi1/0/21
no switchport
no ip address
channel-group 21 mode active
interface GigabitEthernet1/0/22
description CE02_Gi1/0/22
no switchport
no ip address
channel-group 21 mode active
router ospf 1
router-id 198.51.100.11
passive-interface default
no passive-interface GigabitEthernet1/0/1
no passive-interface Port-channel21
network 198.51.100.11 0.0.0.0 area 0.0.0.0
network 203.0.113.136 0.0.0.3 area 0.0.0.0
network 203.0.113.140 0.0.0.3 area 0.0.0.0
default-information originate metric 1 metric-type 1
CE02#show run | s net1/0/2$|net1/0/2[1-2]$|el21|^router ospf
interface Port-channel21
description CE01_Po21
no switchport
ip address 203.0.113.138 255.255.255.252
ip ospf network point-to-point
ip ospf cost 100
interface GigabitEthernet1/0/2
description CORE02_Gi1/0/24
no switchport
ip address 203.0.113.145 255.255.255.252
ip ospf network point-to-point
ip ospf cost 40
interface GigabitEthernet1/0/21
description CE01_Gi1/0/21
no switchport
no ip address
channel-group 21 mode active
interface GigabitEthernet1/0/22
description CE01_Gi1/0/22
no switchport
no ip address
channel-group 21 mode active
router ospf 1
router-id 198.51.100.12
passive-interface default
no passive-interface GigabitEthernet1/0/2
no passive-interface Port-channel21
network 198.51.100.12 0.0.0.0 area 0.0.0.0
network 203.0.113.144 0.0.0.3 area 0.0.0.0
network 203.0.113.128 0.0.0.127 area 0.0.0.0
default-information originate metric 100 metric-type 1
CE01#show run | s mainte
maintenance-template BGP_OSPF
router bgp 64512
router ospf 1
system mode maintenance
template BGP_OSPF
CE02#show run | s mainte
maintenance-template BGP_OSPF
router bgp 64512
router ospf 1
system mode maintenance
template BGP_OSPF
CORE01 , 02 コンフィグ
種別
CORE01 コンフィグ
CORE02 コンフィグ
解説
OSPF
CORE01#show run | s net1/0/2[1-2]$|el21|^router ospf
interface Port-channel21
description CORE02_Po21
no switchport
ip address 203.0.113.149 255.255.255.252
ip ospf network point-to-point
ip ospf cost 50
interface GigabitEthernet1/0/21
description CORE02_Gi1/0/21
no switchport
no ip address
channel-group 21 mode active
interface GigabitEthernet1/0/22
description CORE02_Gi1/0/22
no switchport
no ip address
channel-group 21 mode active
router ospf 1
router-id 198.51.100.21
passive-interface default
no passive-interface GigabitEthernet1/0/23
no passive-interface Port-channel21
network 198.51.100.21 0.0.0.0 area 0.0.0.0
network 203.0.113.0 0.0.0.127 area 0.0.0.0
network 203.0.113.140 0.0.0.3 area 0.0.0.0
network 203.0.113.148 0.0.0.3 area 0.0.0.0
CORE02#show run | s net1/0/2[1-2]$|el21|^router ospf
interface Port-channel21
description CORE01_Po21
no switchport
ip address 203.0.113.150 255.255.255.252
ip ospf network point-to-point
ip ospf cost 50
interface GigabitEthernet1/0/21
description CORE01_GI1/0/21
no switchport
no ip address
channel-group 21 mode active
interface GigabitEthernet1/0/22
description CORE01_GI1/0/22
no switchport
no ip address
channel-group 21 mode active
router ospf 1
router-id 198.51.100.22
passive-interface default
no passive-interface GigabitEthernet1/0/24
no passive-interface Port-channel21
network 198.51.100.22 0.0.0.0 area 0.0.0.0
network 203.0.113.0 0.0.0.127 area 0.0.0.0
network 203.0.113.144 0.0.0.3 area 0.0.0.0
network 203.0.113.148 0.0.0.3 area 0.0.0.0
HSRP
CORE01#show run | s net1/0/1$|Vlan1$
interface GigabitEthernet1/0/1
description CPE01_Gi1/0/23
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpdufilter enable
interface Vlan1
ip address 203.0.113.2 255.255.255.128
standby version 2
standby 1 ip 203.0.113.1
standby 1 priority 110
standby 1 preempt
CORE02#show run | s net1/0/1$|Vlan1$
interface GigabitEthernet1/0/1
description CPE01_Gi1/0/24
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpdufilter enable
interface Vlan1
ip address 203.0.113.3 255.255.255.128
standby version 2
standby 1 ip 203.0.113.1
standby 1 priority 105
standby 1 preempt
GIR
CORE01#show run | s mainte
maintenance-template OSPF_HSRP
router ospf 1
hsrp Vlan1 1
system mode maintenance
template OSPF_HSRP
CORE02#show run | s mainte
maintenance-template OSPF_HSRP
router ospf 1
hsrp Vlan1 1
system mode maintenance
template OSPF_HSRP
PE01#ping 203.0.113.101
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 203.0.113.101, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 70/87/103 ms
PE01#
PE01#traceroute 203.0.113.101
Type escape sequence to abort.
Tracing the route to 203.0.113.101
VRF info: (vrf in name/id, vrf out name/id)
1 203.0.113.130 40 msec 40 msec 38 msec
2 203.0.113.142 81 msec 54 msec 61 msec
3 203.0.113.101 [AS 64512] 103 msec * 105 msec
通常時は CE01 -> CORE01 -> CPE01 を経由する。
show ip bgp
CPE01
CPE01#ping 198.51.100.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 198.51.100.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 77/87/109 ms
CPE01#
CPE01#traceroute 198.51.100.1
Type escape sequence to abort.
Tracing the route to 198.51.100.1
VRF info: (vrf in name/id, vrf out name/id)
1 203.0.113.2 40 msec 41 msec 72 msec
2 203.0.113.141 63 msec 66 msec 69 msec
3 203.0.113.129 89 msec * 84 msec
通常時は CORE01 -> CE01 -> PE01 を経由する。
CE01 GIR BGP + OSPF 動作確認
CE01#start maintenance
Template BGP_OSPF will be applied. Do you want to continue?[confirm]
CE01#
Nov 3 2024 00:43:52 UTC: %MMODE-6-MMODE_SNAPSHOT_CREATE_ENTER_MMODE: Generating current snapshot 'before_maintenance'
Nov 3 2024 00:43:52 UTC: %MMODE-6-MMODE_CLIENT_TRANSITION_START: Maintenance Isolate start for router bgp 64512
Nov 3 2024 00:44:23 UTC: %MMODE-6-MMODE_CLIENT_TRANSITION_COMPLETE: Maintenance Isolate complete for router bgp 64512
Nov 3 2024 00:44:23 UTC: %MMODE-6-MMODE_CLIENT_TRANSITION_START: Maintenance Isolate start for router ospf 1
Nov 3 2024 00:44:53 UTC: %MMODE-6-MMODE_CLIENT_TRANSITION_COMPLETE: Maintenance Isolate complete for router ospf 1
Nov 3 2024 00:44:53 UTC: %MMODE-6-MMODE_ISOLATED: System is in Maintenance
CE01 BGP + OSPF GIR 動作確認
確認
PE01 経路確認
CPE01 経路確認
備考
BGP
PE01#show ip bgp
BGP table version is 8, local router ID is 198.51.100.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
0.0.0.0 0.0.0.0 0 i
*> 203.0.113.0/25 203.0.113.134 300 0 64512 i
通常時
経路確認
L3SW01(tcl)#tclsh
L3SW01(tcl)#foreach address {
+> 8.8.8.8
+> 203.0.113.249
+> 203.0.113.250
+> 198.51.100.253
+> 198.51.100.5
+> 198.51.100.6
+> 198.51.100.9
+> 198.51.100.10
+> 198.51.100.13
+> 198.51.100.14
+> 198.51.100.17
+> 198.51.100.18
+> 198.51.100.21
+> 198.51.100.22
+> 198.51.100.252
+>} { traceroute $address source Lo1 }
Type escape sequence to abort.
Tracing the route to 8.8.8.8
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 2 msec 3 msec
2 203.0.113.249 3 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 203.0.113.249
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 2 msec
2 *
203.0.113.249 3 msec *
Type escape sequence to abort.
Tracing the route to 203.0.113.250
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.253
VRF info: (vrf in name/id, vrf out name/id)
1 *
198.51.100.21 4 msec *
Type escape sequence to abort.
Tracing the route to 198.51.100.5
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 4 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.6
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 3 msec
2 198.51.100.6 2 msec 2 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.9
VRF info: (vrf in name/id, vrf out name/id)
1 *
198.51.100.21 4 msec *
Type escape sequence to abort.
Tracing the route to 198.51.100.10
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 3 msec
2 198.51.100.10 2 msec 2 msec 1 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.13
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec * 4 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.14
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 2 msec
2 198.51.100.14 2 msec 2 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.17
VRF info: (vrf in name/id, vrf out name/id)
1 *
198.51.100.21 3 msec *
Type escape sequence to abort.
Tracing the route to 198.51.100.18
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 4 msec 2 msec 3 msec
2 198.51.100.18 2 msec 2 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.21
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec * 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.22
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.22 3 msec * 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.252
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.252 2 msec * 2 msec
L3SW01(tcl)#
L3SW01(tcl)#tclsh
L3SW01(tcl)#foreach address {
+> 8.8.8.8
+> 203.0.113.249
+> 203.0.113.250
+> 198.51.100.253
+> 198.51.100.5
+> 198.51.100.6
+> 198.51.100.9
+> 198.51.100.10
+> 198.51.100.13
+> 198.51.100.14
+> 198.51.100.17
+> 198.51.100.18
+> 198.51.100.21
+> 198.51.100.22
+> 198.51.100.252
+>} { traceroute $address source Lo2 }
Type escape sequence to abort.
Tracing the route to 8.8.8.8
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 2 msec
2 198.51.100.10 1 msec 2 msec 2 msec
3 198.51.100.5 3 msec 3 msec 3 msec
4 203.0.113.249 3 msec * 4 msec
Type escape sequence to abort.
Tracing the route to 203.0.113.249
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 2 msec
2 198.51.100.10 1 msec 2 msec 2 msec
3 198.51.100.5 3 msec 3 msec 3 msec
4 *
203.0.113.249 4 msec *
Type escape sequence to abort.
Tracing the route to 203.0.113.250
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 3 msec
2 198.51.100.10 2 msec 3 msec 1 msec
3 198.51.100.5 3 msec * 4 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.253
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.5
VRF info: (vrf in name/id, vrf out name/id)
1 *
198.51.100.21 3 msec *
Type escape sequence to abort.
Tracing the route to 198.51.100.6
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 4 msec
2 198.51.100.6 2 msec 3 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.9
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.10
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 3 msec
2 198.51.100.10 2 msec 2 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.13
VRF info: (vrf in name/id, vrf out name/id)
1 *
198.51.100.21 3 msec *
Type escape sequence to abort.
Tracing the route to 198.51.100.14
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 3 msec
2 198.51.100.14 2 msec 2 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.17
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.18
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 13 msec 3 msec 2 msec
2 198.51.100.18 1 msec 2 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.21
VRF info: (vrf in name/id, vrf out name/id)
1 *
198.51.100.21 3 msec *
Type escape sequence to abort.
Tracing the route to 198.51.100.22
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.22 3 msec * 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.252
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.252 2 msec * 2 msec
L3SW01(tcl)#
PBR next-hop 1 つめ
障害時 経路確認
L3SW01(tcl)#foreach address {
+> 8.8.8.8
+> 203.0.113.249
+> 203.0.113.250
+> 198.51.100.253
+> 198.51.100.5
+> 198.51.100.6
+> 198.51.100.9
+> 198.51.100.10
+> 198.51.100.13
+> 198.51.100.14
+> 198.51.100.17
+> 198.51.100.18
+> 198.51.100.21
+> 198.51.100.22
+> 198.51.100.252
+>} { traceroute $address source Lo1 }
Type escape sequence to abort.
Tracing the route to 8.8.8.8
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 2 msec 2 msec
2 203.0.113.249 3 msec * 2 msec
Type escape sequence to abort.
Tracing the route to 203.0.113.249
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 2 msec 3 msec
2 *
203.0.113.249 3 msec *
Type escape sequence to abort.
Tracing the route to 203.0.113.250
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec * 5 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.253
VRF info: (vrf in name/id, vrf out name/id)
1 *
198.51.100.21 3 msec *
Type escape sequence to abort.
Tracing the route to 198.51.100.5
VRF info: (vrf in name/id, vrf out name/id)
1 * * *
2 * *
Type escape sequence to abort.
Tracing the route to 198.51.100.6
VRF info: (vrf in name/id, vrf out name/id)
1 * * *
2
Type escape sequence to abort.
Tracing the route to 198.51.100.9
VRF info: (vrf in name/id, vrf out name/id)
1 * * *
2
Type escape sequence to abort.
Tracing the route to 198.51.100.10
VRF info: (vrf in name/id, vrf out name/id)
1 * *
Type escape sequence to abort.
Tracing the route to 198.51.100.13
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 4 msec * 4 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.14
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 3 msec
2 198.51.100.14 2 msec 2 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.17
VRF info: (vrf in name/id, vrf out name/id)
1 *
198.51.100.21 3 msec *
Type escape sequence to abort.
Tracing the route to 198.51.100.18
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 2 msec
2 198.51.100.18 1 msec 3 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.21
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.22
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.22 3 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.252
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.252 2 msec * 2 msec
L3SW01(tcl)#
L3SW01(tcl)#tclsh
L3SW01(tcl)#foreach address {
+> 8.8.8.8
+> 203.0.113.249
+> 203.0.113.250
+> 198.51.100.253
+> 198.51.100.5
+> 198.51.100.6
+> 198.51.100.9
+> 198.51.100.10
+> 198.51.100.13
+> 198.51.100.14
+> 198.51.100.17
+> 198.51.100.18
+> 198.51.100.21
+> 198.51.100.22
+> 198.51.100.252
+>} { traceroute $address source Lo2 }
Type escape sequence to abort.
Tracing the route to 8.8.8.8
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 2 msec
2 198.51.100.18 2 msec 2 msec 2 msec
3 198.51.100.13 2 msec 2 msec 2 msec
4 203.0.113.249 3 msec * 4 msec
Type escape sequence to abort.
Tracing the route to 203.0.113.249
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 2 msec 2 msec
2 198.51.100.18 2 msec 2 msec 2 msec
3 198.51.100.13 2 msec 3 msec 4 msec
4 *
203.0.113.249 4 msec *
Type escape sequence to abort.
Tracing the route to 203.0.113.250
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 3 msec 6 msec
2 198.51.100.18 2 msec 3 msec 2 msec
3 198.51.100.13 3 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.253
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 2 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.5
VRF info: (vrf in name/id, vrf out name/id)
1 * * *
2
Type escape sequence to abort.
Tracing the route to 198.51.100.6
VRF info: (vrf in name/id, vrf out name/id)
1 * *
Type escape sequence to abort.
Tracing the route to 198.51.100.9
VRF info: (vrf in name/id, vrf out name/id)
1 * *
Type escape sequence to abort.
Tracing the route to 198.51.100.10
VRF info: (vrf in name/id, vrf out name/id)
1 * * *
2
Type escape sequence to abort.
Tracing the route to 198.51.100.13
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 4 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.14
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec 2 msec 3 msec
2 198.51.100.14 2 msec 1 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.17
VRF info: (vrf in name/id, vrf out name/id)
1 *
198.51.100.21 3 msec *
Type escape sequence to abort.
Tracing the route to 198.51.100.18
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 4 msec 3 msec 2 msec
2 198.51.100.18 2 msec 3 msec 2 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.21
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.21 3 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.22
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.22 3 msec * 3 msec
Type escape sequence to abort.
Tracing the route to 198.51.100.252
VRF info: (vrf in name/id, vrf out name/id)
1 198.51.100.252 2 msec * 2 msec
L3SW01(tcl)#
エントリ確認
エントリ確認
プロトコル
CE01 通常時
CE01 Gi1/0/13 障害時`
備考
PBR
CE01(config-if)#do sh run | s route-map
ip policy route-map RM_NAT_PBR
route-map RM_NAT_PBR deny 10
match ip address ACL_NO_NAT
route-map RM_NAT_PBR permit 20
match ip address ACL_NAT
set ip next-hop 198.51.100.10 198.51.100.18
CE01(config-if)#do sh ip route 198.51.100.10 255.255.255.252
Load for five secs: 5%/0%; one minute: 5%; five minutes: 5%
Time source is NTP, 15:54:08.189 JST Wed Sep 25 2024
Routing entry for 198.51.100.8/30
Known via "connected", distance 0, metric 0 (connected, via interface)
Routing Descriptor Blocks:
* directly connected, via Vlan20
Route metric is 0, traffic share count is 1
CE01(config-if)#do sh ip route 198.51.100.18
Load for five secs: 7%/0%; one minute: 5%; five minutes: 6%
Time source is NTP, 15:38:42.872 JST Wed Sep 25 2024
Routing entry for 198.51.100.16/30
Known via "connected", distance 0, metric 0 (connected, via interface)
Routing Descriptor Blocks:
* directly connected, via Vlan21
Route metric is 0, traffic share count is 1
CE01(config-if)#
CE01(config-if)#do sh run | s route-map
ip policy route-map RM_NAT_PBR
route-map RM_NAT_PBR deny 10
match ip address ACL_NO_NAT
route-map RM_NAT_PBR permit 20
match ip address ACL_NAT
set ip next-hop 198.51.100.10 198.51.100.18
CE01(config-if)#do sh ip route 198.51.100.10 255.255.255.252
Load for five secs: 4%/0%; one minute: 6%; five minutes: 5%
Time source is NTP, 15:52:51.641 JST Wed Sep 25 2024
% Subnet not in table
CE01(config-if)#
CE01(config-if)#do sh ip route 198.51.100.18
Load for five secs: 5%/0%; one minute: 5%; five minutes: 6%
Time source is NTP, 15:39:33.129 JST Wed Sep 25 2024
Routing entry for 198.51.100.16/30
Known via "connected", distance 0, metric 0 (connected, via interface)
Routing Descriptor Blocks:
* directly connected, via Vlan21
Route metric is 0, traffic share count is 1
PBR の next-hop 切替時は、障害が発生した direct connect の L3 インターフェースがダウンしており、該当のコネクテッド ルートが存在しなくなる必要がある
スタティック ルーティング
CE01(config-if)#do sh run | in ip route [0-9].*6 name
ip route 198.51.100.240 255.255.255.248 Vlan10 198.51.100.6 name NAT-RT01_NAT_Pool
CE01(config-if)#do sh ip route 198.51.100.240 255.255.255.248
Load for five secs: 5%/0%; one minute: 7%; five minutes: 6%
Time source is NTP, 15:37:27.052 JST Wed Sep 25 2024
Routing entry for 198.51.100.240/29
Known via "static", distance 1, metric 0
Routing Descriptor Blocks:
* 198.51.100.6, via Vlan10
Route metric is 0, traffic share count is 1
CE01(config-if)#do sh run | in ip route [0-9].*5 name
ip route 198.51.100.240 255.255.255.248 Vlan11 198.51.100.14 5 name NAT-RT01_NAT_Pool
CE01(config-if)#do sh ip route 198.51.100.240 255.255.255.248
Load for five secs: 7%/0%; one minute: 6%; five minutes: 6%
Time source is NTP, 15:37:48.825 JST Wed Sep 25 2024
Routing entry for 198.51.100.240/29
Known via "static", distance 5, metric 0
Routing Descriptor Blocks:
* 198.51.100.14, via Vlan11
Route metric is 0, traffic share count is 1
NAT-RT01 グローバル アドレス プール宛スタティックルートが障害切り替えされている
動作確認 - ホスト別コマンドリスト
Catalyst の PBR は設定した機器で動作確認するコマンドがほぼ存在しない。
ACL カウンターは動作しない
show route-map のカウンタもハードウェア転送では動作しない
一応 ip local policy route-map で自発トラフィックに PBR がかかるため、これで動作確認することは一応可能