O'Reilly logo

JUNOS Cookbook by Aviva Garrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.13. Configuring Ethernet Interfaces

Problem

Your router has an Ethernet interface and you want to configure it.

Solution

Use the following command to activate a Fast Ethernet interface:

	[edit interfaces]
	aviva@router1# set fe-0/0/3 unit 0 family inet address 192.168.220.13/24

Use the following commands to activate a Gigabit Ethernet interface:

	[edit interfaces]
	aviva@M5# set ge-0/2/0 unit 0 family inet6 address 3010::2/64
	aviva@M5# set ge-0/2/0 unit 0 family iso

Discussion

The basic configuration for Ethernet interfaces is very straightforward. Just assign the desired addresses, and the interface is up and running. Here, for the Fast Ethernet interface, we configure an IPv4 address, and for the Gigabit Ethernet interface, we configure an IPv6 address and the iso family (for IS-IS). You can also configure other address families depending on the protocols that the interface needs to support.

With this configuration, the show interfaces output displays the default JUNOS settings for Ethernet interfaces. The Fast Ethernet defaults are highlighted:

	aviva@router1> show interfaces fe-0/0/3
	Physical interface: fe-0/0/3, Enabled, Physical link is Up
	  Interface index: 131, SNMP ifIndex: 82
	  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     : 4
	  CoS queues     : 4 supported Current address: 00:05:85:02:a4:03, Hardware address: 00:05:85:02:a4:03 Last ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required