19
Configuring Interfaces
Understanding Interface Types
Switch Ports
Switch ports are Layer 2 only interfaces associated with a physical port. Switch ports belong to one or more VLANs. A
switch port can be an access port, a trunk port, a private-VLAN port, or a tunnel port. You can configure a port as an
access port or trunk port. You configure a private VLAN port as a host or promiscuous port that belongs to a private-VLAN
primary or secondary VLAN. (Only NNIs can be configured as promiscuous ports.) You must manually configure tunnel
ports as part of an asymmetric link connected to an IEEE 802.1Q trunk port. Switch ports are used for managing the
physical interface and associated Layer 2 protocols and do not handle routing or bridging.
Configure switch ports by using the
switchport
interface configuration commands. Use the
switchport
command with
no keywords to put an interface that is in Layer 3 mode into Layer 2 mode.
Note:
When you put an interface that is in Layer 3 mode into Layer 2 mode, the previous configuration information related
to the affected interface might be lost, and the interface is returned to its default configuration.
Access Ports
An access port belongs to and carries the traffic of only one VLAN. Traffic is received and sent in native formats with no
VLAN tagging. Traffic arriving on an access port is assumed to belong to the VLAN assigned to the port. If an access port
receives an 802.1Q tagged packet, the packet is dropped, and the source address is not learned. 802.1x can also be
used for VLAN assignment.
Two types of access ports are supported:
Static access ports are manually assigned to a VLAN.
VLAN membership of dynamic access ports is learned through incoming packets. By default, a dynamic access port
is a member of no VLAN, and forwarding to and from the port is enabled only when the VLAN membership of the
port is discovered. UNIs begin forwarding packets as soon as they are enabled. Dynamic access ports on the switch
are assigned to a VLAN by a VLAN Membership Policy Server (VMPS). Dynamic access ports for VMPS are only
supported on UNIs and ENIs.
Trunk Ports
An 802.1Q trunk port carries the traffic of multiple VLANs and by default is a member of all VLANs in the VLAN database.
A trunk port supports simultaneous tagged and untagged traffic. An 802.1Q trunk port is assigned a default Port VLAN
ID (PVID), and all untagged traffic travels on the port default PVID. All untagged traffic and tagged traffic with a NULL
VLAN ID are assumed to belong to the port default PVID. A packet with a VLAN ID equal to the outgoing port default PVID
is sent untagged. All other traffic is sent with a VLAN tag.
Although by default a trunk port is a member of multiple VLANs, you can limit VLAN membership by configuring an
allowed list of VLANs for each trunk port. The list of allowed VLANs does not affect any other port but the associated
trunk port. By default, all possible VLANs (VLAN ID 1 to 4094) are in the allowed list. A trunk port can become a member
of a VLAN only if the VLAN is in the enabled state.
For more information about trunk ports, see
Tunnel Ports
Tunnel ports are used in 802.1Q tunneling to segregate the traffic of customers in a service-provider network from other
customers who are using the same VLAN number. You configure an asymmetric link from a tunnel port on a
service-provider edge switch to an 802.1Q trunk port on the customer switch. Packets entering the tunnel port on the
edge switch, already IEEE 802.1Q-tagged with the customer VLANs, are encapsulated with another layer of an 802.1Q
tag (called the metro tag), containing a VLAN ID unique in the service-provider network, for each customer. The
double-tagged packets go through the service-provider network keeping the original customer VLANs separate from
those of other customers. At the outbound interface, also a tunnel port, the metro tag is removed, and the original VLAN
numbers from the customer network are retrieved.
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...