Image Removed
...
Image Removed
...
Image Removed
...
show bgp summary
show ip route bgp
...
title | show bgp routes |
---|
collapse | true |
---|
...
Image 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 ( loopback0 under routing instance )
2- Change the BGP router-id ( = loopback IP@ )
3- Add BGP neighbors ( = loopback address , AS# , 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 )
3- Redistribute service over BGP
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 Image Added |
| 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
|
|
4100242400000:09:1202.2.2.1284200212100000:07:5803.3.3.128430030
|
| show rib
Code Block |
---|
title | show rib |
---|
collapse | true |
---|
| admin@node1.bosdc1# show |
|
30 0 0 0 00:12:20 3
Total number of neighbors 3
internet-router# show ip route bgp
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
. |
|
B>*128.128.128.1[20/1000000] via 3.3.3.128, dcis directly connected, rtg-int-bos, 00 |
|
:04:27
B>* 128.128.128.128/32 [20/1000000] via 3.3.3.128, dc, 00:04:27
B>* 172.26.128.0/30 [20/0] via 3.3.3.128, dc, 00:05:49
internet-router# Exercise 3 | Routing Filters and Policies |
---|
Step 1 | Add AS Path |
---|
show bgp
Code Block |
---|
title | prepend 200 200 200 200 |
---|
collapse | true |
---|
|
admin@node2.bosdc1# show bgp
Thu 2021-05-06 20:55:10 UTC
BGP table version is 12, local router ID is 3.3.3.128, 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 |
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 Image Added |
| Image Added |
| Image Added |
|
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
|
|
NextHopMetricLocPrfWeightPath*> 1.1.1.0/24 3.3.3.1006000i*>2.2.2.0/243.3.3.1002002002002006000i*>3330/246 <<<<<<<<<<<< new loopback if |
|
3.3.3.1 0 address-family ipv4-unicast
|
|
06000i*>128.128.128.1/320.0.0.0100000032768?*>128.128.128.128/32000100000032768?*> 0.0.0.0032768iDisplayed6routesand6totalpathsCompleted in 0.16 seconds
admin@node2.bosdc1# Step 2 | Add Community String |
---|
1- Create a Filter 2- Policy 2a- Condition 2b- Actions | SSR | Code Block |
---|
title | show bgp router |
---|
collapse | true |
---|
|
admin@node1.nycconductor1# show bgp router all 172.26.128.0
Thu 2021-05-06 21:05:58 UTC
WARNING: Targeting router 'all' may take a long time. Continue anyway? [y/N]: y
========
bosdc1
========
BGP routing table entry for 172.26.128.0/30
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Advertised to non peer-group peers:
3.3.3.1
Local
0.0.0.0 from 0.0.0.0 (3.3.3.128)
Origin IGP, metric 0, localpref 100, weight 32768, valid, sourced, local, best
Community: 128:128
AddPath ID: RX 0, TX 11
Last update: Thu May 6 21:05:08 2021
|
on FRR | show bgp ipv4 172.26.128.0/30
Code Block |
---|
title | show bgp <route> on FRRouting |
---|
collapse | true |
---|
|
internet-router# show bgp ipv4 172.26.128.0/30
BGP routing table entry for 172.26.128.0/30
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Advertised to non peer-group peers:
1.1.1.128 2.2.2.128 3.3.3.128
300
3.3.3.128 from 3.3.3.128 (3.3.3.128)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: 128:128
AddPath ID: RX 0, TX 8
Last update: Thu May 6 21:05:29 2021
internet-router# |
Step 3 | Reject Community String |
---|
1- Create a Filter: match-community 2- Policy 2a- Condition 2b- Actions | show bgp router dalbo2
show bgp router seabo1
Code Block |
---|
title | show bgp router <router> |
---|
collapse | true |
---|
|
admin@node1.nycconductor1# show bgp router dalbo2
Thu 2021-05-06 21:36:34 UTC
========
dalbo2
========
BGP table version is 9, local router ID is 2.2.2.128, vrf id 0
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, 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 Image Added AD: neighbors Seattle: BGP Neighbor Address: 7.7.7.7 Neighbor AS Number: 100 Local Address: Source= Routing + Routing Interface= loopback0 ( rtg-int-bos ) BGP Multihop Settings: TTL or Time-to-live Value: 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 ) |
| Image Added
Image Added |
neighbor | Image Added Image Added |
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 )
Image Added |
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 > Image Added
|
| Image Added |
new service routes | Authority > Router > Image Added |
New Tenant | Image Added |
Step 5 | Verify BGP Over SVR |
---|
|
|
Routing table RiB + Router + filter: BGP | Image Added |
|
|
|
|
| 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 |
|
iinternal,rRIB-failure,SStale,RRemovedNexthopcodes:@NNNnexthop'svrfid,< announce-nh-self
Origin codes: i - IGP, e - EGP, ? - incompleteNetworkNextHopMetricLocPrfWeight Path11.024 2.2.2.106000i2220/24222106000i333.0/24 2.2.2.106000*> 128.128.128.1/32 2.2.2.1
Total number of prefixes 8
Completed in 0.20 seconds
admin@node1.bosdc1# |
|
0 6000 300 ?
*> 128.128.128.128/32
2.2.2.1show 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: |
|
06000300?Displayed5routesand5totalpathsCompletedin0.12secondsadmin@node1.nycconductor1#showbgprouterseabo1Thu2021-05-0621:36:47UTC========seabo1========BGPtableversionis8,localrouterIDis128, vrf id 0
Status codes:ssuppressed,ddamped,h history, * valid, > best, = multipath,i internal,rRIB-failure,SStale,RRemovedNexthopcodes:@NNNnexthop'svrfid,< announce-nh-self
Origin codes: i - IGP, e - EGP, ? - incompleteNetworkNextHopMetricLocPrfWeightPath111111102220241111 0 0 6000 i33302411110 0 6000 i
32768 ?
*> 128.128.128.1/32 |
|
111.1 0600030032768 ?
*> 128.128.128.128/32
|
|
1111 0 6000 30032768 ?
*> 172.26.128.0/30 |
|
1111 0 6000 300Displayed 6 routes and 6 total pathsTotal number of prefixes 8
Completed in 0. |
|
12nycconductor1# Exercise 4 | BGP Over SVR |
---|
Step 1 | Configure Routing Interface |
---|
Step 2 | Change Router Instance to Routing Interface |
---|
Step 3 | Add BGP Over SVR Peers |
---|
Step 4 | Add BGP Over SVR Peers |
---|
Step 5 | Verify BGP Over SVR