> : I am using FreeBSD 2.1.0 on a dual-homed pc, one ethernet card (ed0) for
local
> : network xxx.xxx.22.0 and another (ed1) goes to the internet xxx.xxx.228.0.
I
> : set the default route to my internet router at xxx.xxx.228.x. The links in
> : local (Windows 95s) is quite slow, except a Linux box. I think it might
because
> : it's because of wrong route settings. It seems that only one default route
is
> : allowed and I want to know if I can set different default route to each
> : ethernet card. I tried to use route add -net xxx.xxx.22.0 localhost (my
local)
> : but it doesn't work. (I used to use Linux on this pc and in Linux, just add
two
> : default route to different networks and everything goes OK.) I do not want
to
> : enable ip-forwarding and do not run routed. I read the 2.1.0 handbooks
> : and the FAQs but can not find how to do this. Thanks for any suggestions.
> : BTW, it does not seem like a dns problem, I use NIS at local and things are
> : going fine.
> : BTW, 1. does anybody know any FreeBSD mirror site in PRChina has versions
> : greater than 2.1.0? 2. If I use a Linux box with shadow password as a NIS
> : server, can m FreeBSD box run NIS client fine
(/etc/shadow->/etc/master.passwd)?
Quote:> Have no idea what your saying...
> FBSD 1.1.5.1 and up work fine with multiple interfaces.
> You do not add route lines (thats why route add -net xxx.xxx.22.0 localhost
> did not work)
> Basically make your default to the internet.
> and it works perfectly, you can't flub it up.
> Now if you have machines on 22.0 that want access to 228.0
> then you MUST turn on ip.forwarding or it will not work.
> Risner
I think I'll need to make thing clearer.
1. I have two ethernet card on a Freebsd box pc, ed0 to internet ed1 to
local.
2. I found that the local connection is slow and not reliable, while the
internet connection works perfectly.
3. I do not know why, and tried adding static routes and fails.
4. As another case which might has relation with this problem, I also met
some problem during installation. I use ftp installation from a site
inside China. When I set internet-connected netcard to ed1 and local to
ed0, the installation always fails. And the system auto-load some
interfaces which I did not assign, like ppp connection via lpt0. When I
swtich back the ed0 and ed1 setting, it works but not reliable, often
break during the installation. I have to set ONE ed0 to the internet
connection and disabled the ed1, and thus the systems works fine. It
should not be my pc or netcards' problem, since I have running Linux
1.2.x and Linux 2.0.x on it for more than a year and everything works
fine.
Thanks for any further suggestions and best regards,
Department of Computer Science,
Harbin Inst of Tech,Harbin, Heilongjiang 150001, PRChina.