To configure a Layer 3 Ethernet IEEE 802.3 routed interface, use the interface ethernet command.
interface ethernet [ chassis_ID /] slot / port [. subintf-port-no ]
|
chassis_ID
|
(Optional) Specifies the Fabric Extender chassis ID. The chassis ID is from 100 to 199.
Note This argument is not optional when addressing the host interfaces of a Cisco Nexus 2000 Series Fabric Extender. |
|
slot
|
Slot from 1 to 3. The following list defines the slots available:
|
|
port
|
Port number within a particular slot. The port number is from 1 to 128.
|
|
.
|
(Optional) Specifies the subinterface separator.
|
|
subintf-port-no
|
(Optional) Port number for the subinterface. The range is from 1 to 48.
|
None
Global configuration mode
Interface configuration mode
|
Release
|
Modification
|
|---|---|
|
5.0(3)N1(1)
|
This command was introduced.
|
You must use the no switchport command in the interface configuration mode to configure the interface as a Layer 3 routed interface. When you configure the interface as a Layer 3 interface, all Layer 2 specific configurations on this interface are deleted.
Use the switchport command to convert a Layer 3 interface into a Layer 2 interface. When you configure the interface as a Layer 2 interface, all Layer 3 specific configurations on this interface are deleted.
This example shows how to enter configuration mode for a Layer 3 Ethernet interface 1/5:
This example shows how to enter configuration mode for a host interface on a Fabric Extender:
This example shows how to configure a Layer 3 subinterface for Ethernet interface 1/5 in the global configuration mode:
This example shows how to configure a Layer 3 subinterface in interface configuration mode:
This example shows how to convert a Layer 3 interface to a Layer 2 interface:
|
Command
|
Description
|
|---|---|
|
bandwidth
|
Sets the bandwidth parameters for an interface.
|
|
delay
|
Configures the interface throughput delay value.
|
|
encapsulation
|
Sets the encapsulation type for an interface.
|
|
ip address
|
Sets a primary or secondary IP address for an interface.
|
|
inherit
|
Assigns a port profile to an interface.
|
|
interface vethernet
|
Configures a virtual Ethernet interface.
|
|
no switchport
|
Configures an interface as a Layer 3 interface.
|
|
service-policy
|
Configures a service policy for an interface.
|
|
show fex
|
Displays all configured Fabric Extender chassis connected to the switch.
|
|
show interface ethernet
|
Displays various parameters of an Ethernet IEEE 802.3 interface.
|