Static Configuration

Consider a Multilayer Switch:

 

First, we need to check whether an interface is a layer 2 port or a layer 3 port.

show interfaces f0/1 switchport

 

Switch port: Enabled means that the port is currently a layer 2 port. To change the interface from a layer 2 switch to a layer 3 switch:

int f0/1
no switchport exit

Providing IP address to an interface:

int f0/1
ip add 192.168.1.1 255.255.255.1

 

Checking if an IP address has been provided to the interface

show ip int br | ex unassigned

 

Configure IP Address for Interface in Cisco Switches

To configure an IP Address on a switch interface, first, we must change the interface from a layer 2 interface to a layer 3 interface. A point to note is that to provide an IP Address to a switch interface, the switch first must be a Multilayer Switch and all ports of an MLS is layer 2 by default. There are two ways to configure an IP address to a switch interface that is given below:

Similar Reads

Static Configuration:

Consider a Multilayer Switch:...

Dynamic Configuration:

Consider this topology:...

Simulation of the DORA Process:

...