tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Specify interface for ifconfig
@ 1996-06-07 18:52 Jeff Higgins
  0 siblings, 0 replies; only message in thread
From: Jeff Higgins @ 1996-06-07 18:52 UTC (permalink / raw)
  To: tru64-unix-managers

I see why people consistently marvel at the lightning-fast responses from this 
group!  Many thanks to all who replied. I've acknowledged you below.

My question was how to determine the name of my network interface so that I 
could specify it in ifconfig. I also wondered if anyone else had set up two 
independent web sites with different http servers on the same Alpha. 

The basic solution was to use netstat -i. This displays the interfaces. Common
interface names are ln# (DEC Lance interface) and tu# (DEC Tulip interface).
SLIP (sl#) and loopback (lo#) interfaces will also be displayed. There are two 
other ways to get the answer:

- Display /etc/rc.config, where NETDEV_# is defined as ln# or tu#. 
- Display /var/adm/messages, which contains many of the messages, including 
  configuration, that appear during boot.

My command turned out to be #ifconfig tu0 my.new.ip.address alias

As for setting up the additional Web site under a new http server, two of the
suggestions I recieved are below. The suggestions by some to run the second 
server on a different port is contested in 

            http://www.thesphere.com/~dlp/TwoServers

which explains that the only way to make that work is to include the port 
number in the URL, as DNS will not return port numbers with host lookup.

MULTIPLE SITE/ONE MACHINE SUGGESTIONS:

From: Steve McLaughlin (mclaughl@nssdc.gsfc.nasa.gov)

 I've setup a few of these.  Here' the basics:

 1) Have your DNS people add another ip and name to your harware address.

 2) Setup the following /etc/rc.config entries:

 
   NUM_NETCONFIG="2"  /* default is one */
   
   NETDEV_0="ln0"      /* default      */
   NETDEV_1="ln0"      /* add this one */

   IFCONFIG_0="128.183.101.62 netmask 255.255.0.0"  /* first ip   */
   IFCONFIG_1="128.183.101.63 netmask 255.255.0.0"  /* virtual ip */

 /* reboot and changes will configure */


 3) Add the following to the ~httpd/httpd.conf:

  <VirtualHost 127.0.0.1 Optional>         /* default */
  DocumentRoot /ncf/bolero/pub/www
  ServerName localhost.ncsa.uiuc.edu
  ResourceConfig conf/localhost_srm.conf
  </VirtualHost>


  <VirtualHost 128.183.101.63 >            /* virtual server */
  DocumentRoot /ncf/bolero/pub/www
  ServerName ssdoo.gsfc.nasa.gov 
  ResourceConfig conf/nasa_srm.conf       /* note the different srm.conf */
  </VirtualHost>


 4) Setting DirectoryIndex

  4a) in srm.conf: DirectoryIndex index.html

  4a) in nasa_srm.conf: DirectoryIndex virtual.html


Steve Mclaughlin
mclaughl@nssdc.gsfc.nasa.gov



From: Peter Bivesand <PetBi@UNIT.LiU.SE>

	I'm running that kind of setup without any problems, I even use different
	http-servers on the same machine. Make sure you have configured your
	ethernet-card with ifconfig and that the ip-number you use is registered
	with a A-record in your DNS. It should look something like this:

	
	bive.unit.liu.se.       IN      NS      styra.lidac.liu.se.
	www                     IN      A       130.236.10.70
		                IN      MX      5 mailgw.liu.se
		                IN      HINFO   ALHPA OSF1

	This setup makes my machine (styra.lidac.liu.se) answer to requests to
	www.bive.unit.liu.se. 
	Then you have to configure your www-server. I use Apache (www.apache.org),
	Spinner (www.infovav.se) and Netscape Commerce Server (www.netscape.com).
	The configuration differs a little from server to server, but it very well
	documented in the packages. I recomend Apache, very fast, reliable and
	easy to add different virtual servers.
	This is basics of it. Read the documentation to the servers and you should
	be up and running within the hour.
	Good luck!

Thanks again to everyone who responded!!:

Anonymous <root@vepdl.vafb.af.mil>

Gernot M. Fuchs <gfuchs@golay.med.unc.edu>

R. Kevin Oberman (oberman@es.net)

Walt Melton   (wmelton@iii.com)

Knut Helleboe (Knut.Hellebo@nho.hydro.com)       

Yvon Lauriault <Yvon@InfoServ.nlc-bnc.ca>

Mark E. Glidden <glidden@harvard.edu>

Steve Weber  <sweber@mr.picker.com>

Norbert Kasperczyk-Borgmann  <nkb@informatik.fh-hamburg.de>       |

Steve Mclaughlin  <mclaughl@nssdc.gsfc.nasa.gov>

Peter Bivesand <PetBi@UNIT.LiU.SE>
************************** Original Message *************************

I want to use ifconfig alias to set up a second IP address for an Alpha 1000.
Having inherited this box with no training, I'm still learning such basics as
what devices are installed on it! So, my issue:

I don't know how to determine the name of my network interface in the ifconfig
command. An example pulled off the Web was #ifconfig alias le0. le0 is not a
valid interface in my case.

How can I determine the name? 

Thanks - BTW, if anyone has some experience to share in the setting up of a 
second Web site on one server (one Alpha, two http packages), please enlighten
me!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-06-07 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-07 18:52 SUMMARY: Specify interface for ifconfig Jeff Higgins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox