filmov
tv
Segment Routing Traffic engineering with BGP Color assignment to Customer Prefix | Cisco IOS-XR |

Показать описание
Segment Routing Traffic engineering with BGP Color assignment to Customer Prefix | Cisco IOS-XR | ASR9000
PE1 config
hostname PE1
vrf BLUE
address-family ipv4 unicast
import route-target
1:1
!
export route-target
1:1
interface Loopback0
ipv4 address 33.33.33.33 255.255.255.255
!
interface Loopback100
vrf BLUE
ipv4 address 111.111.111.111 255.255.255.255
!
interface GigabitEthernet0/0/0/0
ipv4 address 190.1.1.1 255.255.255.252
!
interface GigabitEthernet0/0/0/1
ipv4 address 191.1.1.1 255.255.255.252
router isis CORE
is-type level-2-only
net 49.1900.0001.0001.00
distribute link-state level 2
address-family ipv4 unicast
metric-style wide
segment-routing mpls
!
interface Loopback0
address-family ipv4 unicast
prefix-sid index 33
!
!
interface GigabitEthernet0/0/0/0
point-to-point
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/1
point-to-point
address-family ipv4 unicast
!
router bgp 100
address-family vpnv4 unicast
!
neighbor 44.44.44.44
remote-as 100
update-source Loopback0
address-family vpnv4 unicast
!
!
vrf BLUE
rd 1:1
address-family ipv4 unicast
redistribute connected
!
!
!
mpls oam
!
segment-routing
global-block 16000 17000
traffic-eng
segment-list BLUE100
index 10 mpls label 16022
index 20 mpls label 16011
index 30 mpls label 16044
!
policy BLUE100
color 100 end-point ipv4 44.44.44.44
candidate-paths
preference 100
explicit segment-list BLUE100
===============================================================
PE2
vrf BLUE
address-family ipv4 unicast
import route-target
1:1
!
export route-target
1:1
interface Loopback0
ipv4 address 44.44.44.44 255.255.255.255
!
interface Loopback100
vrf BLUE
ipv4 address 222.222.222.222 255.255.255.255
!
interface Loopback200
vrf BLUE
ipv4 address 200.200.200.200 255.255.255.255
interface GigabitEthernet0/0/0/1
ipv4 address 199.1.1.1 255.255.255.252
!
interface GigabitEthernet0/0/0/2
ipv4 address 196.1.1.2 255.255.255.252
!
interface GigabitEthernet0/0/0/3
ipv4 address 197.1.1.2 255.255.255.252
!
interface GigabitEthernet0/0/0/4
ipv4 address 194.168.1.2 255.255.255.252
extcommunity-set opaque BLUE
100
end-set
!
route-policy BLUE
if destination in (222.222.222.222/32) then
set extcommunity color BLUE
else
pass
endif
end-policy
!
router isis CORE
is-type level-2-only
net 49.1960.0001.0002.00
address-family ipv4 unicast
metric-style wide
segment-routing mpls
!
interface Loopback0
address-family ipv4 unicast
prefix-sid index 44
!
!
interface GigabitEthernet0/0/0/0
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/1
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/2
point-to-point
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/3
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/4
point-to-point
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/5
address-family ipv4 unicast
!
!
!
router bgp 100
address-family vpnv4 unicast
!
neighbor 33.33.33.33
remote-as 100
update-source Loopback0
address-family vpnv4 unicast
route-policy BLUE out
!
!
vrf BLUE
rd 1:1
address-family ipv4 unicast
redistribute connected
mpls oam
!
segment-routing
global-block 16000 17000
=======================================================
P1
router isis CORE
is-type level-2-only
net 49.1900.0001.0002.00
address-family ipv4 unicast
metric-style wide
segment-routing mpls
!
interface Loopback0
address-family ipv4 unicast
prefix-sid index 11
!
!
interface GigabitEthernet0/0/0/0
point-to-point
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/1
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/2
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/3
point-to-point
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/4
point-to-point
address-family ipv4 unicast
!
segment-routing
global-block 16000 17000
PE1 config
hostname PE1
vrf BLUE
address-family ipv4 unicast
import route-target
1:1
!
export route-target
1:1
interface Loopback0
ipv4 address 33.33.33.33 255.255.255.255
!
interface Loopback100
vrf BLUE
ipv4 address 111.111.111.111 255.255.255.255
!
interface GigabitEthernet0/0/0/0
ipv4 address 190.1.1.1 255.255.255.252
!
interface GigabitEthernet0/0/0/1
ipv4 address 191.1.1.1 255.255.255.252
router isis CORE
is-type level-2-only
net 49.1900.0001.0001.00
distribute link-state level 2
address-family ipv4 unicast
metric-style wide
segment-routing mpls
!
interface Loopback0
address-family ipv4 unicast
prefix-sid index 33
!
!
interface GigabitEthernet0/0/0/0
point-to-point
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/1
point-to-point
address-family ipv4 unicast
!
router bgp 100
address-family vpnv4 unicast
!
neighbor 44.44.44.44
remote-as 100
update-source Loopback0
address-family vpnv4 unicast
!
!
vrf BLUE
rd 1:1
address-family ipv4 unicast
redistribute connected
!
!
!
mpls oam
!
segment-routing
global-block 16000 17000
traffic-eng
segment-list BLUE100
index 10 mpls label 16022
index 20 mpls label 16011
index 30 mpls label 16044
!
policy BLUE100
color 100 end-point ipv4 44.44.44.44
candidate-paths
preference 100
explicit segment-list BLUE100
===============================================================
PE2
vrf BLUE
address-family ipv4 unicast
import route-target
1:1
!
export route-target
1:1
interface Loopback0
ipv4 address 44.44.44.44 255.255.255.255
!
interface Loopback100
vrf BLUE
ipv4 address 222.222.222.222 255.255.255.255
!
interface Loopback200
vrf BLUE
ipv4 address 200.200.200.200 255.255.255.255
interface GigabitEthernet0/0/0/1
ipv4 address 199.1.1.1 255.255.255.252
!
interface GigabitEthernet0/0/0/2
ipv4 address 196.1.1.2 255.255.255.252
!
interface GigabitEthernet0/0/0/3
ipv4 address 197.1.1.2 255.255.255.252
!
interface GigabitEthernet0/0/0/4
ipv4 address 194.168.1.2 255.255.255.252
extcommunity-set opaque BLUE
100
end-set
!
route-policy BLUE
if destination in (222.222.222.222/32) then
set extcommunity color BLUE
else
pass
endif
end-policy
!
router isis CORE
is-type level-2-only
net 49.1960.0001.0002.00
address-family ipv4 unicast
metric-style wide
segment-routing mpls
!
interface Loopback0
address-family ipv4 unicast
prefix-sid index 44
!
!
interface GigabitEthernet0/0/0/0
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/1
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/2
point-to-point
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/3
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/4
point-to-point
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/5
address-family ipv4 unicast
!
!
!
router bgp 100
address-family vpnv4 unicast
!
neighbor 33.33.33.33
remote-as 100
update-source Loopback0
address-family vpnv4 unicast
route-policy BLUE out
!
!
vrf BLUE
rd 1:1
address-family ipv4 unicast
redistribute connected
mpls oam
!
segment-routing
global-block 16000 17000
=======================================================
P1
router isis CORE
is-type level-2-only
net 49.1900.0001.0002.00
address-family ipv4 unicast
metric-style wide
segment-routing mpls
!
interface Loopback0
address-family ipv4 unicast
prefix-sid index 11
!
!
interface GigabitEthernet0/0/0/0
point-to-point
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/1
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/2
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/3
point-to-point
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/4
point-to-point
address-family ipv4 unicast
!
segment-routing
global-block 16000 17000
Комментарии