cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
16529
Views
5
Helpful
3
Replies

Static ARP entry command no worky with vlan

michael.perry
Level 1
Level 1

Anyone know why this happens? I'm trying to enter a static arp entry and assign it to a specific vlan, for example:

arp 192.168.200.1 aaaa.bbbb.cccc arpa vlan 15

                    % Invalid input detected at '^' marker

When this is entered it errors out and marks the word vlan like it is invalid, though it is a valid option when inching forward using the ? help character. I tried multiple iterations and the only other response I get is if I enter vlan 1. To that the router responds with:

Bad ARP command - Interface may only be specified when bridging IP

Is one to assume that the vlan need not be specified? I opted to enter the vlan only for uniformity, but then when it behaved strangely I became curious. I wonder in what scenario adding the vlan to an arp entry would be valid and acceptable.

Thanks, Mike

1 Accepted Solution

Accepted Solutions

Nagaraja Thanthry
Cisco Employee
Cisco Employee

Hello,

What you experienced is the normal behavior. The L3 device does not allow

you to specify the interface when you are operating in routed mode. Based on

the address you have configured, it will automatically allocate the static

ARP entry to appropriate interface. If you have entered an IP that does not

belong to any subnet, then all interfaces will consider that ARP entry. Only

if you configure two interfaces in bridge mode (like in the case of PPPoE

scenarios), then you can specify the interface ID.

Hope this helps.

Regards,

NT

View solution in original post

3 Replies 3

Nagaraja Thanthry
Cisco Employee
Cisco Employee

Hello,

What you experienced is the normal behavior. The L3 device does not allow

you to specify the interface when you are operating in routed mode. Based on

the address you have configured, it will automatically allocate the static

ARP entry to appropriate interface. If you have entered an IP that does not

belong to any subnet, then all interfaces will consider that ARP entry. Only

if you configure two interfaces in bridge mode (like in the case of PPPoE

scenarios), then you can specify the interface ID.

Hope this helps.

Regards,

NT

Dear all

I get the same problem

can anyone tell me how to set static arp for an IP in a vlan on a L3 Cisco switch

arp 192.168.200.1 aaaa.bbbb.cccc arpa vlan 15

Bad ARP command - Interface may only be specified when bridging IP

Tks so much

it can be quite late... but it's just 
arp 192.168.200.1 aaaa.bbbb.cccc arpa

Review Cisco Networking for a $25 gift card