Image RemovedImage Added
https://www.juniper.net/documentation/us/en/software/session-smart-router/docs/config_bgp/#bgp-over-svr-bgposvr
https://www.juniper.net/documentation/us/en/software/session-smart-router/docs/config_reference_guide#routing-protocol-bgp
1- Create a Network interface ( loopback loopback0 under routing instance )
2- Change the BGP router-id ( = loopback IP@ )
3- Add BGP neighbors ( = loopback address , AS# , TTL=5 , use local-interface = loopback , + address-family= ipv4-unicast, + Router As Next Hop: True and TTL=5 )
2- BGPoSVR: NH is the local loopback ( routing interface )
...
Exercise 4 | BGP Over SVR |
---|
|
|
Step 1 | Configure Routing Interface ( loopback if ) |
---|
bosdc1 | Router: > Routing Instance ADD Routing Interfaces name rtg-int-bos IP address: 6.6.6.6
|
| show config running authority router bosdc1 routing default-instance interface rtg-int-bos
Code Block |
---|
title | routing interface |
---|
collapse | true |
---|
| admin@node1.bosdc1# show config running authority router bosdc1 routing default-instance interface rtg-int-bos
config
authority
router bosdc1
name bosdc1
routing default-instance
type default-instance
interface rtg-int-bos
name rtg-int-bos
ip-address 6.6.6.6
exit
exit
exit
exit
exit |
|
| show rib
Code Block |
---|
title | show rib |
---|
collapse | true |
---|
| admin@node1.bosdc1# show rib
Fri 2021-05-07 07:25:12 UTC
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR,
> - selected route, * - FIB route
. . .
C>* 6.6.6.6/32 is directly connected, rtg-int-bos, 00:09:29 |
|
seabo1 | name rtg-int-sea IP address: 7.7.7.7 |
dalbo2 | name rtg-int-dal IP address: 8.8.8.8 |
Step 2 | Change Router ID to Routing Interface ( BGP will use loopback address) |
---|
for all the site: bosdc1 seabo1 dalbo2 | Router: > Routing Instance > BGP
|
| |
| |
|
Code Block |
---|
title | bgp config |
---|
collapse | true |
---|
| admin@node1.bosdc1# show config running authority router bosdc1 routing default-instance routing-protocol bgp
config
authority
router bosdc1
name bosdc1
routing default-instance
type default-instance
routing-protocol bgp
type bgp
local-as 300
router-id 6.6.6.6 <<<<<<<<<<<< new loopback if / routing interface
address-family ipv4-unicast
afi-safi ipv4-unicast
network 172.26.128.0/30
network-address 172.26.128.0/30
policy add-community
exit
exit
neighbor 3.3.3.1
neighbor-address 3.3.3.1
neighbor-as 6000
neighbor-policy
inbound-policy add-as-path
exit
address-family ipv4-unicast
afi-safi ipv4-unicast
exit
exit
redistribute service
protocol service
exit
exit
exit
exit
exit
exit
admin@node1.bosdc1# |
|
Step 3 | Add BGP Over SVR Peers ( Add Neighbors in DC ) |
---|
bosdc1 | Router: > Routing Instance: > BGP
AD: neighbors Seattle: BGP Neighbor Address: 7.7.7.7 Neighbor AS Number: 100 Local Address: Source= Routing + Routing Interface= loopback0 Routing Interface:( rtg-int-bos ) BGP Multihop Settings: TTL or Time-to-live Value: 5 255 ( for BGP Multihop Settings ) Address Families. : Select bgp:ipv4-unicast. ( + Router As Next Hop: True )
Dallas: BGP Neighbor Address: 8.8.8.8 b. Neighbor AS Number: 200 Local Address: Routing + Routing Interface: rtg-int-bos Time-to-live Value: 5 ( for BGP Multihop Settings ) Address Families. Select bgp:ipv4-unicast. ( + Router As Next Hop: True ) |
|
|
neighbor |
|
seabo1 | BGP Neighbor Address: 6.6.6.6 Neighbor AS Number: 300 Local Address: rtg-int-sea (on Seattle) Local Address: Routing + Routing Interface: rtg-int-sea Time-to-live Value: 5 ( for BGP Multihop Settings ) Address Families. Select bgp:ipv4-unicast. ( + Router As Next Hop: True )
|
dalbo2 | BGP Neighbor Address: 6.6.6.6 b. Neighbor AS Number: 300 c. Local Address: rtg-int-dal (on Dallas) Local Address: Routing + Routing Interface: rtg-int-dal Time-to-live Value: 5 ( for BGP Multihop Settings ) Address Families. Select bgp:ipv4-unicast. ( + Router As Next Hop: True )
|
Step 4 | Add BGP Over SVR Peers ( Add Neighbors in Branches ) |
---|
new Services | Authority >
|
| |
new service routes | Authority > Router >
|
New Tenant | |
Step 5 | Verify BGP Over SVR |
---|
|
|
Routing table RiB + Router + filter: BGP | |
|
|
|
|
| show bgp neighbors 7.7.7.7 received-routes show bgp neighbors 7.7.7.7 advertised-routes
Code Block |
---|
title | advertised and received routes |
---|
collapse | true |
---|
| admin@node1.bosdc1# show bgp neighbors 7.7.7.7 received-routes
Fri 2021-05-07 08:55:23 UTC
BGP table version is 0, local router ID is 6.6.6.6, vrf id 0
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.0/24 7.7.7.7 0 100 6000 i
*> 2.2.2.0/24 7.7.7.7 0 100 6000 i
*> 3.3.3.0/24 7.7.7.7 0 100 6000 i
*> 7.7.7.7/32 7.7.7.7 0 100 300 ?
*> 8.8.8.8/32 7.7.7.7 0 100 300 ?
*> 128.128.128.1/32 7.7.7.7 0 100 300 ?
*> 128.128.128.128/32
7.7.7.7 0 100 300 ?
*> 172.26.128.0/30 7.7.7.7 0 100 300 i
Total number of prefixes 8
Completed in 0.20 seconds
admin@node1.bosdc1# show bgp neighbors 7.7.7.7 advertised-routes
Fri 2021-05-07 08:55:28 UTC
BGP table version is 24, local router ID is 6.6.6.6, vrf id 0
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.0/24 0.0.0.0 0 6000 i
*> 2.2.2.0/24 0.0.0.0 0 100 6000 i
*> 3.3.3.0/24 0.0.0.0 0 6000 i
*> 7.7.7.7/32 0.0.0.0 999999 32768 ?
*> 8.8.8.8/32 0.0.0.0 999999 32768 ?
*> 128.128.128.1/32 0.0.0.0 1000000 32768 ?
*> 128.128.128.128/32
0.0.0.0 1000000 32768 ?
*> 172.26.128.0/30 0.0.0.0 0 32768 i
Total number of prefixes 8
Completed in 0.18 seconds
admin@node1.bosdc1# |
|
...