Hai Mr. Stuart Henderson,

Thanks for the hint on -mpath.

I am just trying to get the internal to external. I had two ISP, and
when I try to route add default at the second time I got
route: writing to routing socket: File exists
add net default: gateway 10.10.10.2: File exists

So I am wondering how do I send out traffic to the ISP if I don't
have routing.

I know that I can use PF to route the internal to external traffic.
I thought that I need routing in order to use PF.

I mean to say that I can't use OpenOSPFD and OpenBGPD.
My mistake. Sorry for the inconvenience. The ISP will not
support it, the only can support static route from us and from
them to us.

Best regards and thanks.
Riwan

At 03:24 PM 3/26/2007 +0100, Stuart Henderson wrote:
On 2007/03/26 20:33, riwanlky wrote:
> I have two ISP, and wondering how should I setup the default
> route to the ISP.

you need to give a lot more information about what you're trying
to do to get a useful answer.

how are you connecting to them?

how do they know how to route packets to you?

do you have your own address space or are you using your space
from your providers?

if you're using provider address space, will they allow you
to send them packets with somebody else's source address?

> I am wondering if I have two gateway going to the same route can I use
> metric?
> route add 0.0.0.0/0 192.168.6.1 10
> route add 0.0.0.0/0 192.168.6.2 100

OpenBSD doesn't use metrics like this in the routing table,
you can do something similar with PF load-balancing or 'probability'

There is equal-cost multipath support but unless I missed
something, it's not supported by the routing daemons yet,
you can use it with static routes using -mpath, see route(8)

> I can used OpenOSPFD or OpenBGPD.

will your ISPs listen to your announcements?

realistically, I think if you are going to be able to handle
running BGP with your providers, you probably wouldn't be asking
this question.

Reply via email to