The man page containing information related to the -arp option can be found on the ifconfig man page
I issue the following command:
sudo ifconfig en0 192.168.28.49 netmask 255.255.0.0 -arp up
Using wireshark I can see the -arp option works properly because there are no arp packets transmitted over the wire.
Then when I try to ping another machine on network I get the following error:
$ ping 192.168.5.10
PING 192.168.5.10 (192.168.5.10): 56 data bytes
ping: sendto: Operation not supported
ping: sendto: Operation not supported
ping: sendto: Operation not supported
It is interesting to note that using wireshark I am able to see ping requests sent from other machines coming into this machine, but ping does not respond. It appears as though once the ifconfig command is issued my network connection can only handle incoming traffic.
I re-issue the ifconfig command to see the network settings:
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010 mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=89e3<UP,BROADCAST,SMART,RUNNING,NOARP,PROMISC,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.28.49 netmask 0xffff0000 broadcast 192.168.255.255
ether 00:23:df:a0:d2:22
media: autoselect (100baseTX <full-duplex,flow-control>) status: active
supported media: none autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,flow-control> 10baseT/UTP <full-duplex,hw-loopback> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,flow-control> 100baseTX <full-duplex,hw-loopback> 1000baseT <full-duplex> 1000baseT <full-duplex,flow-control> 1000baseT <full-duplex,hw-loopback>
en1: flags=8823<UP,BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
ether 00:23:6c:98:fe:f5
media: autoselect (<unknown type>) status: inactive
supported media: autoselect
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr 00:23:df:ff:fe:a0:d2:22
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
It is also interesting to note that if I let everything sit overnight and retry the ping command again in the morning - all appears to work properly.
Any help on how I can get this ifconfig command to work properly is greatly appreciated.