*BSD News Article 29986


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!ihnp4.ucsd.edu!usc!nic-nac.CSU.net!charnel.ecst.csuchico.edu!olivea!grapevine.lcs.mit.edu!ginger.lcs.mit.edu!wollman
From: wollman@ginger.lcs.mit.edu (Garrett Wollman)
Newsgroups: comp.os.386bsd.questions
Subject: Re: /etc/ethers, multiple IPs, and other strange questions...
Date: 2 May 1994 21:03:01 GMT
Organization: MIT Laboratory for Computer Science
Lines: 40
Message-ID: <2q3pq5$6n8@GRAPEVINE.LCS.MIT.EDU>
References: <1994May1.201807.16393@news.csuohio.edu> <JKH.94May1232638@whisker.hubbard.ie> <Cp6LuB.I63@world.std.com>
NNTP-Posting-Host: ginger.lcs.mit.edu

In article <Cp6LuB.I63@world.std.com>,
Brian J McGovern <mcgovern@world.std.com> wrote:

>1.) Is it possible to have a single ethernet interface (ie - ed0)
>support multiple IP addresses. The reason is that my company is
>finally going from an "in-house" IP set to one that is compliant with
>the Internet, and we would like to run for a time where both the old
>and new IPs are recognized.

Sure.  `man ifconfig'.

>2.) If I were to take the time to set up /etc/ethers, is there
>anything that I would have to do or add so that I could use my system
>to serve my clients their "appropriate" IP addresses. Again, this
>realates to the change mentioned above.

I don't think anything actually uses /etc/ethers, so it would be
pretty pointless.  In later versions of FreeBSD, we provide a BOOTP
daemon which can be used for this purpose.

>3.) Could anyone send me some C code that uses stty and gtty (the functions -
>or more accurately, the macros) to set different terminal aspects. I'm most
>interested in CBREAK, and I can't quite seem to get it to work...

Don't use them.  Use tcgetattr() and tcsetattr(), and the constants in
<termios.h>.  The mode you want is ICANON off and ISIG on, plus you
want to fiddle with c_cc[VMIN] and [VTIME] (which didn't work in 1.0.2
but do now).

>4.) Has FreeBSD 1.1 been released yet?

Soon.

-GAWollman

-- 
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant