...
Code Block |
---|
admin@XorPlus# set protocols bgp router-id 1.1.1.1
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# |
...
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# commit
Waiting for merging configuration.
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 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 Waiting for merging configuration. 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:
|
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.2group Leaf1 admin@XorPlus# commitset protocols Waitingbgp for merging configuration. Commit OK. Save done. admin@XorPlus# neighbor 10.10.0.12 peer-group Leaf1 admin@XorPlus# commit |