Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image Removed

...

Image Removed

...

Image Removed

...

show bgp summary

show ip route bgp

...

titleshow bgp routes
collapsetrue

...

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 4BGP Over SVR


Step 1Configure 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
titlerouting interface
collapsetrue
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
        
4
        
100
type      
24
 default-instance

   
24
        
0
    
0
 interface  rtg-int-bos
0
 
00:09:12
            
0
 
2.2.2.128
      name 
4
       rtg-int-bos
200
      
21
      
21
        
0
ip-address  6.6.6.6
 
0
    
0
 
00:07:58
          exit
 
0
 
3.3.3.128
       
4
   exit
    
300
    exit
 
30
   exit
exit



show rib


Code Block
titleshow rib
collapsetrue
admin@node1.bosdc1# show 
30
rib 
Fri 
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
. 
C>* 6.6.6.6/32 
[20/1000000] via 3.3.3.128, dc
is 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 3Routing Filters and PoliciesStep 1Add AS Path

show bgp

Code Block
titleprepend 200 200 200 200
collapsetrue
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
: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 2Change 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
titlebgp config
collapsetrue
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
Next

Hop
            
Metric
 
LocPrf
 
Weight
 
Path
 
*> 1.1.1.0/24
routing-protocol  bgp
     
3.3.3.1
               type   
0
         bgp
      
0
 
6000
 
i
 
*>
 
2.2.2.0/24
       
3.3.3.1
   local-as        300
      
0
             
0
 
200
router-id 
200
 
200
 
200
 
6000
 
i
 
*>
 
3
6.
3
6.
3
6.
0/24
6  <<<<<<<<<<<< new loopback if 
3.3.3.1
/ routing interface

               
0
     address-family  ipv4-unicast
     
0
 
6000
 
i
 
*>
 
128.128.128.1/32
 
0.0.0.0
            
1000000
  afi-safi  ipv4-unicast

   
32768
 
?
 
*>
 
128.128.128.128/32
                  network   
0
172.
0
26.
0
128.0/30
              
1000000
             
32768
 
?
network-address 
*>
 172.26.128.0/30
0.0.0.0

                            policy          
0
 add-community
       
32768
 
i
  
Displayed
  
6
 
routes
 
and
 
6
 
total
 
paths
   
Completed in 0.16 seconds admin@node2.bosdc1# Step 2Add Community String

1- Create a Filter

2- Policy

2a- Condition

2b- Actions

SSR
Code Block
titleshow bgp router
collapsetrue
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
titleshow bgp <route> on FRRouting
collapsetrue
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 3Reject Community String

1- Create a Filter:   match-community

2- Policy

2a- Condition

2b- Actions

show bgp router dalbo2

show bgp router seabo1

Code Block
titleshow bgp router <router>
collapsetrue
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 3Add 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 4Add 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 5Verify 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
titleadvertised and received routes
collapsetrue
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                      
i
 
internal,
 
r
 
RIB-failure,
 
S
 
Stale,
 
R
 
Removed
 
Nexthop
 
codes:
 
@NNN
0 
nexthop's
100 
vrf
300 
id,
?
< announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete
*> 8.8.8.8/32       7.7.7.7          
Network
          
Next
 
Hop
           0 
Metric
100 
LocPrf
300 
Weight Path
?
*> 
1
128.128.
1
128.1
.0
/
24 2.2.2.1
32 7.7.7.7                   
0
             0 100 
6000
300 
i
?
*> 
2
128.
2
128.
2
128.
0/24
128/32
                    
2
7.
2
7.
2
7.
1
7                   
0
             0 
6000
100 300 
i
?
*> 
3
172.
3
26.
3.0/24 2.2.2.1
128.0/30  7.7.7.7                   
0
             0 100 
6000
300 i
*> 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.1
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: 
0
 
6000
i 
300
- 
?
IGP, e 
Displayed
- EGP, 
5
? 
routes
- 
and
incomplete
5

total
 
paths
  Network 
Completed
 
in
 
0.12
 
seconds
 
admin@node1.nycconductor1#
 
show
 
bgp
 
router
 
seabo1
 Next 
Thu
Hop 
2021-05-06
 
21:36:47
 
UTC
 
========
  
seabo1
 
========
 
BGP
 
table
 
version
 
is
 
8,
Metric 
local
LocPrf 
router
Weight 
ID
Path
is
*> 1.1.1.
128, vrf id 0 Status codes:
0/24  
s
 
suppressed,
 
d
 
damped,
 
h history, * valid, > best, = multipath,
 0.0.0.0                     
i internal,
 
r
 
RIB-failure,
 
S
 
Stale,
 
R
 
Removed
 
Nexthop
 
codes:
 
@NNN
 
nexthop's
 
vrf
0 
id,
6000 
< announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete
i
*> 2.2.2.0/24       0.0.0.0         
Network
          
Next
 
Hop
            
Metric
0 
LocPrf
100 
Weight
6000 
Path
i
*> 
1
3.
1
3.
1
3.0/24       
1
0.
1
0.
1
0.
1
0                   
0
             0 6000 i
*> 
2
7.
2
7.
2
7.
0
7/
24
32       
1
0.
1
0.
1
0.
1
0             
999999 
0
       
0 6000 i
 32768 ?
*> 
3
8.
3
8.
3
8.
0
8/
24
32       
1
0.
1
0.
1
0.
1
0             999999     
0
    
0 6000 i
32768 ?
*> 128.128.128.1/32 
1
0.
1
0.
1.1
0.0            1000000       
0
 
6000
 
300
32768 ?
*> 128.128.128.128/32
                    
1
0.
1
0.
1
0.
1
0            1000000         
0 6000 300
32768 ?
*> 172.26.128.0/30  
1
0.
1
0.
1
0.
1
0                  0         
0 6000 300
32768 i

Displayed 6 routes and 6 total paths
Total number of prefixes 8


Completed in 0.
12
18 seconds
admin@node1.
nycconductor1# Exercise 4BGP Over SVRStep 1Configure Routing InterfaceStep 2Change Router Instance to Routing InterfaceStep 3Add BGP Over SVR PeersStep 4Add BGP Over SVR PeersStep 5Verify BGP Over SVR
bosdc1#