Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am doing some config with a flashed router, someone has provided me with an example using Windows, but I am using a Mac. So, I need to execute the command below on a Mac:

set neighbors "Wireless Network Connection" "192.168.1.1" "F8-B1-11-BF-**-**" 

I tried the linux command

ip neigh add 192.168.1.1 lladdr F8-B1-11-BF-**-** dev en0

but this complained that ip was not a command.


I have a TP-LINK access point that has a custom build of DD-WRT. This is still in testing so there are some issues. One of them being that on installation the LAN MAC is incorrect so I have to log in via wireless (which comes online and I can connect to).

The access point isn't responding properly, so I need to add a static route in the ARP table to link the address 192.168.1.1 to the MAC address of the access point – at least I think.

share|improve this question

migrated from serverfault.com Dec 2 '12 at 6:36

This question came from our site for professional system and network administrators.

    
You probably want the arp command. –  David Schwartz Dec 2 '12 at 7:37
1  
It would help greatly if you told us what it is you're trying to achieve. The questions is far from clear. –  John Gardeniers Dec 2 '12 at 10:37
1  
Hi Alex! Please register your account on Server Fault, then log in using the same account here. Your accounts will be associated with each other and you can post comments, edit your question, etc. –  slhck Dec 2 '12 at 18:12

2 Answers 2

up vote 0 down vote accepted

As long as your wireless interface is configured so 192.168.1.1 is in the local subnet, all you need to do is:

sudo arp -s 192.168.1.1 F8:B1:11:BF:**:** temp

Note that sudo will prompt for your admin password (not the root password if you have set one); it will not echo as you type.

share|improve this answer
    
thanks, that was it, i needed to sudo. –  Alex Edwards Dec 3 '12 at 3:27

Install iproute2 (or whatever your distro calls it) for the ip command. Depending on your distro you may also need to run it as root or with sudo.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.