Default SettingFeature
Disabled.IP routing
Disabled.IP subnet-zero
Assigning IP Addresses to Network Interfaces
An IP address identifies a location to which IP packets can be sent. Some IP addresses are reserved for special
uses and cannot be used for host, subnet, or network addresses. RFC 1166, “Internet Numbers,” contains the
official description of IP addresses.
An interface can have one primary IP address. A mask identifies the bits that denote the network number in
an IP address. When you use the mask to subnet a network, the mask is referred to as a subnet mask. To
receive an assigned network number, contact your Internet service provider.
Procedure
PurposeCommand or Action
Enables privileged EXEC mode. Enter your
password if prompted.
enable
Example:
Device> enable
Step 1
Enters the global configuration mode.configure terminal
Example:
Device# configure terminal
Step 2
Enters interface configuration mode, and
specifies the Layer 3 interface to configure.
interface interface-id
Example:
Device(config)# interface gigabitethernet
1/0/1
Step 3
Removes the interface from Layer 2
configuration mode (if it is a physical
interface).
no switchport
Example:
Device(config-if)# no switchport
Step 4
Configures the IP address and IP subnet
mask.
ip address ip-address subnet-mask
Example:
Device(config-if)# ip address 10.1.5.1
255.255.255.0
Step 5
Routing Configuration Guide, Cisco IOS XE Everest 16.6.x (Catalyst 9500 Switches)
60
Configuring IP Unicast Routing
Assigning IP Addresses to Network Interfaces