Command Line Reference Guide
Interfaces | 491
Usage
Information
Pre-configuring the interfaces for the optical module preserves the configuration if/when an optical
module is removed. The optional 10G optical module is automatically recognized and the interfaces
are created when the module is inserted into the slot. However, if the system is not already configured
for the interfaces, when the module is removed the interfaces and their configurations are removed as
well.
switchport
c e s
Place the interface in Layer 2 mode.
Syntax
switchport [backup interface {gigabit | tengigabit} slot/port]
To remove the interface from Layer 2 mode and place it in Layer 3 mode, enter no switchport. If a
switchport backup relationship exists, remove that relationship first.
To remove a switchport backup relationship created on this port, enter no switchport backup
interface
{gigabit | tengigabit} slot/port].
Parameters
Defaults
Disabled (The interface is in Layer 3 mode.)
Command Modes
INTERFACE
Command
History
Usage
Information
If an IP address or VRRP group is assigned to the interface, you cannot use the switchport command
for that interface. To use the switchport command on an interface, only the no ip address and no
shutdown
statements must be listed in the show config for that command.
When you enable the switchport command, the interface is automatically added to the Default
VLAN.
To use the switchport backup interface command on a port, first execute the switchport
command on the port. For details, see the section Configuring Redundant Links in the Layer 2 chapter
of the FTOS Configuration Guide.
Related
Commands
backup
interface
Use this option to configure a redundant Layer 2 link without using Spanning Tree. This
keyword configures a backup port so that if the primary port fails the backup port changes
to the up state. If the primary later comes up, it becomes the backup.
gigabit
Enter this keyword if the backup port is a 1G port.
tengigabit
Enter this keyword if the backup port is a 10G port.
slot/port
Specify the line card and port number of the backup port.
Version 8.3.3.1 Introduced on the S60.
Version 8.1.1.0 Introduced on E-Series ExaScale
Version 7.7.1.0
Added
backup interface option.
Version 7.6.1.0 Introduced on S-Series
Version 7.5.1.0 Introduced on C-Series
pre-Version 6.2.1.0 Introduced for E-Series
interface port-channel Create a port channel interface.
show interfaces switchport Display information about switchport interfaces.










