198.50.219.49 = Failover IP 198.27.66.254 = Dedicated server gateway IP vioif0 = Ethernet Interface# ifconfig vioif0 inet 198.50.219.49 netmask 255.255.255.255 broadcast 198.50.219.49
# route add -net 198.27.66.254/32 -cloning -link -iface vioif0 # route add default -ifa 198.50.219.49 198.27.66.254So if the documentation were to be updated on the NetBSD site (as I'm sure I'm not the only person that ran into this issue) it would be:
# ifconfig fxp0 inet 10.0.0.1 # route add -net 192.168.0.1/32 -cloning -link fxp0 -iface # route add default -ifa 10.0.0.1 192.168.0.1 Cheers, -Peter On 2013-08-22 11:24 AM, Peter Kieser wrote:
Using -net and -cloning together does the trick: # route add -net 198.50.219.62/32 -link -cloning -iface vioif0Destination 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 vioif0What'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