cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
189
Views
1
Helpful
3
Replies

% IP addresses may not be configured on L2 links.

REGOLAZ
Level 1
Level 1

Hi,

Have a great day!

I'm Heshan Yasas Kavinda and I am studying CCNA, I Have a CISCO 1905 k9 Router with an EHWIC 4ESG 4 Port Card.

when I assign their IP address for the port it says "% IP addresses may not be configured on L2 links."

TesTR1#show ip Interface Brief
Interface IP address OK? Method Status Protocol
Embedded-Service-Engine0/0 unassigned YES unset administratively down down
GigabitEthernet0/0 192.168.2.254 YES manual down down
GigabitEthernet0/1 192.168.1.100 YES DHCP up up
Serial0/0/0 unassigned YES unset administratively down down
GigabitEthernet0/1/0 unassigned YES unset down down
GigabitEthernet0/1/1 unassigned YES unset down down
GigabitEthernet0/1/2 unassigned YES unset down down
GigabitEthernet0/1/3 unassigned YES unset down down
NVI0 192.168.1.100 YES unset up up
Vlan1 unassigned YES unset down down
TesTR1#
above mentioned in red color ports are the EHWIC 4ESG pors these are the ports that I want to assign the IPs.

TesTR1(config)#interface gig
TesTR1(config)#interface gigabitEthernet 0/1/0
TesTR1(config-if)#ip add
TesTR1(config-if)#ip address 192.168.5.10 255.255.255.0

% IP addresses may not be configured on L2 links.

TesTR1(config-if)#

It says Can not able please help me to solve this matter.

best regards 

Heshan Yasas Kavinda

Best Regards
Heshan Yasas Kavinda
3 Replies 3

TesTR1(config)#interface gig
TesTR1(config)#interface gigabitEthernet 0/1/0
TesTR1(config-if)#no switchport 
TesTR1(config-if)#ip address 192.168.5.10 255.255.255.0

mohamedlamine
Level 1
Level 1

you have to add the commande "no switchport" under the interface before assigning ip addresse  

Heshan Yasas Kavinda

While  gigabitEthernet 0/0 and  gigabitEthernet 0/1 are layer 3 interfaces and can successfully be configured with IP addresses,  gigabitEthernet 0/1/0 is part of a switch module. And as such it functions as a layer 2 interface. As such attempts to configure IP address on the interface will fail. As other have pointed out configuring the interface with no switchport is one way to assign an IP address.

HTH

Rick
Review Cisco Networking for a $25 gift card