# ifconfig vioif0 inet 126.96.36.199 netmask 255.255.255.255 broadcast 188.8.131.52
# route add -host 184.108.40.206 -link -cloning -iface vioif0 add host 220.127.116.11: gateway vioif0 # ping 18.104.22.168 PING 22.214.171.124 (126.96.36.199): 48 data bytesarplookup: unable to enter address for 188.8.131.52@ff on null (could not allocate llinfo)
arpresolve: can't allocate llinfo on vioif0 for 184.108.40.206 ^C ----220.127.116.11 PING Statistics---- 1 packets transmitted, 0 packets received, 100.0% packet lossAs for FreeBSD 9.1, here is the output of "route -n monitor" when I add the static interface route for the gateway:
# route -n monitor got message of size 224 on Thu Aug 22 16:55:41 2013RTM_ADD: Add Route: len 224, pid: 706, seq 1, errno 0, flags:<UP,HOST,DONE,STATIC>
locks: inits: sockaddrs: <DST,GATEWAY> 18.104.22.168 em0:22.214.171.124.aa.16And an output of "netstat -rn" from the host (please excuse any formatting issues, I am running this under qemu as VNC since I don't have SSH access to the host when I'm doing this):
# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 link#3 UH 0 4 lo0 126.96.36.199 link#2 UHS 0 0 lo0 => 188.8.131.52/32 link#2 U 0 0 em0 184.108.40.206 52:54:00:40:aa:16 UHS 0 4 em0 .. (Output omitted as it's IPv6)I can also change the MAC address of the Gateway, and FreeBSD updates it after the ARP timeout period.
-Peter On 2013-08-22 9:39 AM, Greg Troxel wrote:
You should look at the actual routes in the kernel on FreeBSD, with route -n monitor, and understand all the flags and sockaddrs. Please also send the result of 'netstat -nr' on FreeBSD. As David suggests, you may need a /32 cloning route. Sorry, but you are basically doing something that does not conform to Internet standards, and that will probably require some code reading. I think we'd be inclined to take a change that enables doing this (assuming it doesn't break other things), and it's quite possible that kernel code changes will be required. I would also suggest looking through the history of FreeBSD to see if they made an explicit change to support this multiple-/32-on-a-wire case.
Description: S/MIME Cryptographic Signature