Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yoyo.aarnet.edu.au!spasun.tpa.com.au!yarrina.connect.com.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!gatech!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!lll-winken.llnl.gov!parc!fenner From: fenner@parc.xerox.com (Bill Fenner) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Two subnets on the same LAN?? Date: 12 May 1995 01:13:04 GMT Organization: Xerox Palo Alto Research Center Lines: 16 Message-ID: <3oucn0$l2m@news.parc.xerox.com> References: <3oqc8k$4v6@nntpd.lkg.dec.com> NNTP-Posting-Host: crevenia.parc.xerox.com In article <3oqc8k$4v6@nntpd.lkg.dec.com>, Andrew Nash <nash@ozy.dec.com> wrote: >We can ping 203.12.21.2, but every time we try to set up a default >route through 203.12.21.2, we get a network not connected message. This is a problem with BSD networking and multiple subnets on one interface. The code in route.c just checks to see if you have an interface on the subnet that the destination is on; it doesn't check to see if you have an interface route to that subnet. At my old job, we modified it to check the routing table instead of the interface table, which is a hack and removes all protection from doing dumb routing things, so isn't really a general solution... I don't get the 4.4 routing code, so I can't help with a code example... Bill