Versions Compared

Key

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

...

The local ASN (Autonomous System Number) should be configured when you configure BGP. An Autonomous System (AS) is a group of IP networks that are controlled by one entity, typically an Internet service provider (ISP), and that have the same routing policy. Each AS is assigned a unique AS number, which identifies an AS on a BGP network. 

The AS_Path attribute records all the AS numbers that a route passes through, from the source to the destination, following the order of vectors.

...

Code Block
admin@XorPlus# set protocols bgp local-as 100
admin@XorPlus# set protocols bgp peerneighbor 192.168.49.1 remote-as 200
admin@XorPlus# set protocols bgp peer 192.168.49.1 next-hop-self true
admin@XorPlus# set protocols bgp peer
192.168.49.1 local-ip 192.168.49.2
admin@XorPlus# commit
Commit OK.
Save done.
admin@XorPlus# 

...

Code Block
admin@XorPlus# set protocols bgp local-as 100
admin@XorPlus# set protocols bgp peerneighbor 192.168.49.1 remote-as 100
admin@XorPlus# commit
Commit OK.
Save done.
admin@XorPlus# 

Configuring a BGP Peer Group

A large BGP network has a large number of peers. It is difficult to configure and maintain these peers. You can add the BGP peers with the same configurations to a BGP peer group and then configure the BGP peers in batches. This simplifies peer management and improves route advertisement efficiency.

Info

NOTE:

  • If a BGP configuration exists on a peer and its peer group, the BGP configuration on the peer takes precedence over the configuration on the peer group.
  • If the peer you want to add to a group already exists in the BGP configuration, delete it first, than add it to the peer group.

The following example commands create a peer group called Leaf1 that includes two external peers.

Code Block
admin@XorPlus# set protocols bgp peer 192.168.49.1 next-hop-self true-group Leaf1
admin@XorPlus# set protocols bgp neighbor leaf1 remote-as external
admin@XorPlus# set protocols bgp peerneighbor 19210.16810.490.1 localpeer-ip 192.168.49.2
admin@XorPlus# commit
Commit OK.
Save done.
admin@XorPlus# group Leaf1
admin@XorPlus# set protocols bgp neighbor 10.10.0.12 peer-group Leaf1
admin@XorPlus# commit