On 13 Dec 22:11, James Bensley wrote:
Evening all, I posted this on another mailing list but I think there are a couple here that might be able to help. I am struggling to get the syntax right to add an equal-cost multi-path route under BSD and wondered if anyone out there could correct my mistake? I'm running FreeBSD 8.1 (actually its pfSense 2.0 Beta 4!). I have a virtual sand box on the go, I'm trying for something along the lines of:
route add -net 0.0.0.0/32 equalize nexthop via 192.168.0.1 nexthop via 192.168.0.2
With the intention of balancing per-packet across each of these gateways except I get this error instead:
route: writing to routing socket: Network is unreachable add net 0.0.0.0: gateway equalize: Network is unreachable
I'm rather tired, this stupid box has no man pages, so I stabbed again with:
route add -net 0.0.0.0/32 via 192.168.0.1 via 192.168.0.2 equalize route: bad address: via
Is that supposed to be setting the default route?
Cos, 0.0.0.0/32 isn't going to match much... I don't know many machines with the IP of 0.0.0.0...
You might want to try: route add -net 0.0.0.0/0 equalize nexthop via 192.168.0.1 nexthop via 192.168.0.2
But I'm not entirely sure that's how BSD routing works... I haven't currently got a FreeBSD box to mess with.
Clearly my syntax is way out, but I'm tired and stuck for ideas. Anyone have clue to spare?
-- Regards, James.
http://www.jamesbensley.co.cc/
There are 10 kinds of people in the world; Those who understand Vigesimal, and J others...?
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!