Juniper Multiple IP Address on a Single interface

  • by
Juniper Multiple IP Address on a Single interface

For some point-to-multipoint, you configure multiple address on a single logical interface:

# set interfaces ge-0/0/0 unit 0 family inet address 192.168.100.2/24
# set interfaces ge-0/0/0 unit 0 family inet address 192.168.200.2/24
# show interfaces ge-0/0/0
unit 0 {
    family inet {
        address 192.168.100.2/24;
        address 192.168.200.2/24;
    }
}

[Lowest IP will be the primary IP. Here Lowest IP is 192.168.100.2/24]

You have an Ethernet or other point-to-multipoint interface and have to set up multiple addresses on the interface for example, so you can treat class of service for each flow differently but you need to always use one of the addresses first.
Use the following commands to pick one address to always be the source address for traffic on the same subnet:

# set interfaces ge-0/0/0 unit 0 family inet address 192.168.220.1/24
# set interfaces ge-0/0/0 unit 0 family inet address 192.168.220.2/24 preferred

Use the following commands to choose one address that is used as the source address in broadcast and unnumbered traffic sent out an interface:

# set interfaces ge-0/0/1 unit 0 family inet address 192.168.220.1/24
# set interfaces ge-0/0/1 unit 0 family inet address 192.168.220.2/24 primary

Leave a Reply