In this example, loopback interface lo0 is the donor interface from which unnumbered Ethernet interface ge-4/0/0 “borrows” an IP address. The example also configures one of the loopback interface’s secondary addresses, 3.3.3.1, as the preferred source address for the unnumbered Ethernet interface.
-
- interfaces {
-
- lo0 {
-
- unit 0 {
-
- family inet {
- address 2.2.2.1/32;
- address 3.3.3.1/32;
- }
- }
- }
- }
-
- interfaces {
-
- ge-4/0/0 {
-
- unit 0 {
-
- family inet {
- unnumbered-address lo0.0 preferred-source-address 3.3.3.1;
- }
- }
- }
- }