| 静态方案 | ip route 指向隧道接口 |
|---|---|
| BGP 直连 | 两端隧道地址同网段,直接建邻居 |
| BGP 多跳 | 邻居用环回/物理地址 + ebgp-multihop |
| 关键 | update-source 指向隧道接口 |
两种 BGP 方案
两种 BGP 方案
# 直连式(隧道地址同网段)
router bgp 65001
neighbor 169.254.10.2 remote-as 65002
!
# 多跳式(邻居用对端环回,流量必须走隧道)
router bgp 65001
neighbor 203.0.113.2 remote-as 65002
neighbor 203.0.113.2 ebgp-multihop 2
neighbor 203.0.113.2 update-source Tunnel100
!
show ip bgp neighbors 203.0.113.2 | include BGP state