Permanent Network
prefix-list {プレフィックスリスト名}
exit
route-policy {RPL名}
if destination in {プレフィックスリスト名} then
pass
endif
end-policy
router bgp {ASN}
address-family {ipv4 | ipv6} unicast
permanent-network route-policy {RPL名}
commit
- BGP専用のスタティックルートのようなもの。
- ネイバから通知されたものよりは優先度は低い
- prefix-listで特定し、rplで適用する
- パーマネントネットワークの情報をネイバに通知するには、ネイバ>AFIの階層で
advertise permanent-network
を指定する- この設定がされていないネイバには通知しない
設定例:
RP/0/0/CPU0:XR1#show rpl
Sun May 19 04:59:52.134 UTC
prefix-set R1_LO0
1.1.1.1/32
end-set
!
route-policy PASS
pass
end-policy
!
route-policy PERM
if destination in R1_LO0 then
pass
endif
end-policy
!
RP/0/0/CPU0:XR1#show run router bgp
Sun May 19 05:00:35.741 UTC
router bgp 11
address-family ipv4 unicast
permanent-network route-policy PERM
!
neighbor 10.1.11.1
remote-as 1
address-family ipv4 unicast
route-policy PASS in
!
!
!
RP/0/0/CPU0:XR1#sh bgp 1.1.1.1/32
Sun May 19 04:57:17.935 UTC
BGP routing table entry for 1.1.1.1/32
Versions:
Process bRIB/RIB SendTblVer
Speaker 9 9
Last Modified: May 19 04:57:04.973 for 00:00:12
Permanent Network
Paths: (2 available, best #2) ←ネイバからもらったほうがベストパス扱い
Not advertised to any peer
Path #1: Received by speaker 0
Not advertised to any peer
Local
0.0.0.0 from 0.0.0.0 (19.19.19.19)
Origin incomplete, metric 0, localpref 100, local, permanent-path ←permanent-pathとなっている
Received Path ID 0, Local Path ID 1, version 3
Origin-AS validity: not-found
Path #2: Received by speaker 0
Not advertised to any peer
1
10.1.11.1 from 10.1.11.1 (1.1.1.11)
Origin IGP, metric 0, localpref 100, valid, external, best, group-best
Received Path ID 0, Local Path ID 0, version 9
Origin-AS validity: not-found
Permanent Networkの通知
router bgp {ASN}
neighbor {ネイバIPアドレス}
address-family {ipv4 | ipv6} unicast
advertise permanent-network
commit
BGP不等コストロードバランシング
router bgp {ASN}
address-family {ipv4 | ipv6} unicast
maximum-paths {ebgp | ibgp | eibgp} 最大パス数 [unequal-cost]
exit
neighbor {ネイバIPアドレス}
dmz-link-bandwidth
commit
VRFダイナミックルートリーク
vrf {VRF名}
address-family {ipv4 | ipv6} unicast
import from default-vrf route-policy {RPL名} [advertise-as-vpn]
export to default-vrf route-policy {RPL名}
commit
- 確認には
show bgp prefix
やshow bgp imported-routes
を使う
CEごとのラベル割当
router bgp {ASN}
vrf {VRF名}
address-family {ipv4 | ipv6} unicast
label mode per-ce
RPLによるCEごとのラベル割当
route-policy {RPL名}
set label mode per-ce
end
コメント