801
Configuring IP Unicast Routing
Configuring IP Addressing
DETAILED STEPS
EXAMPLE
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
interface gi0/2
Switch(config-if)#
no switchport
Switch(config-if)#
ip address 10.1.5.1 255.255.255.0
Switch(config-if)#
end
Enabling Subnet Zero
Enabling subnet zero provides the ability to configure and route to subnet 0 subnets.
You can use the all ones subnet (131.108.255.0) and even though it is discouraged, you can enable the use of subnet
zero if you need the entire subnet space for your IP address.
BEFORE YOU BEGIN
Subnetting with a subnet address of zero is strongly discouraged because of the problems that can arise if a network
and a subnet have the same addresses. For example, if network 131.108.0.0 is subnetted as 255.255.255.0, subnet zero
would be written as 131.108.0.0, which is the same as the network address.
Command
Purpose
1.
configure terminal
Enter global configuration mode.
2.
interface
interface-id
Enter interface configuration mode, and specify the
Layer 3 interface to configure.
3.
no shutdown
Enable the interface if necessary. User network
interfaces (UNIs) and enhanced network interfaces
(ENIs) are disabled by default; network node interfaces
(NNIs) are enabled by default.
4.
no switchport
Remove the interface from Layer 2 configuration mode
(if it is a physical interface).
5.
ip address
ip-address
subnet-mask
Configure the IP address and IP subnet mask.
6.
end
Return to privileged EXEC mode.
7.
show interfaces
[
interface-id
]
show ip interface
[
interface-id
]
show running-config interface
[
interface-id
]
Verify your entries.
8.
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Summary of Contents for IE 4000
Page 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Page 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Page 108: ...104 Configuring Switch Clusters Additional References ...
Page 128: ...124 Performing Switch Administration Additional References ...
Page 130: ...126 Configuring PTP ...
Page 140: ...136 Configuring CIP Additional References ...
Page 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Page 192: ...188 Configuring Switch Based Authentication Additional References ...
Page 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Page 298: ...294 Configuring VLANs Additional References ...
Page 336: ...332 Configuring STP Additional References ...
Page 408: ...404 Configuring DHCP Additional References ...
Page 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Page 490: ...486 Configuring SPAN and RSPAN Additional References ...
Page 502: ...498 Configuring Layer 2 NAT ...
Page 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Page 930: ...926 Configuring IP Unicast Routing Related Documents ...
Page 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Page 978: ...974 Dying Gasp ...
Page 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Page 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Page 996: ...992 Ethernet CFM ...
Page 1066: ...1062 Using an SD Card SD Card Alarms ...