tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Static interface routes for IP address on different subnet doesn't send an ARP who-has



Using -net and -cloning together does the trick:

# route add -net 198.50.219.62/32 -link -cloning -iface vioif0

Destination Gateway Flags Refs Use Mtu Interface 198.50.219.49 52:54:00:40:aa:16 UHLc 0 8 - lo0 => 198.50.219.49/32 link#1 UC 1 0 - vioif0 198.50.219.62 52:54:00:07:a6:f6 UHLc 0 3 - vioif0 => 198.50.219.62/32 link#1 UCS 1 0 - vioif0

-Peter

On 2013-08-22 10:15 AM, David Young wrote:
On Thu, Aug 22, 2013 at 10:04:48AM -0700, Peter Kieser wrote:
I tried the route cloning suggestion to see if it would work for the
/32, on NetBSD 6.1:

# ifconfig vioif0 inet 198.50.219.49 netmask 255.255.255.255
broadcast 198.50.219.49
# route add -host 198.50.219.62 -link -cloning -iface vioif0
add host 198.50.219.62: gateway vioif0
What's the routing table in NetBSD look like at each step?

Hmm, -host doesn't make sense with -cloning.  Perhaps you will get a
different result from 'add -net' instead of 'add -host'?

Dave


--
Peter Kieser <peter%kieser.ca@localhost> / 604.338.9294


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Home | Main Index | Thread Index | Old Index