Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!soggy.eis.net.au!not-for-mail From: ernie@eis.net.au (Ernie Elu) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: I can't forward packets Date: 22 Jul 1996 13:08:31 GMT Organization: eis.net - Brisbane - Australia Lines: 33 Message-ID: <4svugf$rif@soggy.eis.net.au> References: <31F3228F.DF4@ssrnet.snu.ac.kr> NNTP-Posting-Host: tinny.eis.net.au X-Newsreader: TIN [UNIX 1.3 950515BETA PL0] Lee SeungWon (leesw@ssrnet.snu.ac.kr) wrote: : I want to forward packets between ethernets. : I use FreeBSD-2.1.0 and I have two SMC Elite16 cards. : I change "/etc/sysconfig". : This is changing part of the file. : ... : network_interfaces "ed0 ed1 lo0" : ifconfig_ed0="inet 147.46.121.62 netmask 255.255.255.0" : ifconfig_ed1="inet 147.46.121.73 netmask 255.255.255.0" : ifconfig_lo0="inet localhost" : ... : routedflags="-s" : ... : gateway=YES : ... You will have to use a tighter netmask than what you are using, your example above would make both interfaces thing that they are in the same subnet. That could account for the errors as both cards would think there were on the same ethernet segment. Also as a diagnostic try typing routed -s at the command line and it will give you an error if i/p forwarding is not on. Make sure you first kill any copies of routed that are already running. Try 255.255.255.248 for your netmask, that will give you eight address in each subnet (6+network+broadcast). - Ernie. _____________________________________________________________________ Ernie Elu - ernie@eis.net.au - Brisbane - Australia "I ping, therefore I am." _____________________________________________________________________