Return to BSD News archive
Path: sserve!euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!tank.news.pipex.net!pipex!uknet!SoNet!news From: chris@aladdin.net Newsgroups: comp.unix.bsd.freebsd.misc Subject: Problem with ifconfig alias Date: 4 Aug 1995 20:02:43 GMT Organization: Aladdin Internet Lines: 66 Distribution: world Message-ID: <3vtud3$inv@alpha.aladdin.co.uk> NNTP-Posting-Host: me.aladdin.co.uk X-Newsreader: <WinQVT/Net v3.9> Can anyone help explain what is happening in the example below. I need multiple IP addresses on the same interface in order to run multiple www servers. This works fine under Linux but something odd is happening under FreeBSD which I would like to switch to. The system is a clean install of 2.05R, I recompiled the kernel to only use the appropriate devices but havnt changed anything other than the config file. Other than this problem everything seems to be working very well !!. Network card is an NE1000 486 DX 16MB ram IDE hard drive ; a quick look at what the network is now bash# /sbin/ifconfig ed1 ed1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 193.119.96.16 netmask 0xffffff00 broadcast 193.119.96.255 ether 00:00:1b:21:dc:0d bash# /usr/sbin/arp -a wabbit.aladdin.co.uk (193.119.96.16) at 0:0:1b:21:dc:d permanent alpha.aladdin.co.uk (193.119.96.17) at 0:c0:6c:43:88:81 bash# /sbin/ping 193.119.96.55 PING 193.119.96.55 (193.119.96.55): 56 data bytes ^C --- 193.119.96.55 ping statistics --- 6 packets transmitted, 0 packets received, 100% packet loss ; ok we try to add a virtual machine on 193.119.96.55 bash# /sbin/ifconfig ed1 alias 193.119.96.55 ifconfig: ioctl (SIOCAIFADDR): File exists ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Weird error message what file ; try it anyway bash# /sbin/ping 193.119.96.55 PING 193.119.96.55 (193.119.96.55): 56 data bytes ^C --- 193.119.96.55 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss ; nope not working try again. bash# /sbin/ifconfig ed1 alias 193.119.96.55 bash# ; hmm worked that time ? bash# /sbin/ping 193.119.96.55 PING 193.119.96.55 (193.119.96.55): 56 data bytes ping: sendto: Host is down ping: wrote 193.119.96.55 64 chars, ret=-1 ping: sendto: Host is down ping: wrote 193.119.96.55 64 chars, ret=-1 ping: sendto: Host is down ping: wrote 193.119.96.55 64 chars, ret=-1 ^C --- 193.119.96.55 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss ; nope ???? What is going on. Now if I try and ping 193.119.96.55 from another machine on the ethernet it works !! Chris Cain