Dell Command Line Reference Guide for the S4048–ON System 9.14.2.5

PDF

switchport

Place an interface in Layer 2 mode.

Syntax
switchport [[backup interface {interface | port-channel number}] | mode private-vlan {host | promisucous | trunk}]

To remove an interface from Layer 2 mode and place it in Layer 3 mode, enter the no switchport command. If a switchport backup interface is configured, first remove the backup configuration. To remove a switchport backup interface, enter the no switchport backup interface command.

Parameters
backup
(OPTIONAL) Use this option to configure a redundant Layer 2 link without using Spanning Tree. The keyword backup 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.
interface interface
(OPTIONAL) Enter any of the following keywords and the interface information:
  • For a 10-Gigabit Ethernet interface, enter the keyword TenGigabitEthernet then the slot/port/subport[/subport] information.
  • For a 40-Gigabit Ethernet interface, enter the keyword fortyGigE then the slot/port information.
port-channel
(OPTIONAL) Enter the keywords port-channel if the backup port is a static or dynamic port channel.
mode
(OPTIONAL) Enter the keyword mode to set the interface mode.
private-vlan
(OPTIONAL) Enter the keywords private-vlan to set the interface mode to private VLAN mode.
host
(OPTIONAL) Enter the keyword host to set the private VLAN interface to host mode.
promiscuous
(OPTIONAL) Enter the keyword promiscuous to set the private VLAN interface to promiscuous mode.
trunk
(OPTIONAL) Enter the keyword trunk to set the private VLAN interface to trunk mode.
Defaults
Disabled — interface is in Layer 3 mode.
Command Modes
INTERFACE
Command History

This guide is platform-specific. For command information about other platforms, see the relevant Dell EMC Networking OS Command Line Reference Guide.

Version
Description
9.10(0.1)
Introduced on the S6010-ON and S4048T-ON.
9.10(0.0)
Introduced on the S3148.
9.10(0.0)
Introduced on the S6100–ON.
9.8(2.0)
Introduced on the S3100 series.
9.8(1.0)
Introduced on the Z9100–ON.
9.8(0.0P5)
Introduced on the S4048-ON.
9.8(0.0P2)
Introduced on the S3048-ON.
9.7(0.0)
Introduced on the S6000-ON.
9.2(1.0)
Introduced on the Z9500.
9.0.2.0
Introduced on the S6000.
8.3.19.0
Introduced on the S4820T.
8.3.11.1
Introduced on the Z9000.
8.5.1.0
Added support for 4-port 40G line cards on the E-Series.
8.4.1.0
Added support for port-channel interfaces (the port-channel number option).
8.3.7.0
Introduced on the S4810.
8.1.1.0
Introduced on the E-Series.
7.7.1.0
Added the backup interface option.
7.6.1.0
Introduced on the S-Series.
7.5.1.0
Introduced on the C-Series.
pre-Version 6.2.1.0
Introduced on the E-Series.
Usage Information

If an IP address or VRRP group is assigned to the interface, you cannot use the switchport command on the 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 output.

When you enter the switchport command, the interface is automatically added to the default VLAN.

To use the switchport backup interface command on a port, first enter the switchport command. For more information, see “Configuring Redundant Links” in the Layer 2 section in the Dell EMC Networking OS Configuration Guide.


Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\