From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e3c941599280c497 X-Google-Attributes: gidfee84,public From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) Subject: Re: Ethernet with virtual interfaces? Date: 1999/02/25 Message-ID: <7b415q$824@ds2.acs.ucalgary.ca>#1/1 X-Deja-AN: 448375820 References: <36D4696B.CE581751@uleth.ca> <7b1uu5$m5i@ds2.acs.ucalgary.ca> <36D49CEF.160BEEDF@uleth.ca> Organization: The University of Calgary Newsgroups: comp.unix.osf.osf1 Jeffrey L. Oliver (jeff.oliver@uleth.ca) wrote: : The second way that I tried this was from the console. I entered the : following command: : ifconfig ln0 inet 10.10.37.252 netmask 255.255.224.0 broadcast 10.10.63.255\ : alias 10.10.37.253 netmask 255.255.224.0 : In both cases, when I apply the changes and look at the ifconfig entry : for ln0, I get the following: : # ifconfig -a : ln0: flags=c63 : inet 10.10.37.252 netmask ffffe000 broadcast 10.10.37.253 ipmtu 1500 This appears to be a bug in unpatched DU 4.0D. You cannot configure the interface and set IP alias in the same ifconfig statement. Try doing it in two steps: ifconfig ln0 inet 10.10.37.252 netmask 255.255.224.0 broadcast 10.10.63.255 ifconfig ln0 alias 10.10.37.253 and it should work. In order to make this come up automatically on the next reboot, simply place the second ifconfig command line in /etc/inet.local If you want to provide any services through the IP alias, any daemons providing these services should be started *after* you add the alias, or they may fail to respond to requests arriving at the alias IP number. This also applies to services started out of inetd. The /etc/inet.local solution will set alias and start daemons in the right order. If you want to provide NFS via the alias, you should be aware that to the best of my knowledge NFS locking will not work. Regards, /Serge.P