NM-16ESW-1G1G module installed on router

Unanswered Question
Aug 24th, 2008
User Badges:

Hello ,

when installed a NM-16ESW module on cisco 3745 router ,the ports are considered switch ports ,because i got a msg:"% IP addresses may not be configured on L2 links." when i tried to give IP address for an interface on the module.

so , i created a VLAN 2 interface and assigned it an IP and added switchport to this VLAN 2.

am i doing right???

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
faisal_ghaus Sun, 08/24/2008 - 23:05
User Badges:


You can configure each interface for routing with no switchport command

Conf t

interface x/x

no switchport

this is the easieast way

amino1982 Mon, 08/25/2008 - 03:57
User Badges:


unfortunately ,this didn't work well on cisco 3745 router ,it does not accept the command "no switchport " ->incomplete command . I issued the command "no switchport mode" and "no switchport access vlan1"

but also it gives the same message that can't configure IP on L2 interfaces !!

Jon Marshall Mon, 08/25/2008 - 04:13
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN


According to the Etherswitch Q&A your module should support routed ports. The HWIC's don't, they need to have vlan interfaces created but that is not what you have

Q. Can I configure the switch interfaces as Layer 3 ports?

A. The Cisco EtherSwitch network module and service module interfaces can be configured directly as Layer 3, or routed, ports by using the no switchport command and assigning an IP address directly to the port. Cisco Switchports on the HWIC do not support Layer 3 addresses natively; they must be assigned to a SVI and use a VLAN interface for Layer 3. Every switch port can be assigned to a unique VLAN, up to 15 VLANs maximum.

So it's a bit confusing as to why it doesn't work. Have a look at the following link (if you haven't already) for more info


Alternatively in answer to your question you can

1) Create the vlan in the vlan database

2) Create a L3 vlan interface for that vlan

3) Assign switchports into that vlan.

The fact that you also cannot use the "switchport access vlan ..." command suggests however you may be in the wrong mode.

Are you sure you are configuring from the interface level ?


amino1982 Tue, 08/26/2008 - 04:33
User Badges:


see below ....

(config)#interface fastEthernet 4/1

(config-if)#no switchport

% Incomplete command.

(config-if)#no switchport MODE

(config-if)#no switchport access vlan 1

(config-if)#ip address

% IP addresses may not be configured on L2 links.


now i defined VLAN2 and assigned it an IP address and added the port as follws:

(conf-IF)#switchport access Vlan2

i see the interface up/up but the VLAN is up/down what is the status ?

glen.grant Tue, 08/26/2008 - 04:37
User Badges:
  • Purple, 4500 points or more

Did you create vlan 2 in the vlan database ?

amino1982 Tue, 08/26/2008 - 21:29
User Badges:


No, i just created it as interface , how to do this ,and please what is all the necessary so that my interface becomes have an IP and UP/UP?


amino1982 Tue, 08/26/2008 - 22:50
User Badges:


Finally ,it worked

what i did is true

just define a VLAN ,assign it an ip address

and add this port to that VLAN

it is OK !

Thnx all for help


This Discussion