Configuring A Subinterface - Cisco 7604-RSP720C-R Configuration Manual

Nx-os interfaces
Table of Contents

Advertisement

Configuring Layer 3 Interfaces
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m
The default setting is broadcast, and this setting does not appear in any of the show commands.
Note
However, if you do change the setting to p2p, you will see this setting when you enter the show running
config command.
Use the switchport command to convert a Layer 3 interface into a Layer 2 interface.
Command
switchport
Example:
switch(config-if)# switchport
This example shows how to configure a routed 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
The default setting for interfaces is routed. If you want to configure an interface for Layer 2, enter the
switchport command. Then, if you change a Layer 2 interface to a routed interface, enter the no
switchport command.

Configuring a Subinterface

You can configure one or more subinterfaces on a routed interface or on a port channel made from routed
interfaces.
BEFORE YOU BEGIN
Configure the parent interface as a routed interface.
See the
Create the port-channel interface if you want to create a subinterface on that port channel.
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1.
2.
3.
4.
5.
6.
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
4-8
"Configuring a Routed Interface" section on page
configure terminal
interface ethernet slot/port.number
ip address ip-address/length
or
ipv6 address ipv6-address/length
encapsulation dot1q vlan-id
(Optional) show interfaces
(Optional) copy running-config startup-config
Chapter 4
Purpose
Configures the interface as a Layer 2 interface and
deletes any configuration specific to Layer 3 on
this interface.
4-6.
Configuring Layer 3 Interfaces
OL-23435-03

Advertisement

Table of Contents
loading

Table of Contents