Why am I not able to put an IP address on the interfaces of the 4-port switch in the router?
I want to be able to configure it like below -
ip address 188.8.131.52 255.255.xxx.xxx
It keeps coming up with it is only a layer 2 port.
Can I change this port to layer 3?
Thank you for your help
Try "no switch port"
if not it is layer-2 port
have a look at this doc
If you are using a HWIC-4ESW in the router, you cannot convert that to L3, they are strictly L2 ports only. Though you could assign IP address on the SVI (switched virtual interface i.e. interface vlan x) if that solves your purpose. What is the objective?
The 4 port hwic do route you just cannot assign an ip address directly to the port. Create a layer 2 vlan and the corresponding layer 3 SVI , which you assign your ip address to . Then assign the hwic switchport into that vlan . Just about the same as a routed port.
router# vlan database
interface vlan 2
ip ADDRESS 184.108.40.206 255.255.255.0
int fast2/1 ---> hwic port#
switchport acess vlan 2 .