Example: Configuring Static ARP Entries on Ethernet Interfaces

Requirements

No special configuration beyond device initialization is required before creating an interface.

Overview

In this example, you configure a static ARP entry on the logical unit 0 of the ge-0/0/3 Gigabit Ethernet interface. The entry consists of the interface’s IP address (10.1.1.1/24) and the corresponding MAC address of a node on the same Ethernet subnet (00:ff:85:7f:78:03). The example also configures the device to reply to ARP requests from the node using the publish option.

Configuration

CLI Quick Configuration

To quickly configure static ARP entries on Ethernet interfaces, copy the following commands and paste them into the CLI.

[edit]set interfaces ge-0/0/3 unit 0 family inet address 10.1.1.1/24 arp 10.1.1.3 mac 00:ff:85:7f:78:03 set interfaces ge-0/0/3 unit 0 family inet address 10.1.1.1/24 arp 10.1.1.3 publish

Step-by-Step Procedure

To configure a static ARP entry on the interface:

  1. Create the Gigabit Ethernet interface.
    [edit]user@host# edit interfaces ge-0/0/3
  2. Configure a static ARP entry.
    [edit interfaces ge-0/0/3]user@host# edit unit 0 family inet address 10.1.1.1/24
  3. Set the IP address of the subnet node and the corresponding MAC address.
    [edit interfaces ge-0/0/3 unit 0 family inet address 10.1.1.1/24]user@host# set arp 10.1.1.3 mac 00:ff:85:7f:78:03 publish

Results

From configuration mode, confirm your configuration by entering the show interfaces ge-0/0/3 command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

user@host# show interfaces ge-0/0/3unit 0 {family inet {address 10.1.1.1/24 {arp 10.1.1.3 mac 00:ff:85:7f:78:03 publish;}}}

If you are done configuring the device, enter commit from configuration mode.

Verification

Verifying Static ARP Configurations

Purpose

Verify the IP address and MAC (hardware) address of the node.

Action

Use the show interfaces ge-0/0/3 command.

Related Topics