*BSD News Article 76845


Return to BSD News archive

#! rnews 2644 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!qns3.qns.net!imci4!newsfeed.internetmci.com!howland.erols.net!agate!info.ucla.edu!unixg.ubc.ca!rover.ucs.ualberta.ca!scanner.worldgate.com!news.insinc.net!econ4.econnect.net!dave@econnect.net
From: "Matthew Mung" <matthew@econnect.net>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: IP subnet
Date: 24 Aug 1996 23:40:10 GMT
Organization: Matthew Mung
Lines: 47
Message-ID: <01bb9214$c3035f80$53d632cc@matthew.econnect.net>
References: <3219F15C.12DB@jmtech.com>
NNTP-Posting-Host: 204.50.214.83
Mime-Version: 1.0
Content-Type: text/plain; charset=CN-BIG5
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft Internet News 4.70.1132

Hi,

1. use one of the address as the primary address for you ethernet card.
 	assume 3com card and address 205.10.8.254
	eg. ifconfig ef0 inet 205.10.8.254 netmask 255.255.255.224
2. config the secondary as a alias address for your loopback address.
	eg. ifconfig lo0 alias 205.10.5.126
3. add the arpa entry to the system, so it can respond the request for
the secondary address.
	e.g arp -s 205.10.5.126 00:a0:24:xx:xx:xx pub
(you can get the MAC address for your ethernet card by using 
'netstat -i')

However, you only have one interface, so it is not a gateway or
router.  You don't have to run gated.

Matthew Mung ^u^

----------------------------------------------------------------
Matthew Mung ^u^     | eConnect
Network Manager      | Smart Building Advanced Internet Sevices
Phone Language Inc.  | www: http://www.econnect.net/
----------------------------------------------------------------
eConnect Calgary     eConnect Montreal     eConnect Toronto
1-800-826-6137       1-800-826-6135        1-800-826-6131
----------------------------------------------------------------


Tom <tom@jmtech.com> 次寫入到主題 <3219F15C.12DB@jmtech.com>...
> Hi there,
> I am hoping someone can help me on routing of BSDI2.1
> I am trying to subnet a Class C IP set to our local network using 
> BSDI2.1 as the gatway.
> 
> I have chosen an IP range: eg. 205.10.5.97 - 205.10.5.126 subnet mask 
> 255.255.255.224  and I am trying to set the routing table on BSDI2.1 so 
> that it will act for this subnet's gateway. I choose the gateway IP for 
> the subnet to be 205.10.5.126 and the BSDI box IP address is 
> 205.10.8.254. Now there is the problem
> How can I make the BSDI to advertise both IP address (205.10.8.254 & 
> 205.10.5.126) on the same ethernet address? (am I wrong ?)
> I have tried :
> 	ifconfig and route add command with no success. 
> Any suggestion is appreciated.
> 
> Tom
>