Routing selectively

2003-11-10 Thread Dimitris Xochellis
Hi list,

In my local network I have two routers that provide
internet services. 

-Can I use them both simultaneously?
-Do I need to have a second ethernet card (And add a
second interface to rc.conf) in order to use them
both? 
-Can I configure my FreeBSD box to use the first
router when I am sending packets to a specific
internet subnet and the second otherwise?
-Any relative Docs or Examples please?

I am using a FreeBSD(i386) 4.8 box.
My current network setup inside the rc.conf is:

ifconfig_rl0=inet X.X.X.2 netmask 255.255.255.0
hostname=me.host.gr
defaultrouter=X.X.X.1
router_enable=NO

Please cc me in case you respond.

Thanks in advance,
Jim Xochellis



Do You Yahoo!?
   @yahoo.grhttp://www.otenet.gr
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Routing selectively

2003-11-10 Thread Charles Swiger
On Nov 10, 2003, at 11:13 AM, Dimitris Xochellis wrote:
In my local network I have two routers that provide
internet services.
-Can I use them both simultaneously?
Yes.

-Do I need to have a second ethernet card (And add a
second interface to rc.conf) in order to use them
both?
No, but it might be easier to configure a sensible network topology 
using two cards.  Otherwise, you can configure a virtual interface 
(ifconfig rl0 alias YYY)...

-Can I configure my FreeBSD box to use the first
router when I am sending packets to a specific
internet subnet and the second otherwise?
Sure.

-Any relative Docs or Examples please?
Normally, one has one default route, which tells all non-local 
traffic to go via your preferred router.  You can add additional routes 
like so:

route add -net 1.2.3.0/24 router1
route add -net 4.5.6.0/24 router2
There are better ways of managing routing than this, including setting 
up BGP/EGP peering with your ISPs, or some other routing protocol 
(OSPF), but this should get you started

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]