Sample BGP-LS and PCEP Configurations
This appendix provides examples of what BGP-LS and PCEP configurations look like. To access the relevant configuration files, navigate to the /opt/cisco/controller/etc/opendaylight/karaf directory and open them in a text editor to make any necessary changes. The values you need to specify for your setup will differ from the ones provided here.
- BGP-LS Peer
- ISIS (Redistributes ISIS link states to BGP-LS)
- Interfaces: (Loopback for MPLS-TE and BGP-LS)
- MPLS for PCEP
BGP-LS Peer
router bgp 65504 bgp router-id 30.30.30.30 bgp cluster-id 30.30.30.30 address-family ipv4 unicast network 46.0.0.30/32 network 49.0.0.30/32 network 55.0.0.30/32 network 56.0.0.30/32 ! address-family link-state link-state ! neighbor 198.18.1.25 remote-as 65504 update-source MgmtEth0/0/CPU0/0 address-family ipv4 unicast route-reflector-client ! address-family link-state link-state route-reflector-client ! !
ISIS (Redistributes ISIS link states to BGP-LS)
router isis pce-poc is-type level-2-only net 72.0000.0000.0030.00 distribute bgp-ls level 2 address-family ipv4 unicast metric-style wide mpls traffic-eng level-2-only mpls traffic-eng router-id Loopback0 redistribute static ! interface Loopback0 address-family ipv4 unicast ! ! interface GigabitEthernet0/0/0/0 point-to-point address-family ipv4 unicast
Interfaces: (Loopback for MPLS-TE and BGP-LS)
ipv4 unnumbered mpls traffic-eng Loopback0 interface Loopback0 ipv4 address 30.30.30.30 255.255.255.255 ! interface MgmtEth0/0/CPU0/0 ipv4 address 198.18.1.57 255.255.255.0 ! interface GigabitEthernet0/0/0/0 ipv4 address 57.0.0.30 255.255.255.0 !
MPLS for PCEP
mpls traffic-eng interface GigabitEthernet0/0/0/0 ! interface GigabitEthernet0/0/0/1 ! interface GigabitEthernet0/0/0/2 ! interface GigabitEthernet0/0/0/3 ! interface GigabitEthernet0/0/0/4 ! pce peer ipv4 198.18.1.25 ! stateful-client instantiation ! ! auto-tunnel pcc tunnel-id min 1 max 99 ! reoptimize timers delay installation 0
Feedback