Cisco Systems N5KC5596TFA Switch User Manual


 
PurposeCommand or Action
To convert a Layer 3 interface back into a Layer
2 interface, use the switchport command.
Note
Configures an IP address for this interface.switch(config-if)# [ip | ipv6
]ip-address/length
Step 4
(Optional)
Configures the interface medium as either point to point
or broadcast.
switch(config-if)# medium
{broadcast | p2p}
Step 5
The default setting is broadcast, and this setting
does not appear in any of the show commands.
However, if you do change the setting to p2p, you
will see this setting when you enter the show
running-config command.
Note
(Optional)
Displays the Layer 3 interface statistics.
switch(config-if)# show interfaces
Step 6
(Optional)
Saves the change persistently through reboots and restarts
by copying the running configuration to the startup
configuration.
switch(config-if)# copy
running-config startup-config
Step 7
This example shows how to configure an IPv4 routed Layer 3 interface:
switch# configure terminal
switch(config)# interface ethernet 2/1
switch(config-if)# no switchport
switch(config-if)# ip address 192.0.2.1/8
switch(config-if)# copy running-config startup-config
Configuring a Subinterface
Before You Begin
• Configure the parent interface as a routed interface.
• Create the port-channel interface if you want to create a subinterface on that port channel.
Procedure
PurposeCommand or Action
(Optional)
Saves the change persistently through reboots and
restarts by copying the running configuration to the
startup configuration.
switch(config-if)# copy running-config
startup-config
Step 1
Cisco Nexus 5000 Series NX-OS Interfaces Configuration Guide, Release 5.2(1)N1(1)
78-26881-OL 37
Configuring Layer 3 Interfaces
Configuring a Subinterface