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 OSPF on an unnumbered interface

You can configure the OSPF protocol on an unnumbered interface.

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

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

Step

Command

Create a loopback interface for router R1.

vyatta@R1# set interfaces loopback lo1 address
3.3.3.3/32

Add a static interface route to reach the other network.

vyatta@R1# set protocols static interface-route 192.169.2.0/24 next‐hop‐interface dp0s192

Add a route to the destination network.

vyatta@R1# set protocols static route 192.169.2.0/24
next-hop 3.3.3.3

Set the identifier of the OSPF router to that of the loopback address.

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

Configure the donor interface.

vyatta@R1# set interfaces unnumbered donor-interface lo1

Advertise to the 3.3.3.0/24 network.

vyatta@R1# set protocols ospf area 0.0.0.0 network 3.3.3.0/24

Configure the point-to-point protocol on the OSPF network.

vyatta@R1# set interfaces dataplane dp0s192 ip  ospf network point-to-point

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

vyatta@R1# # show interfaces
interfaces {
                 ospf {
                               network point-to-point
                       }
                       unnumbered {
                              donor-interface lo1
                      }
               }
       }
       loopback lo1 {
               address 3.3.3.3/32
	}
    }
Table 2. Configuring an IP unnumbered interface on router R2

Step

Command

Create a loopback interface for router R2.

vyatta@R1# set interfaces loopback lo1 address
2.2.2.2/32

Add a static interface route to reach the other network.

vyatta@R1# set protocols static interface-route 192.169.2.0/24 next‐hop‐interface dp0s192

Add a route to the destination network.

vyatta@R1# set protocols static route 192.169.2.0/24
next-hop 2.2.2.2

Set the identifier of the OSPF router to that of the loopback address.

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

Configure the donor interface.

vyatta@R1# set interfaces unnumbered donor-interface lo1

Advertise to the 2.2.2.0/24 network.

vyatta@R1# set protocols ospf area 0.0.0.0 network 2.2.2.0/24

Configure the point-to-point protocol on the OSPF network.

vyatta@R1# set interfaces dataplane dp0s192 ip  ospf network point-to-point

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

vyatta@R1# # show interfaces
interfaces {
                 ospf {
                               network point-to-point
                       }
                       unnumbered {
                              donor-interface lo1
                      }
               }
       }
       loopback lo1 {
               address 2.2.2.2/32
	}
    }