Example: Creating an Ethernet Interface

This example shows how to complete the initial configuration on an Ethernet interface.

Requirements

Before you can create an interface, you must install a PIM, connect the interface cables to the ports, and power on the device.

Overview

This example describes the initial configuration that you must complete on each network interface. Within the example, you configure the ge-1/0/0 Ethernet interface as follows:

Configuration

Step-by-Step Procedure

To configure an Ethernet interface:

  1. Create the new interface.

    [edit]user@host# edit interfaces ge-1/0/0
  2. Create the basic configuration for the new interface.

    [edit interface ge-1/0/0]user@host# set encapsulation ppp
  3. Add logical interfaces.

    [edit interface ge-1/0/0]user@host# set unit 0
  4. Commit the configuration if you are done configuring the device.

    [edit interfaces ge-1/0/0]user@host# commit

Verification

To verify an interface configuration, perform these tasks:

Purpose

By using the ping tool on each peer address in the network, verify that all interfaces on the device are operational.

Action

For each interface on the device:

  1. In the J-Web interface, select Troubleshoot>Ping Host.
  2. In the Remote Host box, type the address of the interface for which you want to verify the link state.
  3. Click Start. Output appears on a separate page.

Sample Output

PING 10.10.10.10 : 56 data bytes
64 bytes from 10.10.10.10: icmp_seq=0 ttl=255 time=0.382 ms
64 bytes from 10.10.10.10: icmp_seq=1 ttl=255 time=0.266 ms

Meaning

If the interface is operational, it generates an ICMP response. If this response is received, the round-trip time in milliseconds is listed in the time field. For more information about the output, see the Junos OS Administration Guide for Security Devices.

Verifying Interface Properties

Purpose

Verify that the interface properties are correct.

Action

From the CLI, enter the show interfaces detail command.

Sample Output


user@host> show interfaces detail
Physical interface: ge-1/0/0, Enabled, Physical link is Up
  Interface index: 134, SNMP ifIndex: 27, Generation: 17
  Link-level type: Ethernet, MTU: 1514, Speed: 100mbps, Loopback: Disabled,
  Source filtering: Disabled, Flow control: Enabled
  Device flags   : Present Running
  Interface flags: SNMP-Traps 16384
  Link flags     : None
  CoS queues     : 4 supported
  Hold-times     : Up 0 ms, Down 0 ms
  Current address: 00:90:69:87:44:9d, Hardware address: 00:90:69:87:44:9d
  Last flapped   : 2004-08-25 15:42:30 PDT (4w5d 22:49 ago)
  Statistics last cleared: Never
  Traffic statistics:
   Input  bytes  :                    0                    0 bps
   Output bytes  :                    0                    0 bps
   Input  packets:                    0                    0 pps
   Output packets:                    0                    0 pps
  Queue counters:       Queued packets  Transmitted packets      Dropped packets
    0 best-effort                    0                    0                    0
    1 expedited-fo                   0                    0                    0
    2 assured-forw                   0                    0                    0
    3 network-cont                   0                    0                    0
  Active alarms  : None
  Active defects : None

Meaning

The output shows a summary of interface information. Verify the following information:

Related Topics