From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076333621252.tru64-unix-managers.marc@archive.invalid> From: Jeff Higgins Date: Fri, 07 Jun 1996 18:52:37 +0000 To: tru64-unix-managers Subject: SUMMARY: Specify interface for ifconfig X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076333621252 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: /* default */ DocumentRoot /ncf/bolero/pub/www ServerName localhost.ncsa.uiuc.edu ResourceConfig conf/localhost_srm.conf /* virtual server */ DocumentRoot /ncf/bolero/pub/www ServerName ssdoo.gsfc.nasa.gov ResourceConfig conf/nasa_srm.conf /* note the different srm.conf */ 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 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 Gernot M. Fuchs R. Kevin Oberman (oberman@es.net) Walt Melton (wmelton@iii.com) Knut Helleboe (Knut.Hellebo@nho.hydro.com) Yvon Lauriault Mark E. Glidden Steve Weber Norbert Kasperczyk-Borgmann | Steve Mclaughlin Peter Bivesand ************************** 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!