グレースフル リスタートの設定
次の手順に従って、デバイスでグレースフルリスタートを設定します。
グレースフル リスタートの有効化
グレースフル リスタートはデフォルトで無効になっています。この機能をグローバルに有効にするには、 [edit routing-options] または [edit routing-instances instance-name routing-options] 階層レベルでグレースフル リスタートを設定する必要があります。
例えば:
routing-options {
graceful-restart;
}
必要に応じて、個々のプロトコルレベル、またはJunos OS 15.1以降は個々のルーティング インスタンスレベルでグローバル設定を変更できます。
BGPまたはLDPセッションが確立された後にグレースフルリスタートを設定すると、BGPまたはLDPセッションが再起動し、ピアはグレースフルリスタート機能をネゴシエートします。
グレースフルリスタートを無効にするには、disableステートメントを含めます。[edit routing-options]階層レベルでdisableステートメントを含めることですべてのプロトコルに対してグローバルにこれを行うことができ、[edit protocols protocol graceful-restart]階層レベルでdisableステートメントを含めることで単一のプロトコルのグレースフルリスタートを無効にすることができます。完全な再起動の期間を設定するには、restart-durationステートメントを含めます。120 から 900 までの数値を指定できます。
このステートメントを含めることができる階層レベルの一覧は、このステートメントのステートメント概要のセクションを参照してください。
[edit routing-options]階層レベルでgraceful-restartステートメントを含めると、集約ルートと静的ルートでもグレースフルリスタートが有効になります。
グレースフル リスタートの設定
グレースフルリスタートを有効にするには、[edit routing-instance instance-name routing-options]または[edit routing-options]階層レベルでgraceful-restartステートメントを含めます。これにより、すべてのルーティング プロトコルに対してグローバルにグレースフル リスタートが可能になります。必要に応じて、個々のプロトコル レベルでグローバル設定を変更または補足できます。
set protocols bgp group group-name allow networkが動的BGPセッションを受け入れるように設定されている場合、グレースフルリスタートまたはグレースフルルーティングエンジンスイッチオーバー中のトラフィックドロップを回避するようにunconfigured-peer-graceful-restartステートメントを設定する必要があります。
例えば:
protocols {
bgp {
group ext {
graceful-restart {
restart-time 400;
}
}
}
}
routing-options {
graceful-restart;
}
図 1 は、標準的な MPLS VPN ネットワークを示しています。ルーターCE1とCE2はカスタマーエッジルーター、PE1とPE2はプロバイダーエッジルーター、P0はプロバイダーコアルーターです。このネットワークには、複数のレイヤー3VPNと1つのレイヤー2VPNが設定されています。インターフェイスは図に示されており、以下の設定例には含まれていません。
ルーターCE1
ルーターCE1で、 t3-3/1/0の論理インターフェイスに以下のプロトコルを設定します:ユニット101にOSPF、ユニット102にRIP、ユニット103にBGP、ユニット512にIS-IS。また、ルーターPE1のルーティングインスタンスに接続できるように、メインインスタンスでグレースフルリスタート、BGP、IS-IS、OSPF、RIPを設定します。
[edit]
interfaces {
t3-3/1/0 {
encapsulation frame-relay;
unit 100 {
dlci 100;
family inet {
address 10.96.100.2/30;
}
}
unit 101 {
dlci 101;
family inet {
address 10.96.101.2/30;
}
}
unit 102 {
dlci 102;
family inet {
address 10.96.102.2/30;
}
}
unit 103 {
dlci 103;
family inet {
address 10.96.103.2/30;
}
}
unit 512 {
dlci 512;
family inet {
address 10.96.252.1/30;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.245.14.172/32;
primary;
}
address 10.96.110.1/32;
address 10.96.111.1/32;
address 10.96.112.1/32;
address 10.96.113.1/32;
address 10.96.116.1/32;
}
family iso {
address 47.0005.80ff.f800.0000.0108.0001.0102.4501.4172.00;
}
}
}
routing-options {
graceful-restart;
autonomous-system 65100;
}
protocols {
bgp {
group CE-PE-INET {
type external;
export BGP_INET_LB_DIRECT;
neighbor 10.96.103.1 {
local-address 10.96.103.2;
family inet {
unicast;
}
peer-as 65103;
}
}
}
isis {
export ISIS_L2VPN_LB_DIRECT;
interface t3-3/1/0.512;
}
ospf {
export OSPF_LB_DIRECT;
area 0.0.0.0 {
interface t3-3/1/0.101;
}
}
rip {
group RIP {
export RIP_LB_DIRECT;
neighbor t3-3/1/0.102;
}
}
}
policy-options {
policy-statement OSPF_LB_DIRECT {
term direct {
from {
protocol direct;
route-filter 10.96.101.0/30 exact;
route-filter 10.96.111.1/32 exact;
}
then accept;
}
term final {
then reject;
}
}
policy-statement RIP_LB_DIRECT {
term direct {
from {
protocol direct;
route-filter 10.96.102.0/30 exact;
route-filter 10.96.112.1/32 exact;
}
then accept;
}
term final {
then reject;
}
}
policy-statement BGP_INET_LB_DIRECT {
term direct {
from {
protocol direct;
route-filter 10.96.103.0/30 exact;
route-filter 10.96.113.1/32 exact;
}
then accept;
}
term final {
then reject;
}
}
policy-statement ISIS_L2VPN_LB_DIRECT {
term direct {
from {
protocol direct;
route-filter 10.96.116.1/32 exact;
}
then accept;
}
term final {
then reject;
}
}
}
ルーターPE1
ルーターPE1では、BGP、OSPF、MPLS、LDPとともに、マスターインスタンスでグレースフルリスタートを設定します。次に、グレースフルリスタートのプロトコル固有のインスタンスをいくつか設定します。BGP、OSPF、レイヤー2 VPN、RIP、および静的ルートのインスタンスを含めることで、グレースフルリスタートを実装する際に使用できる幅広いオプションを確認できます。 t3-0/0/0の論理インターフェイス上の個々のインスタンスで、レイヤー2 VPNインスタンスのユニット100の静的ルート、ユニット101のOSPF、ユニット102のRIP、ユニット103のBGP、ユニット512のフレームリレーのプロトコルを設定します。
[edit]
interfaces {
t3-0/0/0 {
dce;
encapsulation frame-relay-ccc;
unit 100 {
dlci 100;
family inet {
address 10.96.100.1/30;
}
family mpls;
}
unit 101 {
dlci 101;
family inet {
address 10.96.101.1/30;
}
family mpls;
}
unit 102 {
dlci 102;
family inet {
address 10.96.102.1/30;
}
family mpls;
}
unit 103 {
dlci 103;
family inet {
address 10.96.103.1/30;
}
family mpls;
}
unit 512 {
encapsulation frame-relay-ccc;
dlci 512;
}
}
t1-0/1/0 {
unit 0 {
family inet {
address 10.96.0.2/30;
}
family mpls;
}
}
lo0 {
unit 0 {
family inet {
address 10.245.14.176/32;
}
family iso {
address 47.0005.80ff.f800.0000.0108.0001.0102.4501.4176.00;
}
}
}
}
routing-options {
graceful-restart;
router-id 10.245.14.176;
autonomous-system 69;
}
protocols {
mpls {
interface all;
}
bgp {
group PEPE {
type internal;
neighbor 10.245.14.182 {
local-address 10.245.14.176;
family inet-vpn {
unicast;
}
family l2vpn {
unicast;
}
}
}
}
ospf {
area 0.0.0.0 {
interface t1-0/1/0.0;
interface fxp0.0 {
disable;
}
interface lo0.0 {
passive;
}
}
}
ldp {
interface all;
}
}
policy-options {
policy-statement STATIC-import {
from community STATIC;
then accept;
}
policy-statement STATIC-export {
then {
community add STATIC;
accept;
}
}
policy-statement OSPF-import {
from community OSPF;
then accept;
}
policy-statement OSPF-export {
then {
community add OSPF;
accept;
}
}
policy-statement RIP-import {
from community RIP;
then accept;
}
policy-statement RIP-export {
then {
community add RIP;
accept;
}
}
policy-statement BGP-INET-import {
from community BGP-INET;
then accept;
}
policy-statement BGP-INET-export {
then {
community add BGP-INET;
accept;
}
}
policy-statement L2VPN-import {
from community L2VPN;
then accept;
}
policy-statement L2VPN-export {
then {
community add L2VPN;
accept;
}
}
community BGP-INET members target:69:103;
community L2VPN members target:69:512;
community OSPF members target:69:101;
community RIP members target:69:102;
community STATIC members target:69:100;
}
routing-instances {
BGP-INET {
instance-type vrf;
interface t3-0/0/0.103;
route-distinguisher 10.245.14.176:103;
vrf-import BGP-INET-import;
vrf-export BGP-INET-export;
routing-options {
graceful-restart;
autonomous-system 65103;
}
protocols {
bgp {
group BGP-INET {
type external;
export BGP-INET-import;
neighbor 10.96.103.2 {
local-address 10.96.103.1;
family inet {
unicast;
}
peer-as 65100;
}
}
}
}
}
L2VPN {
instance-type l2vpn;
interface t3-0/0/0.512;
route-distinguisher 10.245.14.176:512;
vrf-import L2VPN-import;
vrf-export L2VPN-export;
protocols {# There is no graceful-restart statement for Layer 2 VPN instances.
l2vpn {
encapsulation-type frame-relay;
site CE1-ISIS {
site-identifier 512;
interface t3-0/0/0.512 {
remote-site-id 612;
}
}
}
}
}
OSPF {
instance-type vrf;
interface t3-0/0/0.101;
route-distinguisher 10.245.14.176:101;
vrf-import OSPF-import;
vrf-export OSPF-export;
routing-options {
graceful-restart;
}
protocols {
ospf {
export OSPF-import;
area 0.0.0.0 {
interface all;
}
}
}
}
RIP {
instance-type vrf;
interface t3-0/0/0.102;
route-distinguisher 10.245.14.176:102;
vrf-import RIP-import;
vrf-export RIP-export;
routing-options {
graceful-restart;
}
protocols {
rip {
group RIP {
export RIP-import;
neighbor t3-0/0/0.102;
}
}
}
}
STATIC {
instance-type vrf;
interface t3-0/0/0.100;
route-distinguisher 10.245.14.176:100;
vrf-import STATIC-import;
vrf-export STATIC-export;
routing-options {
graceful-restart;
static {
route 10.96.110.1/32 next-hop t3-0/0/0.100;
}
}
}
}
ルーターP0
ルーターP0では、OSPF、MPLS、およびLDPとともに、メインインスタンスでグレースフルリスタートを設定します。これにより、PEルーター上のプロトコルが相互に到達できるようになります。
[edit]
interfaces {
t3-0/1/3 {
unit 0 {
family inet {
address 10.96.0.5/30;
}
family mpls;
}
}
t1-0/2/0 {
unit 0 {
family inet {
address 10.96.0.1/30;
}
family mpls;
}
}
lo0 {
unit 0 {
family inet {
address 10.245.14.174/32;
}
family iso {
address 47.0005.80ff.f800.0000.0108.0001.0102.4501.4174.00;
}
}
}
}
routing-options {
graceful-restart;
router-id 10.245.14.174;
autonomous-system 69;
}
protocols {
mpls {
interface all;
}
ospf {
area 0.0.0.0 {
interface t1-0/2/0.0;
interface t3-0/1/3.0;
interface fxp0.0 {
disable;
}
interface lo0.0 {
passive;
}
}
}
ldp {
interface all;
}
}
ルーターPE2
ルーターPE2では、マスターインスタンスでBGP、OSPF、MPLS、LDP、およびグレースフルリスタートを設定します。 t1-0/1/3の論理インターフェイス上の個々のインスタンスで、ユニット200の静的ルート、ユニット201のOSPF、ユニット202のRIP、ユニット203のBGP、ユニット612のフレームリレーのプロトコルを設定します。また、レイヤー2 VPNインスタンスを除くすべてのルーティングインスタンスで、プロトコル固有のグレースフルリスタートを設定します。
[edit]
interfaces {
t3-0/0/0 {
unit 0 {
family inet {
address 10.96.0.6/30;
}
family mpls;
}
}
t1-0/1/3 {
dce;
encapsulation frame-relay-ccc;
unit 200 {
dlci 200;
family inet {
address 10.96.200.1/30;
}
family mpls;
}
unit 201 {
dlci 201;
family inet {
address 10.96.201.1/30;
}
family mpls;
}
unit 202 {
dlci 202;
family inet {
address 10.96.202.1/30;
}
family mpls;
}
unit 203 {
dlci 203;
family inet {
address 10.96.203.1/30;
}
family mpls;
}
unit 612 {
encapsulation frame-relay-ccc;
dlci 612;
}
}
lo0 {
unit 0 {
family inet {
address 10.245.14.182/32;
}
family iso {
address 47.0005.80ff.f800.0000.0108.0001.0102.4501.4182.00;
}
}
}
}
routing-options {
graceful-restart;
router-id 10.245.14.182;
autonomous-system 69;
}
protocols {
mpls {
interface all;
}
bgp {
group PEPE {
type internal;
neighbor 10.245.14.176 {
local-address 10.245.14.182;
family inet-vpn {
unicast;
}
family l2vpn {
unicast;
}
}
}
}
ospf {
area 0.0.0.0 {
interface t3-0/0/0.0;
interface fxp0.0 {
disable;
}
interface lo0.0 {
passive;
}
}
}
ldp {
interface all;
}
policy-options {
policy-statement STATIC-import {
from community STATIC;
then accept;
}
policy-statement STATIC-export {
then {
community add STATIC;
accept;
}
}
policy-statement OSPF-import {
from community OSPF;
then accept;
}
policy-statement OSPF-export {
then {
community add OSPF;
accept;
}
}
policy-statement RIP-import {
from community RIP;
then accept;
}
policy-statement RIP-export {
then {
community add RIP;
accept;
}
}
policy-statement BGP-INET-import {
from community BGP-INET;
then accept;
}
policy-statement BGP-INET-export {
then {
community add BGP-INET;
accept;
}
}
policy-statement L2VPN-import {
from community L2VPN;
then accept;
}
policy-statement L2VPN-export {
then {
community add L2VPN;
accept;
}
}
community BGP-INET members target:69:103;
community L2VPN members target:69:512;
community OSPF members target:69:101;
community RIP members target:69:102;
community STATIC members target:69:100;
}
routing-instances {
BGP-INET {
instance-type vrf;
interface t1-0/1/3.203;
route-distinguisher 10.245.14.182:203;
vrf-import BGP-INET-import;
vrf-export BGP-INET-export;
routing-options {
graceful-restart;
autonomous-system 65203;
}
protocols {
bgp {
group BGP-INET {
type external;
export BGP-INET-import;
neighbor 10.96.203.2 {
local-address 10.96.203.1;
family inet {
unicast;
}
peer-as 65200;
}
}
}
}
}
L2VPN {
instance-type l2vpn;
interface t1-0/1/3.612;
route-distinguisher 10.245.14.182:612;
vrf-import L2VPN-import;
vrf-export L2VPN-export;
protocols {# There is no graceful-restart statement for Layer 2 VPN instances.
l2vpn {
encapsulation-type frame-relay;
site CE2-ISIS {
site-identifier 612;
interface t1-0/1/3.612 {
remote-site-id 512;
}
}
}
}
}
OSPF {
instance-type vrf;
interface t1-0/1/3.201;
route-distinguisher 10.245.14.182:201;
vrf-import OSPF-import;
vrf-export OSPF-export;
routing-options {
graceful-restart;
}
protocols {
ospf {
export OSPF-import;
area 0.0.0.0 {
interface all;
}
}
}
}
RIP {
instance-type vrf;
interface t1-0/1/3.202;
route-distinguisher 10.245.14.182:202;
vrf-import RIP-import;
vrf-export RIP-export;
routing-options {
graceful-restart;
}
protocols {
rip {
group RIP {
export RIP-import;
neighbor t1-0/1/3.202;
}
}
}
}
STATIC {
instance-type vrf;
interface t1-0/1/3.200;
route-distinguisher 10.245.14.182:200;
vrf-import STATIC-import;
vrf-export STATIC-export;
routing-options {
graceful-restart;
static {
route 10.96.210.1/32 next-hop t1-0/1/3.200;
}
}
}
}
}
ルーターCE2
ルーターCE2では、ルーターPE2とCE1にすでに設定されているプロトコルをミラーリングして、レイヤー2とレイヤー3 vpn設定を完了します。具体的には、 t1-0/0/3の論理インターフェイスで、ユニット201のOSPF、ユニット202のRIP、ユニット203のBGP、ユニット612のIS-ISを設定します。最後に、ルーターPE2のルーティングインスタンスに接続できるように、メインインスタンスでグレースフルリスタート、BGP、IS-IS、OSPF、RIPを設定します。
[edit]
interfaces {
t1-0/0/3 {
encapsulation frame-relay;
unit 200 {
dlci 200;
family inet {
address 10.96.200.2/30;
}
}
unit 201 {
dlci 201;
family inet {
address 10.96.201.2/30;
}
}
unit 202 {
dlci 202;
family inet {
address 10.96.202.2/30;
}
}
unit 203 {
dlci 203;
family inet {
address 10.96.203.2/30;
}
}
unit 512 {
dlci 512;
family inet {
address 10.96.252.2/30;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.245.14.180/32 {
primary;
}
address 10.96.210.1/32;
address 10.96.111.1/32;
address 10.96.212.1/32;
address 10.96.213.1/32;
address 10.96.216.1/32;
}
family iso {
address 47.0005.80ff.f800.0000.0108.0001.0102.4501.4180.00;
}
}
}
}
routing-options {
graceful-restart;
autonomous-system 65200;
}
protocols {
bgp {
group CE-PE-INET {
type external;
export BGP_INET_LB_DIRECT;
neighbor 10.96.203.1 {
local-address 10.96.203.2;
family inet {
unicast;
}
peer-as 65203;
}
}
}
isis {
export ISIS_L2VPN_LB_DIRECT;
interface t1-0/0/3.612;
}
ospf {
export OSPF_LB_DIRECT;
area 0.0.0.0 {
interface t1-0/0/3.201;
}
}
rip {
group RIP {
export RIP_LB_DIRECT;
neighbor t1-0/0/3.202;
}
}
}
policy-options {
policy-statement OSPF_LB_DIRECT {
term direct {
from {
protocol direct;
route-filter 10.96.201.0/30 exact;
route-filter 10.96.211.1/32 exact;
}
then accept;
}
term final {
then reject;
}
}
policy-statement RIP_LB_DIRECT {
term direct {
from {
protocol direct;
route-filter 10.96.202.0/30 exact;
route-filter 10.96.212.1/32 exact;
}
then accept;
}
term final {
then reject;
}
}
policy-statement BGP_INET_LB_DIRECT {
term direct {
from {
protocol direct;
route-filter 10.96.203.0/30 exact;
route-filter 10.96.213.1/32 exact;
}
then accept;
}
term final {
then reject;
}
}
policy-statement ISIS_L2VPN_LB_DIRECT {
term direct {
from {
protocol direct;
route-filter 10.96.216.1/32 exact;
}
then accept;
}
term final {
then reject;
}
}
}
再起動前のルーターPE1のステータス
次の例では、再起動が発生する前のルーターPE1のネイバー関係を表示しています。
user@PE1> show bgp neighbor
Peer: 10.96.103.2+3785 AS 65100 Local: 10.96.103.1+179 AS 65103
Type: External State: Established Flags: <>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Export: [ BGP-INET-import ]
Options: <Preference LocalAddress HoldTime GracefulRestart AddressFamily PeerAS Refresh>
Address families configured: inet-unicast
Local Address: 10.96.103.1 Holdtime: 90 Preference: 170
Number of flaps: 0
Peer ID: 10.96.110.1 Local ID: 10.96.103.1 Active Holdtime: 90
Keepalive Interval: 30
Local Interface: t3-0/0/0.103
NLRI for restart configured on peer: inet-unicast
NLRI advertised by peer: inet-unicast
NLRI for this session: inet-unicast
Peer supports Refresh capability (2)
Restart time configured on the peer: 120
Stale routes from peer are kept for: 300
Restart time requested by this peer: 120
NLRI that peer supports restart for: inet-unicast
NLRI peer can save forwarding state: inet-unicast
NLRI that peer saved forwarding for: inet-unicast
NLRI that restart is negotiated for: inet-unicast
NLRI of all end-of-rib markers sent: inet-unicast
Table BGP-INET.inet.0 Bit: 30001
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Last traffic (seconds): Received 8 Sent 3 Checked 3
Input messages: Total 15 Updates 0 Refreshes 0 Octets 321
Output messages: Total 18 Updates 2 Refreshes 0 Octets 450
Output Queue[2]: 0
Peer: 10.245.14.182+4701 AS 69 Local: 10.245.14.176+179 AS 69
Type: Internal State: Established Flags: <>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Options: <Preference LocalAddress HoldTime GracefulRestart AddressFamily
Rib-group Refresh>
Address families configured: inet-vpn-unicast l2vpn
Local Address: 10.245.14.176 Holdtime: 90 Preference: 170
Number of flaps: 1
Peer ID: 10.245.14.182 Local ID: 10.245.14.176 Active Holdtime: 90
Keepalive Interval: 30
NLRI for restart configured on peer: inet-vpn-unicast l2vpn
NLRI advertised by peer: inet-vpn-unicast l2vpn
NLRI for this session: inet-vpn-unicast l2vpn
Peer supports Refresh capability (2)
Restart time configured on the peer: 120
Stale routes from peer are kept for: 300
Restart time requested by this peer: 120
NLRI that peer supports restart for: inet-vpn-unicast l2vpn
NLRI peer can save forwarding state: inet-vpn-unicast l2vpn
NLRI that peer saved forwarding for: inet-vpn-unicast l2vpn
NLRI that restart is negotiated for: inet-vpn-unicast l2vpn
NLRI of all end-of-rib markers sent: inet-vpn-unicast l2vpn
Table bgp.l3vpn.0 Bit: 10000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Table bgp.l2vpn.0 Bit: 20000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 1
Received prefixes: 1
Suppressed due to damping: 0
Table BGP-INET.inet.0 Bit: 30000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Table OSPF.inet.0 Bit: 60000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Table RIP.inet.0 Bit: 70000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Table STATIC.inet.0 Bit: 80000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Table L2VPN.l2vpn.0 Bit: 90000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 1
Received prefixes: 1
Suppressed due to damping: 0
Last traffic (seconds): Received 28 Sent 28 Checked 28
Input messages: Total 2 Updates 0 Refreshes 0 Octets 86
Output messages: Total 13 Updates 10 Refreshes 0 Octets 1073
Output Queue[0]: 0
Output Queue[1]: 0
Output Queue[2]: 0
Output Queue[3]: 0
Output Queue[4]: 0
Output Queue[5]: 0
Output Queue[6]: 0
Output Queue[7]: 0
Output Queue[8]: 0
user@PE1> show route instance detail
master:
Router ID: 10.245.14.176
Type: forwarding State: Active
Restart State: Complete Path selection timeout: 300
Tables:
inet.0 : 17 routes (15 active, 0 holddown, 1 hidden)
Restart Complete
inet.3 : 2 routes (2 active, 0 holddown, 0 hidden)
Restart Complete
iso.0 : 1 routes (1 active, 0 holddown, 0 hidden)
Restart Complete
mpls.0 : 19 routes (19 active, 0 holddown, 0 hidden)
Restart Complete
bgp.l3vpn.0 : 10 routes (10 active, 0 holddown, 0 hidden)
Restart Complete
inet6.0 : 2 routes (2 active, 0 holddown, 0 hidden)
Restart Complete
bgp.l2vpn.0 : 1 routes (1 active, 0 holddown, 0 hidden)
Restart Complete
BGP-INET:
Router ID: 10.96.103.1
Type: vrf State: Active
Restart State: Complete Path selection timeout: 300
Interfaces:
t3-0/0/0.103
Route-distinguisher: 10.245.14.176:103
Vrf-import: [ BGP-INET-import ]
Vrf-export: [ BGP-INET-export ]
Tables:
BGP-INET.inet.0 : 4 routes (4 active, 0 holddown, 0 hidden)
Restart Complete
L2VPN:
Router ID: 0.0.0.0
Type: l2vpn State: Active
Restart State: Complete Path selection timeout: 300
Interfaces:
t3-0/0/0.512
Route-distinguisher: 10.245.14.176:512
Vrf-import: [ L2VPN-import ]
Vrf-export: [ L2VPN-export ]
Tables:
L2VPN.l2vpn.0 : 2 routes (2 active, 0 holddown, 0 hidden)
Restart Complete
OSPF:
Router ID: 10.96.101.1
Type: vrf State: Active
Restart State: Complete Path selection timeout: 300
Interfaces:
t3-0/0/0.101
Route-distinguisher: 10.245.14.176:101
Vrf-import: [ OSPF-import ]
Vrf-export: [ OSPF-export ]
Tables:
OSPF.inet.0 : 8 routes (7 active, 0 holddown, 0 hidden)
Restart Complete
RIP:
Router ID: 10.96.102.1
Type: vrf State: Active
Restart State: Complete Path selection timeout: 300
Interfaces:
t3-0/0/0.102
Route-distinguisher: 10.245.14.176:102
Vrf-import: [ RIP-import ]
Vrf-export: [ RIP-export ]
Tables:
RIP.inet.0 : 6 routes (6 active, 0 holddown, 0 hidden)
Restart Complete
STATIC:
Router ID: 10.96.100.1
Type: vrf State: Active
Restart State: Complete Path selection timeout: 300
Interfaces:
t3-0/0/0.100
Route-distinguisher: 10.245.14.176:100
Vrf-import: [ STATIC-import ]
Vrf-export: [ STATIC-export ]
Tables:
STATIC.inet.0 : 4 routes (4 active, 0 holddown, 0 hidden)
Restart Complete
__juniper_private1__:
Router ID: 0.0.0.0
Type: forwarding State: Active
user@PE1> show route protocol l2vpn
inet.0: 16 destinations, 17 routes (15 active, 0 holddown, 1 hidden)
Restart Complete
inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
Restart Complete
BGP-INET.inet.0: 5 destinations, 6 routes (5 active, 0 holddown, 0 hidden)
Restart Complete
OSPF.inet.0: 7 destinations, 8 routes (7 active, 0 holddown, 0 hidden)
Restart Complete
RIP.inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
Restart Complete
STATIC.inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
Restart Complete
iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
Restart Complete
mpls.0: 20 destinations, 20 routes (20 active, 0 holddown, 0 hidden)
Restart Complete
+ = Active Route, - = Last Active, * = Both
800003 *[L2VPN/7] 00:06:00
> via t3-0/0/0.512, Pop Offset: 4
t3-0/0/0.512 *[L2VPN/7] 00:06:00
> via t1-0/1/0.0, Push 800003, Push 100004(top) Offset: -4
bgp.l3vpn.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
Restart Complete
inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
Restart Complete
L2VPN.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
Restart Complete
+ = Active Route, - = Last Active, * = Both
10.245.14.176:512:512:611/96
*[L2VPN/7] 00:06:01
Discard
bgp.l2vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
Restart Complete
再起動中のルーターPE1のステータス
グレースフルリスタートが機能していることを確認する前に、ルーターの再起動をシミュレートする必要があります。ルーティング プロセスを更新して再起動をシミュレートするには、restart routing 運用モード コマンドを使用します。
user@PE1> restart routing Routing protocol daemon started, pid 3558
次のサンプル出力は、ルーターの再起動中にキャプチャされます。
user@PE1> show bgp neighbor
Peer: 10.96.103.2 AS 65100 Local: 10.96.103.1 AS 65103
Type: External State: Active Flags: <ImportEval>
Last State: Idle Last Event: Start
Last Error: None
Export: [ BGP-INET-import ]
Options: <Preference LocalAddress HoldTime GracefulRestart AddressFamily PeerAS Refresh>
Address families configured: inet-unicast
Local Address: 10.96.103.1 Holdtime: 90 Preference: 170
Number of flaps: 0
Peer: 10.245.14.182+179 AS 69 Local: 10.245.14.176+2131 AS 69
Type: Internal State: Established Flags: <ImportEval>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Options: <Preference LocalAddress HoldTime GracefulRestart AddressFamily Rib-group Refresh>
Address families configured: inet-vpn-unicast l2vpn
Local Address: 10.245.14.176 Holdtime: 90 Preference: 170
Number of flaps: 0
Peer ID: 10.245.14.182 Local ID: 10.245.14.176 Active Holdtime: 90
Keepalive Interval: 30
NLRI for restart configured on peer: inet-vpn-unicast l2vpn
NLRI advertised by peer: inet-vpn-unicast l2vpn
NLRI for this session: inet-vpn-unicast l2vpn
Peer supports Refresh capability (2)
Restart time configured on the peer: 120
Stale routes from peer are kept for: 300
Restart time requested by this peer: 120
NLRI that peer supports restart for: inet-vpn-unicast l2vpn
NLRI peer can save forwarding state: inet-vpn-unicast l2vpn
NLRI that peer saved forwarding for: inet-vpn-unicast l2vpn
NLRI that restart is negotiated for: inet-vpn-unicast l2vpn
NLRI of received end-of-rib markers: inet-vpn-unicast l2vpn
Table bgp.l3vpn.0 Bit: 10000
RIB State: BGP restart in progress
RIB State: VPN restart in progress
Send state: in sync
Active prefixes: 10
Received prefixes: 10
Suppressed due to damping: 0
Table bgp.l2vpn.0 Bit: 20000
RIB State: BGP restart in progress
RIB State: VPN restart in progress
Send state: in sync
Active prefixes: 1
Received prefixes: 1
Suppressed due to damping: 0
Table BGP-INET.inet.0 Bit: 30000
RIB State: BGP restart in progress
RIB State: VPN restart in progress
Send state: in sync
Active prefixes: 2
Received prefixes: 2
Suppressed due to damping: 0
Table OSPF.inet.0 Bit: 60000
RIB State: BGP restart is complete
RIB State: VPN restart in progress
Send state: in sync
Active prefixes: 2
Received prefixes: 2
Suppressed due to damping: 0
Table RIP.inet.0 Bit: 70000
RIB State: BGP restart is complete
RIB State: VPN restart in progress
Send state: in sync
Active prefixes: 2
Received prefixes: 2
Suppressed due to damping: 0
Table STATIC.inet.0 Bit: 80000
RIB State: BGP restart is complete
RIB State: VPN restart in progress
Send state: in sync
Active prefixes: 1
Received prefixes: 1
Suppressed due to damping: 0
Table L2VPN.l2vpn.0 Bit: 90000
RIB State: BGP restart is complete
RIB State: VPN restart in progress
Send state: in sync
Active prefixes: 1
Received prefixes: 1
Suppressed due to damping: 0
Last traffic (seconds): Received 0 Sent 0 Checked 0
Input messages: Total 14 Updates 13 Refreshes 0 Octets 1053
Output messages: Total 3 Updates 0 Refreshes 0 Octets 105
Output Queue[0]: 0
Output Queue[1]: 0
Output Queue[2]: 0
Output Queue[3]: 0
Output Queue[4]: 0
Output Queue[5]: 0
Output Queue[6]: 0
Output Queue[7]: 0
Output Queue[8]: 0
user@PE1> show route instance detail
master:
Router ID: 10.245.14.176
Type: forwarding State: Active
Restart State: Pending Path selection timeout: 300
Tables:
inet.0 : 17 routes (15 active, 1 holddown, 1 hidden)
Restart Pending: OSPF LDP
inet.3 : 2 routes (2 active, 0 holddown, 0 hidden)
Restart Pending: OSPF LDP
iso.0 : 1 routes (1 active, 0 holddown, 0 hidden)
Restart Complete
mpls.0 : 23 routes (23 active, 0 holddown, 0 hidden)
Restart Pending: LDP VPN
bgp.l3vpn.0 : 10 routes (10 active, 0 holddown, 0 hidden)
Restart Pending: BGP VPN
inet6.0 : 2 routes (2 active, 0 holddown, 0 hidden)
Restart Complete
bgp.l2vpn.0 : 1 routes (1 active, 0 holddown, 0 hidden)
Restart Pending: BGP VPN
BGP-INET:
Router ID: 10.96.103.1
Type: vrf State: Active
Restart State: Pending Path selection timeout: 300
Interfaces:
t3-0/0/0.103
Route-distinguisher: 10.245.14.176:103
Vrf-import: [ BGP-INET-import ]
Vrf-export: [ BGP-INET-export ]
Tables:
BGP-INET.inet.0 : 6 routes (5 active, 0 holddown, 0 hidden)
Restart Pending: VPN
L2VPN:
Router ID: 0.0.0.0
Type: l2vpn State: Active
Restart State: Pending Path selection timeout: 300
Interfaces:
t3-0/0/0.512
Route-distinguisher: 10.245.14.176:512
Vrf-import: [ L2VPN-import ]
Vrf-export: [ L2VPN-export ]
Tables:
L2VPN.l2vpn.0 : 2 routes (2 active, 0 holddown, 0 hidden)
Restart Pending: VPN L2VPN
OSPF:
Router ID: 10.96.101.1
Type: vrf State: Active
Restart State: Pending Path selection timeout: 300
Interfaces:
t3-0/0/0.101
Route-distinguisher: 10.245.14.176:101
Vrf-import: [ OSPF-import ]
Vrf-export: [ OSPF-export ]
Tables:
OSPF.inet.0 : 8 routes (7 active, 1 holddown, 0 hidden)
Restart Pending: OSPF VPN
RIP:
Router ID: 10.96.102.1
Type: vrf State: Active
Restart State: Pending Path selection timeout: 300
Interfaces:
t3-0/0/0.102
Route-distinguisher: 10.245.14.176:102
Vrf-import: [ RIP-import ]
Vrf-export: [ RIP-export ]
Tables:
RIP.inet.0 : 8 routes (6 active, 2 holddown, 0 hidden)
Restart Pending: RIP VPN
STATIC:
Router ID: 10.96.100.1
Type: vrf State: Active
Restart State: Pending Path selection timeout: 300
Interfaces:
t3-0/0/0.100
Route-distinguisher: 10.245.14.176:100
Vrf-import: [ STATIC-import ]
Vrf-export: [ STATIC-export ]
Tables:
STATIC.inet.0 : 4 routes (4 active, 0 holddown, 0 hidden)
Restart Pending: VPN
__juniper_private1__:
Router ID: 0.0.0.0
Type: forwarding State: Active
user@PE1> show route instance summary
Instance Type Primary rib Active/holddown/hidden
master forwarding
inet.0 15/0/1
iso.0 1/0/0
mpls.0 35/0/0
l3vpn.0 0/0/0
inet6.0 2/0/0
l2vpn.0 0/0/0
l2circuit.0 0/0/0
BGP-INET vrf
BGP-INET.inet.0 5/0/0
BGP-INET.iso.0 0/0/0
BGP-INET.inet6.0 0/0/0
L2VPN l2vpn
L2VPN.inet.0 0/0/0
L2VPN.iso.0 0/0/0
L2VPN.inet6.0 0/0/0
L2VPN.l2vpn.0 2/0/0
OSPF vrf
OSPF.inet.0 7/0/0
OSPF.iso.0 0/0/0
OSPF.inet6.0 0/0/0
RIP vrf
RIP.inet.0 6/0/0
RIP.iso.0 0/0/0
RIP.inet6.0 0/0/0
STATIC vrf
STATIC.inet.0 4/0/0
STATIC.iso.0 0/0/0
STATIC.inet6.0 0/0/0
__juniper_private1__ forwarding
__juniper_priva.inet.0 0/0/0
__juniper_privat.iso.0 0/0/0
__juniper_priv.inet6.0 0/0/0
user@PE1> show route protocol l2vpn
inet.0: 16 destinations, 17 routes (15 active, 1 holddown, 1 hidden)
Restart Pending: OSPF LDP
inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
Restart Pending: OSPF LDP
BGP-INET.inet.0: 5 destinations, 6 routes (5 active, 0 holddown, 0 hidden)
Restart Pending: VPN
OSPF.inet.0: 7 destinations, 8 routes (7 active, 1 holddown, 0 hidden)
Restart Pending: OSPF VPN
RIP.inet.0: 6 destinations, 8 routes (6 active, 2 holddown, 0 hidden)
Restart Pending: RIP VPN
STATIC.inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
Restart Pending: VPN
iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
Restart Complete
mpls.0: 24 destinations, 24 routes (24 active, 0 holddown, 0 hidden)
Restart Pending: LDP VPN
+ = Active Route, - = Last Active, * = Both
800001 *[L2VPN/7] 00:00:13
> via t3-0/0/0.512, Pop Offset: 4
t3-0/0/0.512 *[L2VPN/7] 00:00:13
> via t1-0/1/0.0, Push 800003, Push 100004(top) Offset: -4
bgp.l3vpn.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
Restart Pending: BGP VPN
inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
Restart Complete
L2VPN.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
Restart Pending: VPN L2VPN
+ = Active Route, - = Last Active, * = Both
10.245.14.176:512:512:611/96
*[L2VPN/7] 00:00:13
Discard
bgp.l2vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
Restart Pending: BGP VPN
VPN グレースフル リスタートの設定
グレースフル リスタートにより、VPN コントロール プレーン再起動中のルーターが、隣接ルーターからその状態を復旧する間も、トラフィックの転送を継続することができます。グレースフルリスタートを使用しない場合、コントロールプレーンを再起動すると、ルーターが提供するすべてのVPNサービスが中断されます。グレースフル リスタートは、レイヤー 2 VPN、レイヤー 3 VPN、仮想ルーター ルーティング インスタンス、VPLS でサポートされています。
レイヤー 2 VPN またはレイヤー 3 VPN のグレースフル リスタートを実装するには、次のセクションで説明する構成タスクを実行します。
グレースフルリスタートのグローバル設定
グレースフルリスタートを有効にするには、[edit routing-options]階層レベルでgraceful-restartステートメントを含めます。グレースフルリスタート期間にグローバル期間を設定するには、[edit routing-options graceful-restart]階層レベルでrestart-durationステートメントを含めます。
[edit]
routing-options {
graceful-restart {
disable;
restart-duration seconds;
}
}
グレースフルリスタートをグローバルに無効にするには、[edit routing-options graceful-restart]階層レベルでdisableステートメントを含めます。
ルーティング インスタンスのグレースフル リスタートの設定
レイヤー3VPNに限り、[edit routing-instances instance-name routing-options]階層レベルでgraceful-restartステートメントを含めることで、ルーティング インスタンス内のすべてのルーティングおよびMPLS関連プロトコルに対してもグレースフルリスタートを設定する必要があります。マルチインスタンスBGPとマルチインスタンスLDPを設定できるため、キャリアオブキャリアのシナリオにおけるグレースフルリスタートがサポートされています。ルーティング インスタンスグレースフルリスタート期間を設定するには、[edit routing-instances instance-name routing-options]にrestart-durationステートメントを含めます。
[edit]
routing-instances {
instance-name {
routing-options {
graceful-restart {
disable;
restart-duration seconds;
}
}
}
}
[edit routing-instances instance-name protocols protocol-name graceful-restart]階層レベルでdisableステートメントを使用して、個々のプロトコルのグレースフルリスタートを無効にすることができます。
論理システム グレースフル リスタートの設定
論理システムのグレースフルリスタートは、メインルーターのグレースフルリスタートとほぼ同じように機能します。唯一の違いは、 graceful-restart ステートメントの位置です。
次のトピックでは、論理システムでグレースフルリスタートを実装するために設定する内容について説明します。
グレースフル リスタートのグローバルな有効化
論理システムでグレースフルリスタートを有効にするには、[edit logical-systems logical-system-name routing-options]階層レベルでgraceful-restartステートメントを含めます。グレースフルリスタート期間のグローバルな期間を設定するには、[edit logical-systems logical-system-name routing-options graceful-restart]階層レベルでrestart-durationステートメントを含めます。
[edit]
logical-systems {
logical-system-name {
routing-options {
graceful-restart {
disable;
restart-duration seconds;
}
}
}
}
グレースフルリスタートをグローバルに無効にするには、[edit logical-systems logical-system-name routing-options graceful-restart]階層レベルでdisableステートメントを含めます。
ルーティング インスタンスのグレースフル リスタートの設定
レイヤー 3 VPN の場合のみ、論理システム内のルーティング インスタンスに対してグレースフル リスタートをグローバルに設定する必要があります。設定するには、[edit logical-systems logical-system-name routing-instances instance-name routing-options]階層レベルでgraceful-restartステートメントを含めます。マルチインスタンスBGPとマルチインスタンスLDPを設定できるため、キャリアオブキャリアのシナリオにおけるグレースフルリスタートがサポートされています。ルーティング インスタンスグレースフルリスタート期間の長さを設定するには、[edit logical-systems logical-system-name routing-instances instance-name routing-options]にrestart-durationステートメントを含めます。
[edit]
logical-systems {
logical-system-name {
routing-instances {
instance-name {
routing-options {
graceful-restart {
disable;
restart-duration seconds;
}
}
}
}
}
}
[edit logical-systems logical-system-name routing-instances instance-name protocols protocol-name graceful-restart]階層レベルでdisableステートメントを使用して、個々のプロトコルのグレースフルリスタートを無効にするには。
QFabricシステムのグレースフルリスタートの設定
QFabric CLIでグレースフルリスタートを設定すると、QFabricシステムはその設定をネットワークノードグループに適用して、QFabricシステムの外部にあるデバイスによるグレースフルリスタート操作に参加します。このような設定により、ルーティングテーブルの状態が保持され、システムの再起動後、隣接するルーティングデバイスがルーティング操作をより迅速に再開できるようになります。また、これにより、QFabricシステムの再起動(ソフトウェアのアップグレードなど)が発生した場合に、ネットワークノードグループはルーティング操作を迅速に再開できます。そのため、QFabric CLIでルーティングプロトコルのグレースフルリスタートを有効にすることをお勧めします。
また、QFabricシステムは、ファブリック内の内部でグレースフルリスタートを使用して、ファブリック間の耐障害性と回復を促進します。この内部機能はデフォルトで有効になっており、設定する必要はありません。
グレースフル リスタートの有効化
デフォルトでは、グレースフル リスタートは無効になっています。グレースフルリスタートを有効にするには、[edit routing-instance instance-name routing-options]または[edit routing-options]階層レベルにステート メントを graceful-restart 含めます。
例えば:
routing-options {
graceful-restart;
}
グレースフルリスタート期間の期間を設定するには、階層レベルに restart-duration を [edit routing-options graceful-restart] 含めます。
ヘルパーモード(グレースフルリスタートを試みる隣接ルーターを補助する機能)は、グレースフルリスタートが有効になっていなくても、ルーティングプラットフォームの起動時にデフォルトで有効になっています。プロトコルごとにヘルパーモードを無効にできます。
[edit]
routing-options {
graceful-restart {
disable;
restart-duration seconds;
}
}
グレースフルリスタートをグローバルに無効にするには、階層レベルに disable ステートメントを [edit routing-options graceful-restart] 含めます。
グレースフルリスタートが [edit routing-options graceful-restart] 階層レベルですべてのルーティングプロトコルに対して有効になっている場合、プロトコルごとにグレースフルリスタートを無効にすることができます。
BGPまたはLDPセッションが確立された後にグレースフルリスタートを設定すると、BGPまたはLDPセッションが再起動し、ピアはグレースフルリスタート機能をネゴシエートします。また、BGPピアのルーティング統計情報はゼロにリセットされます。
BGPのグレースフルリスタートオプションの設定
BGP グレースフル リスタート期間の期間を設定するには、階層レベルに ステートメントを restart-time [edit protocols bgp graceful-restart] 含めます。ルーターが再起動ネイバーからのメッセージの受信を待機してからダウンを宣言する時間を設定するには、階層レベルに ステートメントを stale-routes-time [edit protocols bgp graceful-restart] 含めます。
[edit]
protocols {
bgp {
graceful-restart {
disable;
restart-time seconds;
stale-routes-time seconds;
}
}
}
routing-options {
graceful-restart;
}
すべてのBGPセッションでBGPグレースフルリスタート機能を無効にするには、階層レベルで ステートメント を [edit protocols bgp graceful-restart] 含めます。
BGP グレースフル リスタート プロパティを設定したり、グループに対して無効にしたりするには、階層レベルで目的のステートメントを [edit protocols bgp group group-name graceful-restart] 含めます。
BGP グレースフル リスタート プロパティを設定したり、グループ内の特定のネイバーに対して無効にしたりするには、階層レベルで必要なステートメントを [edit protocols bgp group group-name neighbor ip-address graceful-restart] 含めます。
BGPにグレースフルリスタートを設定すると、BGPピアのルーティング統計情報がゼロにリセットされます。また、既存のBGPセッションが再起動し、ピアはグレースフルリスタート機能をネゴシエートします。
OSPF および OSPFv3 のグレースフル リスタート オプションの設定
OSPF/OSPFv3グレースフルリスタート期間の期間を設定するには、階層レベルに restart-duration ステートメントを [edit protocols(ospf | ospf3)graceful-restart] 含めます。ルーターがヘルパールーターにグレースフルリスタートが完了したことを通知する時間の長さを指定するには、階層レベルに notify-duration を [edit protocols (ospf | ospf3) graceful-restart] 含めます。厳密なOSPFリンク状態アドバタイズメント(LSA)チェックにより、支援ルーターによるグレースフルリスタートが終了します。厳密な LSA チェックを無効にするには、階層レベルで ステートメントを no-strict-lsa-checking [ edit protocols (ospf | ospf3) graceful-restart] 含めます。
[edit]
protocols {
ospf | ospfv3{
graceful-restart {
disable;
helper-disable
no-strict-lsa-checking;
notify-duration seconds;
restart-duration seconds;
}
}
}
routing-options {
graceful-restart;
}
OSPF/OSPFv3グレースフルリスタートを無効にするには、階層レベルに disable ステートメントを [edit protocols(ospf | ospf3) graceful-restart] 含めます。
リリース11.3以降、Junos OSは、OSPFバージョン2グレースフルリスタート設定において、標準ヘルパーモード(RFC 3623、グレー スフルOSPF再起動に基づく)と再起動信号ベース(RFC 4811、RFC 4812、RFC 4813で指定)ヘルパーモードの両方をサポートしています。デフォルトでは、標準および再起動シグナリングベースのヘルパー モードの両方が有効になっています。OSPF バージョン 2 グレースフル リスタート設定のヘルパー モードを無効にするには、階層レベルで helper-disable <both | restart-signaling | standard> ステートメントを [edit protocols ospf graceful-restart] 含めます。最後にコミットされたステートメントは、常に前のステートメントよりも優先されることに注意してください。
[edit protocols ospf]
graceful-restart {
helper-disable <both | restart-signaling | standard>
}
ヘルパー モードを再度有効にするには、delete protocols ospf graceful-restarthelper-disable <restart-signaling | standard | both>コマンドを使用して、設定から helper-disable ステートメントを削除します。この場合も、最後に実行されたコマンドが前のコマンドよりも優先されます。
再起動シグナリングベースのヘルパー モードは、OSPFv3 設定ではサポートされていません。OSPFv3設定のヘルパーモードを無効にするには、階層レベルでステートメントを helper-disable [edit protocols ospfv3 graceful-restart] 含めます。
また、階層レベルの ステートメントで ステートメント を使用してグレースフル リスタート イベントを traceoptions [edit protocols (ospf | ospf3)] 追跡することもできます。詳細については、「 グレースフル リスタート イベントの追跡」を参照してください。
OSPFにBFDとグレースフルリスタートを設定すると、グレースフルリスタートが期待どおりに機能しない場合があります。
グレースフルリスタートイベントの追跡
グレースフル リスタート イベントの進行状況を追跡するには、IS-IS および OSPF/OSPFv3 のグレースフル リスタート トレース オプション フラグを設定します。グレースフル リスタート トレース オプションを設定するには、階層レベルに ステート メントを graceful-restart [edit protocols protocol traceoptions flag] 含めます。
[edit protocols]
isis {
traceoptions {
flag graceful-restart;
}
}
(ospf | ospf3) {
traceoptions {
flag graceful-restart;
}
}
例:OSPF グレースフル リスタートのヘルパー モードの管理
構成
手順
ルーティング デバイスのグレースフル リスタートの設定ステータスに関係なく、標準および再起動シグナリングベースのヘルパー モードの両方がデフォルトで有効になっています。Junos OSでは、要件に応じてヘルパーモードを無効または有効にすることができます。
グレースフルリスタートのヘルパーモードオプションを設定するには、次の手順を実行します。
グレースフルリスタートを有効にするには、
[edit routing-options]階層レベルでgraceful-restartステートメントを追加します。[edit routing-options] user@host# set graceful-restart
ヘルパー モードは、標準と再起動シグナリング ベースの両方で、デフォルトで有効になっています。
ヘルパー モードの 1 つまたは両方を無効にするには、
[edit protocols ospf graceful-restart]階層レベルでhelper-disable <both | restart-signaling | standard>ステートメントを追加します。標準シグナリングベースヘルパーモードと再起動シグナリングベースヘルパーモードの両方を無効にするには、次のようにします。
[edit protocols ospf graceful-restart] user@host# set helper-disable both
再起動シグナリングベースのヘルパー モードのみを無効にするには、次の手順を実行します。
[edit protocols ospf graceful-restart] user@host# set helper-disable restart-signaling
標準ヘルパーモードのみを無効にするには、次のようにします。
[edit protocols ospf graceful-restart] user@host# set helper-disable standard
手記:変更を有効にする前に、設定をコミットする必要があります。
最後にコミットされたステートメントは、常に前のステートメントよりも優先されます。
ヘルパーモードが無効になっているときに、ヘルパーモードの一方または両方を有効にするには、
[edit protocols ospf graceful-restart]階層レベルからhelper-disable <both | restart-signaling | standard>ステートメントを削除します。標準シグナリングベースヘルパーモードと再起動シグナリングベースヘルパーモードの両方を有効にするには、次のようにします。
[edit protocols ospf graceful-restart] user@host# delete helper-disable
再起動シグナリングベースのヘルパー モードを有効にするには、次の手順を実行します。
[edit protocols ospf graceful-restart] user@host# delete helper-disable restart-signaling
標準ヘルパーモードを有効にするには、次のようにします。
[edit protocols ospf graceful-restart] user@host# delete helper-disable standard
手記:変更を有効にする前に、設定をコミットする必要があります。
最後にコミットされたステートメントは、常に前のステートメントよりも優先されます。
必要条件
Junos OS リリース 11.4 以降を実行する M Series または T Series ルーターと EXシリーズ スイッチ。
概要
Junos OS リリース 11.4 では、OSPF グレースフル リスタートのサポートが拡張され、再起動シグナリングベースのヘルパー モードが含まれるようになりました。ルーティングデバイスのグレースフルリスタートの設定ステータスに関係なく、標準(RFC 3623ベース)と再起動シグナリングベースのヘルパーモードの両方がデフォルトで有効になっています。
ただし、Junos OSでは、 helper-disable <standard | restart-signaling | both> ステートメントでヘルパー モードを選択できます。
検証
設定が正常に機能していることを確認します。
OSPF グレースフル リスタートおよびヘルパー モードの設定の確認
目的
ルーターのOSPFグレースフルリスタートとヘルパーモードの設定を確認します。
アクション
設定モードから
run show ospf overviewコマンドを入力します。user@host# run show ospf overview ~ ~ ~ Restart: Enabled Restart duration: 180 sec Restart grace period: 210 sec Graceful restart helper mode: Enabled Restart-signaling helper mode: Enabled ~ ~ ~
意味
出力は、グレースフルリスタートと両方のヘルパーモードが有効になっていることを示しています。
OSPF グレースフル リスタートの再起動シグナリング ベース ヘルパー モード イベントのトレース
Junos OS には、OSPF グレースフル リスタートの再起動シグナリング ベースのヘルパー モード イベントをログに記録するトレース オプションが用意されています。再起動シグナリングベースのヘルパー モード イベントのトレースを有効にするには、[edit protocols ospf] 階層レベルで traceoptions flag restart-signaling ステートメントを含めます。
再起動シグナリングベースのイベントのトレースを有効にするには、次の手順に従います。
ログは、/var/log フォルダ内の ospf-log ファイルに保存されます。
ログファイルの表示
ログ・ファイルから再起動シグナリング・ベースのイベントを表示するには、次のように入力します。
user@host> file show /var/log/ospf-log | match “restart signaling” Jun 25 14:44:08.890216 OSPF Restart Signaling: Start helper mode for nbr ip 14.19.3.2 id 10.10.10.1 Jun 25 14:44:11.358636 OSPF restart signaling: Received DBD with R bit set from nbr ip=14.19.3.2 id=10.10.10.1. Start oob-resync. Jun 25 14:44:11.380198 OSPF restart signaling: Received DBD with LR bit on from nbr ip=14.19.3.2 id=10.10.10.1. Save its oob-resync capability 1 Jun 25 14:44:11.467200 OSPF restart signaling: nbr fsm for nbr ip=14.19.3.2 id=10.10.10.1 moving to state Full. Reset oob-resync parameters.
グレースフル リスタート動作の検証
このトピックには、以下のセクションが含まれています。
グレースフル リスタート動作モード コマンド
グレースフルリスタートが正しく動作していることを確認するには、次のコマンドを使用します。
show bgp neighbor(BGP グレースフル リスタートの場合)show log(IS-IS および OSPF/OSPFv3 グレースフル リスタートの場合)show (ospf | ospfv3) overview(OSPF/OSPFv3グレースフルリスタートの場合)show rsvp neighbor detail(RSVP グレースフル リスタート-ヘルパー ルーターの場合)show rsvp version(RSVPグレースフルリスタートの場合—ルーターの再起動)show ldp session detail(LDPグレースフルリスタートの場合)show connections(CCCおよびTCCグレースフルリスタートの場合)show route instance detail(レイヤー3VPNグレースフルリスタート、およびルーティング インスタンスでグレースフルリスタートを使用するプロトコルの場合)show route protocol l2vpn(レイヤー 2 VPN グレースフル リスタートの場合)
これらのコマンドの詳細と出力フィールドの説明については、 CLI エクスプローラーを参照してください。
BGP グレースフル リスタートの検証
BGP セッションのグレースフル リスタート情報を表示するには、 show bgp neighbor コマンドを使用します。
user@PE1> show bgp neighbor 192.0.2.10
Peer: 192.0.2.10+179 AS 64496 Local: 192.0.2.5+1106 AS 64496
Type: Internal State: Established Flags: <>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Export: [ static ]
Options:<Preference LocalAddress HoldTime GracefulRestart Damping PeerAS Refresh>
Local Address: 192.0.2.5 Holdtime: 90 Preference: 170
IPSec SA Name: hope
Number of flaps: 0
Peer ID: 192.0.2.10 Local ID: 192.0.2.5 Active Holdtime: 90
Keepalive Interval: 30
NLRI for restart configured on peer: inet-unicast
NLRI advertised by peer: inet-unicast
NLRI for this session: inet-unicast
Peer supports Refresh capability (2)
Restart time configured on the peer: 180
Stale routes from peer are kept for: 180
Restart time requested by this peer: 300
NLRI that peer supports restart for: inet-unicast
NLRI that peer saved forwarding for: inet-unicast
NLRI that restart is negotiated for: inet-unicast
NLRI of received end-of-rib markers: inet-unicast
NLRI of all end-of-rib markers sent: inet-unicast
Table inet.0 Bit: 10000
RIB State: restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Last traffic (seconds): Received 19 Sent 19 Checked 19
Input messages: Total 2 Updates 1 Refreshes 0 Octets 42
Output messages: Total 3 Updates 0 Refreshes 0 Octets 116
Output Queue[0]: 0
IS-ISおよびOSPFグレースフルリスタートの確認
IS-IS と OSPF のグレースフル リスタート情報を表示するには、traceoptions を設定します( グレースフル リスタート イベントのトラッキングを参照)。
OSPF再起動ルーターからのtraceoptionsログの出力を次に示します。
Oct 8 05:20:12 Restart mode - sending grace lsas Oct 8 05:20:12 Restart mode - estimated restart duration timer triggered Oct 8 05:20:13 Restart mode - Sending more grace lsas
以下は、OSPF ヘルパー ルータからの traceoptions ログの出力です。
Oct 8 05:20:14 Helper mode for neighbor 192.0.2.5 Oct 8 05:20:14 Received multiple grace lsa from 192.0.2.5
CCCおよびTCCグレースフルリスタートの検証
CCCおよびTCC接続のグレースフルリスタート情報を表示するには、 show connections コマンドを使用します。次の例では、CE1とCE2の間に4つのリモートインターフェイスCCC接続があることを前提としています。
user@PE1> show connections CCC and TCC connections [Link Monitoring On] Legend for status (St) Legend for connection types UN -- uninitialized if-sw: interface switching NP -- not present rmt-if: remote interface switching WE -- wrong encapsulation lsp-sw: LSP switching DS -- disabled Dn -- down Legend for circuit types -> -- only outbound conn is up intf -- interface <- -- only inbound conn is up tlsp -- transmit LSP Up -- operational rlsp -- receive LSP RmtDn -- remote CCC down Restart -- restarting CCC Graceful restart : Restarting Connection/Circuit Type St Time last up # Up trans CE1-CE2-0 rmt-if Restart ----- 0 fe-1/1/0.0 intf Up PE1-PE2-0 tlsp Up PE2-PE1-0 rlsp Up CE1-CE2-1 rmt-if Restart ----- 0 fe-1/1/0.1 intf Up PE1-PE2-1 tlsp Up PE2-PE1-1 rlsp Up CE1-CE2-2 rmt-if Restart ----- 0 fe-1/1/0.2 intf Up PE1-PE2-2 tlsp Up PE2-PE1-2 rlsp Up CE1-CE2-3 rmt-if Restart ----- 0 fe-1/1/0.3 intf Up PE1-PE2-3 tlsp Up PE2-PE1-3 rlsp Up
変更履歴
サポートされる機能は、使用しているプラットフォームとリリースによって決まります。特定の機能がお使いのプラットフォームでサポートされているかどうかを確認するには、 Feature Explorer を使用します。