From owner-freebsd-hackers Wed Dec 20 03:07:57 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA14380 for hackers-outgoing; Wed, 20 Dec 1995 03:07:57 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id DAA14372 for ; Wed, 20 Dec 1995 03:07:54 -0800 (PST) Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.64]) by who.cdrom.com (8.6.12/8.6.11) with SMTP id DAA15790 for ; Wed, 20 Dec 1995 03:07:47 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id an18626; 20 Dec 95 11:05 GMT Received: from wbsmail.zipmail.co.uk ([194.70.221.1]) by relay-3.mail.demon.net id aa28026; 20 Dec 95 11:03 GMT Received: from PhilPC (ppp2.zipmail.co.uk [194.70.221.12]) by wbsmail.zipmail.co.uk (8.6.12/8.6.9) with SMTP id LAA11313; Wed, 20 Dec 1995 11:03:49 GMT Message-Id: <199512201103.LAA11313@wbsmail.zipmail.co.uk> Comments: Authenticated sender is From: Phil Taylor Organization: Lan Systems To: Hussein Kanji Date: Wed, 20 Dec 1995 10:58:34 +0000 Subject: Re: Virtual hosting (probably a FAQ) Reply-to: phil@zipmail.co.uk CC: hackers@freebsd.org X-Confirm-Reading-To: phil@zipmail.co.uk X-pmrqc: 1 Priority: normal X-mailer: Pegasus Mail for Windows (v2.10) Sender: owner-hackers@freebsd.org Precedence: bulk > : in /etc/netstart there is a mechanism which allows this and is a bit > : cleaner than rc.local, simply create a shell file called > : /etc/start_if.{interface name} and it will be called at boot up ! > > What did you name the start_if file? Something like /etc/start_if.ep0? Yes, it will be called /etc/start_if.xxx xxx being ed0/ed1/ep0/ep1/lnc0/lnc1 etc etc If you are using a 3c509 (ep) the LINT file for 2.1R tells me this is a BUGGY driver, maybe someone can point out what the bugs are :-( > > And what did you put in it? Could you email me the contents or tell me > what is in it? > the /etc/start_if.edx file should have something like this : #!/bin/sh ifconfig edx alias xxx.xxx.xxx.xxx netmask 0xffffffff also, since I wrote that I have remembered that I also usually make a change to /etc/netstart, this seems to be a bit of a bug in the file, namely that it doesn't pull in the file correctly,(or maybe I am doing something wrong !!!) after the lines : # Set up all the network interfaces, calling startup scripts if needed for ifn in ${network_interfaces};do if [ -e I had to change this (to get it to work) to if [ -f I'm not sure why (don't know what the -e flag is) Also the interface is configured in the wrong order (or it seems to be) you need to put the : eval ifconfig_args xxxxx line and the two ifconfig ${ifn} lines BEFORE it pulls in the /etc/start_if.edx file for that interface. This seems to be because the interface aliases get over-written by the standard configuration so you need to configure the aliases AFTERWARDS. This is probably not the best way to do this so I have copied this message to hackers and I will see if anyone comes up with a better suggestion. Otherwise maybe my suggested changes could be put into /etc/netstart as this is one of the first things that I do when I set up a new FreeBSD machine. I hope that this helps Cheers Phil Taylor phil@zipmail.co.uk