*BSD News Article 90855


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.radio.cz!newsbastard.radio.cz!news.radio.cz!CESspool!hammer.uoregon.edu!netnews.net.edu.cn!news.synet.edu.cn!conger!piggie.bbs
From: piggie.bbs@conger (Piggie)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Routing on a dual-homed pc
Date: 12 Mar 1997 23:07:03 GMT
Organization: Harbin Inst of Tech
Lines: 18
Message-ID: <5g7cun$8he@dragon.synet.edu.cn>
Reply-To: wyyang@vilab.hit.edu.cn
NNTP-Posting-Host: conger.neu.edu.cn
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36909

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)?

Weiyi Yang