※noteから引っ越してきた記事
初期設定
iosv-1
en
terminal length 0
conf t
hostname iosv-1
line console 0
logging synchronous
exit
!
int lo0
ip address 2.2.2.2 255.255.255.255
!
int gi0/0
ip address 192.168.12.2 255.255.255.0
no shut
!
int gi0/1
ip address 192.168.23.2 255.255.255.0
no shut
exit
!
router bgp 100
bgp router-id 2.2.2.2
neighbor 192.168.12.1 remote-as 100
neighbor 192.168.12.1 next-hop-self
neighbor 192.168.23.3 remote-as 100
neighbor 192.168.23.3 next-hop-self
network 2.2.2.2 mask 255.255.255.255
end
!
iosv-2
en
terminal length 0
conf t
hostname iosv-2
line console 0
logging synchronous
exit
!
int lo0
ip address 3.3.3.3 255.255.255.255
!
int gi0/0
ip address 192.168.23.3 255.255.255.0
no shut
exit
!
router bgp 100
bgp router-id 3.3.3.3
neighbor 192.168.23.2 remote-as 100
neighbor 192.168.23.2 next-hop-self
network 3.3.3.3 mask 255.255.255.255
end
!
Graceful-restartを設定
iosv-0(config-router)#bgp graceful-restart
All BGP sessions must be reset to take the new GR config
iosv-0(config-router)#
If you enter this command after the BGP session has been established, you must restart the session for the capability to be exchanged with the BGP neighbor.
Chapter: BGP NSF Awareness
・BGPを一通り設定した後にGRの設定をすると再起動が必要な旨が、ログ出力とCCOから確認できる
show ip bgp neighbor [neighbor ip address]
iosv-0#sh ip bgp neighbor 192.168.12.2
BGP neighbor is 192.168.12.2, remote AS 100, internal link
BGP version 4, remote router ID 2.2.2.2
BGP state = Established, up for 00:12:08
Last read 00:00:07, last write 00:00:02, hold time is 180, keepalive interval is 60 seconds
Neighbor sessions:
1 active, is not multisession capable (disabled)
Neighbor capabilities:
Route refresh: advertised and received(new)
Four-octets ASN Capability: advertised and received
Address family IPv4 Unicast: advertised and received
Graceful Restart Capability: advertised and received
<略>
Graceful-Restart is enabled, restart-time 120 seconds, stalepath-time 360 seconds
SSO is disabled
| include Gracefulとか使ったほうがよさそう
試してみる
clear ip bgp *
iosv-1(config-router)#do clear ip bgp *
iosv-2#ping
Protocol [ip]:
Target IP address: 1.1.1.1
Repeat count [5]: 100000
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 100000, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!U
*Jul 1 02:28:08.423: %BGP-3-NOTIFICATION: received from neighbor 192.168.23.2 6/4 (Administrative Reset) 0 bytes
*Jul 1 02:28:08.424: %BGP-5-NBR_RESET: Neighbor 192.168.23.2 reset (BGP Notification received)
*Jul 1 02:28:08.428: %BGP-5-ADJCHANGE: neighbor 192.168.23.2 Down BGP Notification received
*Jul 1 02:28:08.428: %BGP_SESSION-5-ADJCHANGE: neighbor 192.168.23.2 IPv4 Unicast topology base removed from session BGP Notification received.U.U.U
*Jul 1 02:28:14.194: %BGP-5-ADJCHANGE: neighbor 192.168.23.2 Up .!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
clear ip bgp * soft
iosv-0#ping
Protocol [ip]:
Target IP address: 3.3.3.3
Repeat count [5]: 10000
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 10000, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
・clear ip bgp * softがピアを継続させながらプロセスを再起動していることしかわからなかった
・CCOにもそれ以上のことが載っていない
グレースフル・リスタートは,装置のBCUが系切替したり,運用コマンドなどによりルーティングプログラムが再起動したりしたときに,ネットワークから経路が消えることによる通信停止時間を短縮する機能です
8.5.9 グレースフル・リスタート
・あくまで「短縮」だからルータを実質2台しか使用していないトポロジだと効果を感じにくいのかな
・どうやらそうらしい
・I/F数250なんか用意できないよ