NOTE
- eBGPは直接接続を想定している。
- (ebgp-multihopがない限り)eBGPは接続peerが1 hopでいけると理解している。
- その為、eBGPでneighbor を指定すると、まず、ルーティングテーブルから相手が直接接続されているかをチェックする。直接接続されていない場合はBGPはセッションを開始しない。(ローカルルータからIPパケットすら飛ばない)
- 直接接続されている場合はTCPに渡してTTL 1のパケットを飛ばす。
- このTCPに渡す前に行っているチェックを無効化させるのが disable-connected-check。その為、この設定を入れても、
– 飛ばすIPパケットのTTLは1のまま
– neighbor ~ update-source は必要
– 対向ループバックを明示してのstatic なり何かしらの接続性が必要
- TTLが1のままなのでR3でtime-to-live exceed
DIAGRAM
[R1]—–[R3]—–[R2]
loopback 10.0.0.x/32
Each link 10.x.y.R/24
x = lower Router No
y = higer Router No
R = Local Router No
VERIFICATION
R1#sh run | sec router bgp router bgp 1 bgp log-neighbor-changes neighbor 10.0.0.2 remote-as 2 neighbor 10.0.0.2 disable-connected-check neighbor 10.0.0.2 update-source Loopback0 R1# R1#sh ip ro | b Gate Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks C 10.0.0.1/32 is directly connected, Loopback0 S 10.0.0.2/32 [1/0] via 10.1.3.3 C 10.1.2.0/24 is directly connected, FastEthernet0/0 L 10.1.2.1/32 is directly connected, FastEthernet0/0 C 10.1.3.0/24 is directly connected, FastEthernet0/1 L 10.1.3.1/32 is directly connected, FastEthernet0/1 R2#sh run | sec router bgp router bgp 2 bgp log-neighbor-changes neighbor 10.0.0.1 remote-as 1 neighbor 10.0.0.1 disable-connected-check neighbor 10.0.0.1 update-source Loopback0 R2# R2#sh ip ro | b Gate Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks S 10.0.0.1/32 [1/0] via 10.2.3.3 C 10.0.0.2/32 is directly connected, Loopback0 C 10.1.2.0/24 is directly connected, FastEthernet0/0 L 10.1.2.2/32 is directly connected, FastEthernet0/0 C 10.2.3.0/24 is directly connected, FastEthernet0/1 L 10.2.3.2/32 is directly connected, FastEthernet0/1 R3#sh ip ro sta | b Gate Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks S 10.0.0.1/32 [1/0] via 10.1.3.1 S 10.0.0.2/32 [1/0] via 10.2.3.2
- TTLが1のままなのでR3でtime-to-live exceed
コメント