[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Configuring Network Interfaces with a Configuration Editor

To enable the interfaces installed on your device to work properly, you must configure their properties. You can perform basic interface configuration using the J-Web Quick Configuration pages, as described in Configuring Interfaces—Quick Configuration. You can perform the same configuration tasks using the J-Web or CLI configuration editor. In addition, you can configure a wider variety of options that are encountered less frequently.

You can perform the following tasks to configure interfaces:

For information about using the J-Web and CLI configuration editors, see the J-Web Interface User Guide and the JUNOS CLI User Guide.

Adding a Network Interface with a Configuration Editor

After you install a PIM, connect the interface cables to the ports, and power on the device, you must complete initial configuration of each network interface, as described in the following procedure:

  1. Navigate to the top of the interfaces configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 46.
  3. When you are finished configuring the device, commit the configuration.
  4. To verify that the network interface is configured correctly, see Verifying Interface Configuration.

Table 46: Adding an Interface

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Interfaces level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Interfaces, click Configure or Edit.

From the [edit] hierarchy level, enter

edit interfaces interface-name

For information about interface names, see Network Interface Naming.

Create the new interface.

  1. Next to Interface, click Add new entry.
  2. Enter the name of the new interface in the Interface name box.

    Make sure the name conforms to the interface naming rules. For more information, see Network Interface Naming.

  3. Click OK.

Create the basic configuration for the new interface.

  1. Under Interface Name in the table, click the name of the new interface.
  2. Enter values in the other fields on this page if warranted.

    All these entries are optional, but you need to set values for Clocking and Encapsulation in particular if the default values are not suitable.

Enter values for physical interface properties as needed. Examples include changes to the default values for physical encapsulation or MTU. For example:

set interface-name encapsulation ppp

Add values for interface-specific options.

Most interface types have optional parameters that are specific to the interface type.

  1. Under Nested configuration, click Configure for the appropriate interface type.
  2. In the interface-specific page that appears, enter the values you need to supply or change the default values.
  3. When you are finished, click OK to confirm your changes or Cancel to cancel them and return to the previous page.
  1. From the [edit interfaces interface-name] hierarchy level, type

    edit interface-options

  2. Enter the statement for each interface-specific property for which you need to change the default value.

Add logical interfaces.

  1. In the main Interface page for this interface, next to Unit, click Add new entry.
  2. On the Unit page for logical interfaces that appears, type a number from 0 through 16384 in the Interface unit number box.
  3. Enter values in other fields as required for your network.
  4. To configure protocol family values if needed, under Family, click Configure next to the appropriate protocol.
  5. To access additional subordinate hierarchies under Nested configuration, click Configure next to any parameter you want to configure.
  6. When you are finished, click OK.
  1. From the [edit interfaces interface-name] hierarchy level, type

    set unitlogical-unit-number

    Replace logical-unit-number with a value from 0 through 16384.

  2. Enter additional values for properties you need to configure on the logical interface, such as logical encapsulation or protocol family.

Configuring Static ARP Entries on Ethernet Interfaces

By default, the device responds to an Address Resolution Protocol (ARP) request only if the destination address of the ARP request is on the local network of the incoming interface. For Fast Ethernet or Gigabit Ethernet interfaces, you can configure static ARP entries that associate the IP addresses of nodes on the same Ethernet subnet with their media access control (MAC) addresses. These static ARP entries enable the device to respond to ARP requests even if the destination address of the ARP request is not local to the incoming Ethernet interface.

In this example, you configure a static ARP entry on Gigabit Ethernet interface ge-0/0/3 of the device consisting of the IP address and corresponding MAC address of a node on the same Ethernet subnet. The ge-0/0/3 interface has the IP address 10.1.1.1/24. The node has the IP address 10.1.1.3 and the MAC address 00:ff:85:7f:78:03. If the node on your network is another device running the JUNOS software, you can enter the show interfaces interface-name command to learn the IP and MAC (hardware) address of the node.

For more information about configuring static ARP entries, see the JUNOS Network Interfaces Configuration Guide.

To configure a static ARP entry on the ge-0/0/3 interface:

  1. Navigate to the top of the interfaces configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 47.
  3. If you are finished configuring the device, commit the configuration.
  4. To verify the configuration, see Verifying Interface Configuration.

Table 47: Configuring Static ARP Entries

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Interfaces level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Interfaces, click Edit.

From the [edit] hierarchy level, enter

edit interfaces ge-0/0/3

Select the Gigabit Ethernet interface ge-0/0/3.

In the Interface name column, click ge-0/0/3.

Configure a static ARP entry on logical unit 0 with the source address 10.1.1.1/24 on the ge-0/0/3 interface.

Set the IP address of the subnet node to 10.1.1.3 and the corresponding MAC address to 00:ff:85:7f:78:03.

To have the device reply to ARP requests from the node, use the publish option.

  1. Under Unit, next to 0, click Edit.
  2. Under Family, next to Inet, click Edit.
  3. Under Address, next to 10.1.1.1/24, click Edit.
  4. Next to Arp, click Add new entry.
  5. In the Address box, type the IP address of the node—10.1.1.3.
  6. Select the Publish check box.
  7. From the Mac address type list, select Mac.
  8. In the Mac box, type the MAC address 00:ff:85:7f:78:03 of node.
  9. Click OK until you return to the Interfaces page.
  1. Enter

    edit unit 0

  2. Enter

    edit family inet address 10.1.1.1/24

  3. Enter

    set arp 10.1.1.3 mac 00:ff:85:7f:78:03 publish

Deleting a Network Interface with a Configuration Editor

To delete an interface:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 48.

Note: Performing this action removes the interface from the software configuration and disables it. Network interfaces remain physically present, and their identifiers continue to appear on the J-Web Monitor and Quick Configuration pages.

Table 48: Deleting an Interface

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Interfaces level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Interfaces, click Edit.

From the [edit] hierarchy level, enter

edit interfaces

Select the interface you want to delete.

In the Interface table, under Interface name, select the name of the interface you want to delete.

For information about interface names, see Network Interface Naming.

Enter

delete interface-name

Execute the selection.

  1. Click Discard.
  2. In the page that appears, select the appropriate option button.

    If you have not made any previous changes, the only selection available is Delete Configuration Below This Point.

Commit the configuration change:

commit


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]