Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set the ip address of a GigabitEthernet interface on a Cisco MWR 2941 router. I have tried the following:

config t
interface gigabitethernet0/2
ip address

However, I got the error:

IP address may not be configured on L2 links.

How do I configure the port?

share|improve this question
up vote 3 down vote accepted

I just checked the Product Spec for this router. In the list of features I saw this

Built-in Layer 2 Gigabit Ethernet switch supporting line-rate traffic

So the gigabit ports on your router are actually part of a built in switch, layer two devices cannot be configured with an IP address.

What you can do however. Is create a vlan and add those ports to the vlan. The vlan is then given an IP address which I think will help you achieve what you want.

share|improve this answer
Thank you! That's what I want. – Rayne Aug 8 '12 at 7:37

Just try no switchport on the interface and that should do the trick. Some old version dont allow providing IP address on the interfaces directly, so this command should work for your case.

Packet Viewer

share|improve this answer
Could you elaborate on how to do that? – fixer1234 Dec 12 '14 at 6:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .