42
Configuring Interfaces
Configuring Layer 3 Interfaces
Configuring Layer 3 Interfaces
The switch must be running the IP services image to support Layer 3 interfaces:
SVIs: You should configure SVIs for any VLANs for which you want to route traffic. SVIs are created when you enter
a VLAN ID following the
interface vlan
global configuration command. To delete an SVI, use the
no interface vlan
global configuration command. You cannot delete interface VLAN 1.
When you create an SVI, it does not become active until it is associated with a physical port.
Routed ports: Routed ports are physical ports configured to be in Layer 3 mode by using the
no switchport
interface
configuration command.
Layer 3 EtherChannel ports: EtherChannel interfaces made up of routed ports.
A Layer 3 switch can have an IP address assigned to each routed port and SVI.
There is no defined limit to the number of SVIs and routed ports that can be configured in a switch. However, the
interrelationship between the number of SVIs and routed ports and the number of other features being configured might
have an impact on CPU usage because of hardware limitations. If the switch is using maximum hardware resources,
attempts to create a routed port or SVI have these results:
If you try to create a new routed port, the switch generates a message that there are not enough resources to convert
the interface to a routed port, and the interface remains as a switch port.
If you try to create an extended-range VLAN, an error message is generated, and the extended-range VLAN is
rejected.
If the switch attempts to boot up with a configuration that has more VLANs and routed ports than hardware can
support, the VLANs are created, but the routed ports are shut down, and the switch sends a message that this was
due to insufficient hardware resources.
All Layer 3 interfaces require an IP address to route traffic. This procedure shows how to configure an interface as a Layer
3 interface and how to assign an IP address to an interface.
Note:
If the physical port is in Layer 2 mode (the default), you must enter the
no switchport
interface configuration
command to put the interface into Layer 3 mode. Entering a
no switchport
command disables and then re-enables the
interface, which might generate messages on the device to which the interface is connected. Furthermore, when you put
an interface that is in Layer 2 mode into Layer 3 mode, the previous configuration information related to the affected
interface might be lost, and the interface is returned to its default configuration
Beginning in privileged EXEC mode, follow these steps to configure a Layer 3 interface:
Command
Purpose
1.
configure terminal
Enter global configuration mode.
2.
interface
{{
fastethernet
|
gigabitethernet
}
interface-id
} |
{
vlan
vlan-id
} | {
port-channel
port-channel-number
}
Specify the interface to be configured as a Layer 3
interface, and enter interface configuration mode.
3.
no shutdown
Enable the port, if necessary. By default, UNIs and ENIs
are disabled, and NNIs are enabled.
4.
no switchport
For physical ports only, enter Layer 3 mode.
5.
ip address
ip_address subnet_mask
Configure the IP address and IP subnet.
6.
no shutdown
Enable the interface.
Содержание 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 ...