SUMMARY: two network interface on the same host (two network)

From: Bruce Cheng (bcheng@corio.com)
Date: Fri Dec 10 1999 - 17:24:35 CST


Thanks for the following replies:
"German, Vinnie" <VGerman@nomurany.com>
"Ameet Chaubal" <ameet.chaubal@air2web.com>
John Bonura <johnb@univ-wea.com>
"Jose R. Montilla" <Jose.Montilla@Eng.Sun.COM>
 "John Sullivan" <jsullivan@netgenics.com>
"Pyne, Jeffrey" <Jeffrey.Pyne@schwab.com>
Reichert, Alan" <aareichert@tasc.com>
 prd@employees.org (Patrick R. Demorais)
"Brion Leary" <brion@dia.state.ma.us>
David Lew <dlew@jps.net>
Adrian Stovall <adrians@solarsystems.com>

Here is a summary of the answers:

To have the system automatically configure hme1 (for example), create an
/etc/hostname.hme1 file (that just has the name associated with hme1 in
it)
and put the name/IP address pair in /etc/hosts (or DNS or NIS, or
whatever
you use). You also set up the netmask in /etc/netmasks. Then the OS
will
configure the interface automatically at boot time. This is done in
/etc/rcS.d/S30rootusr.sh.

        1. vi your /etc/hosts and make an entry
                bakcupsvr xxx.xxx.xxx.xxx
        2. vi /etc/hostname.hme1 (or whatever kind of interface you
have)
                backupsrvr
        3. vi /etc/networks and make an appropriate entry
add it's netmask to /etc/netmasks

Bruce Cheng wrote:
>
> Hi,
>
> Q) I have two network interface on a host. one primary interface and one
> goes to a secondary network for backup function.
>
> i know how to bring up manually via ifconfig of the second interface.
>
> How should I bring it up automatically everytime it boots up?
> should I create a script in /etc/rc2.d S9xbackupnet to bring it up
> or is there a more typical way of doing it?
>
> Thanks
> -Bruce
>
> --
> Bruce Cheng
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com

-- 
Bruce Cheng
email: bcheng@corio.com			Address: 700 Bay Road,Redwood City,CA 94063
phone: 650-298-5049 pager: 650-423-9639




This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:34 CDT