
Configuring Layer 2 (Data Link) Mode
Do not configure switching or Layer 2 protocols such as spanning tree protocol (STP) on an interface unless the interface has been
set to Layer 2 mode.
To set Layer 2 data transmissions through an individual interface, use the following command.
•
Enable Layer 2 data transmissions through an individual interface.
INTERFACE mode
switchport
Example of a Basic Layer 2 Interface Configuration
Dell(conf-if)#show config
!
interface Port-channel 1
no ip address
switchport
no shutdown
Dell(conf-if)#
Configuring Layer 2 (Interface) Mode
To configure an interface in Layer 2 mode, use the following commands.
•
Enable the interface.
INTERFACE mode
no shutdown
•
Place the interface in Layer 2 (switching) mode.
INTERFACE mode
switchport
To view the interfaces in Layer 2 mode, use the
show interfaces switchport
command in EXEC mode.
Configuring Layer 3 (Network) Mode
When you assign an IP address to a physical interface, you place it in Layer 3 mode.
To enable Layer 3 mode on an individual interface, use the following commands. In all interface types except VLANs, the
shutdown
command prevents all traffic from passing through the interface. In VLANs, the
shutdown
command prevents Layer 3 traffic from
passing through the interface. Layer 2 traffic is unaffected by the
shutdown
command. One of the interfaces in the system must
be in Layer 3 mode before you configure or enter a Layer 3 protocol mode (for example, OSPF).
•
Enable Layer 3 on an individual interface
INTERFACE mode
ip address
•
Enable the interface.
INTERFACE mode
no shutdown
Example of Error Due to Issuing a Layer 3 Command on a Layer 2 Interface
If an interface is in the incorrect layer mode for a given command, an error message is displayed (shown in bold). In the following
example, the
ip address
command triggered an error message because the interface is in Layer 2 mode and the
ip address
command is a Layer 3 command only.
Dell(conf-if)#show config
!
Interfaces
371
Содержание S4048-ON
Страница 1: ...Dell Configuration Guide for the S4048 ON System 9 9 0 0 ...
Страница 146: ...Figure 14 BFD Three Way Handshake State Changes 146 Bidirectional Forwarding Detection BFD ...
Страница 477: ...Figure 68 Inspecting Configuration of LAG 10 on ALPHA Link Aggregation Control Protocol LACP 477 ...
Страница 480: ...Figure 70 Inspecting a LAG Port on BRAVO Using the show interface Command 480 Link Aggregation Control Protocol LACP ...
Страница 481: ...Figure 71 Inspecting LAG 10 Using the show interfaces port channel Command Link Aggregation Control Protocol LACP 481 ...
Страница 522: ...Figure 87 Configuring Interfaces for MSDP 522 Multicast Source Discovery Protocol MSDP ...
Страница 523: ...Figure 88 Configuring OSPF and BGP for MSDP Multicast Source Discovery Protocol MSDP 523 ...
Страница 524: ...Figure 89 Configuring PIM in Multiple Routing Domains 524 Multicast Source Discovery Protocol MSDP ...
Страница 528: ...Figure 91 MSDP Default Peer Scenario 1 528 Multicast Source Discovery Protocol MSDP ...
Страница 529: ...Figure 92 MSDP Default Peer Scenario 2 Multicast Source Discovery Protocol MSDP 529 ...
Страница 530: ...Figure 93 MSDP Default Peer Scenario 3 530 Multicast Source Discovery Protocol MSDP ...
Страница 633: ...Policy based Routing PBR 633 ...
Страница 777: ...Figure 119 Single and Double Tag TPID Match Service Provider Bridging 777 ...
Страница 778: ...Figure 120 Single and Double Tag First byte TPID Match 778 Service Provider Bridging ...