home

Supported platforms

Vyatta documentation

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

Configuring BGP on an unnumbered interface

You can configure the BGP protocol on an unnumbered interface.

This section presents an example configuration of eBGP with an unnumbered Interface. The example is based on the following figure.

Figure 1. Configuring BGP on an unnumbered interface
To configure BGP on an unnumbered interface, perform the following steps in configuration mode.
Table 1. Configuring an IP unnumbered interface on router R1

Step

Command

Add an interface address.

vyatta@R1# set interfaces dataplane dp0p1s2 address 133.0.1.1/24

Add an unnumbered interface address.

vyatta@R1# set interfaces dataplane dp0p1s3 ip unnumbered donor-interface dp0p1s2

Set the identifier of the BGP router to that of the router address.

vyatta@R1# set protocols bgp parameters router-id 3.3.3.3

Configure the eBGP neighbor peering.

vyatta@R1# set protocols bgp 100 neighbor 133.0.1.2 address-family ipv4-unicast

Set the eBGP remote AS.

vyatta@R1# set protocols bgp 100 neighbor 133.0.1.2 remote-as 200

Add a static interface route to reach the neighbor.

vyatta@R1# set protocols static interface-route 133.0.1.2/32 next-hop-interface dp0p1s3 bgp network point-to-point

Verify that the BGP protocol is configured with an unnumbered interface on a point-to-point interface type only.

vyatta@R1# show interfaces
interfaces {
      dataplane dp0p1s2 {
                   address 133.0.1.1/24
       }
       dataplane dp0p1s3 {
                   ip {
                        unnumbered {
                            donor-interface dp0p1s2
                        }
                   }
        }
}
Table 2. Configuring an IP unnumbered interface on router R2

Step

Command

Set the interface address.

vyatta@R1# set interfaces dataplane dp0p1s2 address 133.0.1.2/24

Set the unnumbered interface address.

vyatta@R1# set interfaces dataplane dp0p1s3 ip unnumbered donor-interface dp0p1s2

Set the identifier of the BGP router to that of the router address.

vyatta@R1# set protocols bgp parameters router-id 3.3.3.3

Set the eBGP neighbor peering.

vyatta@R1# set protocols bgp 200 neighbor 133.0.1.1 address-family ipv4-unicast

Set the eBGP remote AS.

vyatta@R1# set protocols bgp 200 neighbor 133.0.1.1 remote-as 100

Add a static interface route to reach the neighbor.

vyatta@R1# set protocols static interface-route 133.0.1.1/32 next-hop-interface dp0p1s3

Verify that the BGP protocol is configured with an unnumbered interface on a point-to-point interface type only.

vyatta@R1# show interfaces
interfaces {
      dataplane dp0p1s2 {
                   address 133.0.1.2/24
      }
      dataplane dp0p1s3 {
                   ip {
                        unnumbered {
                            donor-interface dp0p1s2
                        }
                   }
      }
}