Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Configuring BGP

The following commands show how to configure the BGP scheme shown in Configuration.

Table 1. Configuring BGP

Router

Step

Commands

R1

On R1, which belong to AS1, assign the remote AS numbers to its BGP neighbors.

vyatta@R1# set protocols bgp 1 neighbor 10.12.0.2 remote-as 2

vyatta@R1# set protocols bgp 1 neighbor 10.15.0.5 remote-as 3

vyatta@R1# set protocols bgp 1 neighbor 10.16.0.6 remote-as 
1

R1

On R1, specify the IPv4 address that BGP advertises to its neighbor.

vyatta@R1# set protocols bgp 1 network 10.12.0.0/16

vyatta@R1# set protocols bgp 1 network 10.15.0.0/16

vyatta@R1# set protocols bgp 1 network 10.16.0.0/16 

R2

On R2, which belong to AS2, assign the remote AS numbers to its BGP neighbors.

vyatta@R2# set protocols bgp 2 neighbor 10.12.0.1 remote-as 1

vyatta@R2# set protocols bgp 2 neighbor 10.23.0.3 remote-as 3

R2

On R2, specify the IPv4 address and prefix of its network address connections.

vyatta@R2# set protocols bgp 2 network 10.12.0.0/16

vyatta@R2# set protocols bgp 2 network 10.23.0.0/16

vyatta@R2# set protocols bgp 2 network 10.29.0.0/16

R3

On R3, which belong to AS3, assign the remote AS numbers to its BGP neighbors.

vyatta@R3# set protocols bgp 3 neighbor 10.23.0.2 remote-as 2

vyatta@R3# set protocols bgp 3 neighbor 10.34.0.4 remote-as 3

vyatta@R3# set protocols bgp 3 neighbor 10.53.0.5 remote-as 3

R3

On R3, specify the IPv4 address and prefix of its network address connections.

vyatta@R3# set protocols bgp 3 network 10.23.0.0/16

vyatta@R3# set protocols bgp 3 network 10.34.0.0/16

vyatta@R3# set protocols bgp 3 network 10.53.0.0/16

R4

On R4, which belong to AS3, assign the remote AS numbers to its BGP neighbors.

vyatta@R4# set protocols bgp 3 neighbor 10.34.0.3 remote-as 3

vyatta@R4# set protocols bgp 3 neighbor 10.45.0.5 remote-as 3

R4

On R4, specify the IPv4 address and prefix of its network address connections.

vyatta@R4# set protocols bgp 3 network 10.34.0.0/16

vyatta@R4# set protocols bgp 3 network 10.43.0.0/16

vyatta@R4# set protocols bgp 3 network 10.48.0.0/16 

R5

On R5, which belong to AS3, assign the remote AS numbers to its BGP neighbors.

vyatta@R5# set protocols bgp 3 neighbor 10.15.0.1 remote-as 1

vyatta@R5# set protocols bgp 3 neighbor 10.45.0.4 remote-as 3

vyatta@R5# set protocols bgp 3 neighbor 10.53.0.3 remote-as 3

R5

On R5, specify the IPv4 address and prefix of its network address connections.

vyatta@R5# set protocols bgp 3 network 10.15.0.0/16

vyatta@R5# set protocols bgp 3 network 10.45.0.0/16

vyatta@R5# set protocols bgp 3 network 10.53.0.0/16
 
vyatta@R5# set protocols bgp 3 network 10.57.0.0/16 

R6

On R6, which belong to AS1, assign the remote AS number to its BGP neighbor.

vyatta@R6# set protocols bgp 1 neighbor 10.16.0.1 remote-as 1

R6

On R6, specify the IPv4 address and prefix of its network address connections.

vyatta@R6# set protocols bgp 1 network 10.16.0.0/16

vyatta@R6# set protocols bgp 1 network 10.106.0.0/16