Configuring the Physical Interface
This section describes how to complete the basic configuration for a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet interface. CLI examples are provided with the individual command descriptions.
To configure an Ethernet interface:
- Select an Ethernet interface.
- (Optional) Specify the line speed and duplex mode.
- (Optional) Specify the MTU.
- (Optional) Set the time interval at which the router records bit and packet rates.
- (Optional) Associate a name with the interface.
- (Optional) Validate MAC addresses on a per interface basis.
duplex
- Use to specify the duplex mode.
- This command also works on the Fast Ethernet port on the SRP module on all E-series routers. For more information, see the Managing the Ethernet Port on the SRP Module in JUNOSe System Basics Configuration Guide, Chapter 6, Managing Modules.
- Example
host1(config-if)#duplex fullUse the no version to revert to the default, either automatically negotiate or full duplex (FE-8 SFP I/O module only) ethernet description
- Use to associate a text description of up to 64 characters with an Ethernet interface.
- This command does not work for the Fast Ethernet port on the SRP module.
- The description is displayed in the output for show configuration, show interfaces fastEthernet, show interfaces gigabitEthernet, and show interfaces tenGigabitEthernet commands.
- Example
host1(config-if)#ethernet description abcd1234Use the no version to remove the description from the interface. interface fastEthernet
- Use to select a Fast Ethernet interface on a line module.
- You can also use it to select a Fast Ethernet management port on an SRP I/O module (ERX-7xx models, ERX-14xx models, and the ERX-310 router) or an SRP IOA (E120 and E320 routers). For information about managing the Fast Ethernet port on the SRP module, see JUNOSe System Basics Configuration Guide, Chapter 6, Managing Modules.
- Use the slot/port [.subinterface] format for Fast Ethernet interfaces on ERX-7xx models, ERX-14xx models, and the ERX-310 router. Use the slot/adapter/port format for the SRP IOA on the E120 or E320 routers; the port on the SRP IOA is always identified by 0.
- Example 1Selects a Fast Ethernet interface on ERX-7xx models, ERX-14xx models, or the ERX-310 router
host1(config)#interface fastEthernet 1/0Example 2Selects the Fast Ethernet management port on an E320 router host1(config)#interface fastEthernet 6/0/0Use the no version to remove IP from an interface or subinterface. You must issue the no version from the highest level down; you cannot remove an interface or subinterface if the one above it still exists. interface gigabitEthernet
- Use to select a Gigabit Ethernet interface.
- Use the slot/port [.subinterface] format for Gigabit Ethernet interfaces on ERX-7xx models, ERX-14xx models, or the ERX-310 router; use the slot/adapter/port format for Gigabit Ethernet interfaces on the E120 and E320 routers.
- Example 1Selects a Gigabit Ethernet interface on ERX-7xx models, ERX-14xx models, and the ERX-310 router
host1(config)#interface gigabitEthernet 1/0host1(config)#interface gigabitEthernet 2/1Example 2Selects a Gigabit Ethernet interface on the E320 router host1(config)#interface gigabitEthernet 4/0/1Use the no version to remove IP from an interface. You must issue the no version from the highest level down; you cannot remove an interface or subinterface if the one above it still exists. interface tenGigabitEthernet
- Use to select a 10-Gigabit Ethernet interface on the E120 router or the E320 router.
NOTE: On the ES2-S2 10GE PR IOA, you can configure only the primary port, 0. The router automatically uses the redundant port, 0R, if the primary port fails.
- Use the slot/adapter/port format.
- ExampleSelects a 10-Gigabit Ethernet interface on the ES2-S1 10GE IOA
host1(config)#interface tenGigabitEthernet 4/0/1Use the no version to remove IP from an interface. You must issue the no version from the highest level down; you cannot remove an interface or subinterface if the one above it still exists. ip mac-validate
- Use to enable or disable MAC address validation on a per interface basis.
- Use the strict keyword to prevent transmission of IP packets that do not reside in the validation table.
- Use the loose keyword to enable IP packets to pass through even though the packets do not have entries in the validation table. Only packets that have matching IPMAC pair entries in the table are validated.
- The default behavior is not to perform MAC address validation.
- Example
host1(config)#interface gigabitEthernet 2/0host1(config-if)#ip address 4.4.4.2 255.255.255.0host1(config-if)#ip mac-validate stricthost1(config-if)#exitUse the no version to disable the command.
NOTE: For additional information about MAC address validation, see the arp validate command description in JUNOSe IP, IPv6, and IGP Configuration Guide, Chapter 1, Configuring IP.
load-interval
- Use to set the time interval at which the router calculates bit and packet rate counters.
- This command does not work for the Fast Ethernet port on the SRP module.
- Specify a multiple of 30 seconds, in the range 30300 seconds.
- The default value is 300 seconds.
- Example
host1(config-if)#load-interval 90Use the no version to restore the default time interval, 300 seconds. mtu
- Use to specify the MTU for an interface.
- Specify a value in the range 649188 bytes. The range for FE-8 I/O modules is 649042 bytes.
- This command does not work for the Fast Ethernet port on the SRP module.
- Example
host1(config-if)#mtu 9000Use the no version to specify the default, 1518. speed
- Use to specify the line speed.
- This command also works on the Fast Ethernet port on the SRP module on all E-series routers. For more information, see Managing the Ethernet Port on the SRP Module in JUNOSe System Basics Configuration Guide, Chapter 6, Managing Modules.
- Example
host1(config-if)#speed 10Use the no version to revert to the default, either automatically negotiate or 100 Mbps (FE-8 SFP I/O module only).