Date: Wed, 11 Feb 1998 14:14:20 +1100 (EST) From: Anthony Hill <ahill@blacksun.net.au> To: questions@FreeBSD.ORG Subject: subnet alias for ethernet device wont work Message-ID: <Pine.BSF.3.95q.980211134341.20191B-100000@blacksun.net.au>
next in thread | raw e-mail | index | archive | help
Sorry for bringing up such a basic problem, but this is starting to drive me nuts. I am using a FreeBSD 2.2.1-RELEASE #0 box as a router and server for my local network, and have been assigned a /26 subnet (210.8.131.128/26) by my employer. I have assigned a few numbers to various hosts on the network and everything seems to be routing fine. However I need to bind a few more addresses to the FreeBSD box (for virtual web servers) and dont seem to be able to get them to work. eg :- bash# ifconfig ed1 ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 210.8.131.129 netmask 0xffffffc0 broadcast 210.8.131.191 ether 00:00:01:30:53:91 bash# ..ok 210.8.131.129 is the primary address of the router/server and works fine. So now I try to add another address to the ethernet card :- bash# ifconfig ed1 inet 210.8.131.132 netmask 0xffffffc0 alias ifconfig: ioctl (SIOCAIFADDR): File exists bash# ifconfig ed1 ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 210.8.131.129 netmask 0xffffffc0 broadcast 210.8.131.191 inet 210.8.131.132 netmask 0xffffffc0 broadcast 210.8.131.191 ether 00:00:01:30:53:91 bash# ..so aside from the "ifconfig: ioctl (SIOCAIFADDR): File exists" message (anyone know what it means?), that seemed to work fine. However, I cant ping the new address. :- bash# ping 210.8.131.132 PING 210.8.131.132 (210.8.131.132): 56 data bytes ^C --- 210.8.131.132 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss bash# Now when working with full class C's, this is all I've had to do, so now I'm on unfamilar ground, but think maybe its a problem with routed ? route shows this :- bash# route get 210.8.131.132 route to: 210.8.131.132 destination: 210.8.131.132 interface: ed1 flags: <UP,HOST,DONE,LLINFO,WASCLONED> recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 16384 16384 0 0 0 0 1500 -116 bash# ..and netstat shows :- bash# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 203.63.80.135 UGSc 37 28832 tun0 127.0.0.1 127.0.0.1 UH 0 125 lo0 202.21.8.125 127.0.0.1 UH 0 25134 lo0 203.63.80.135 202.21.8.125 UH 35 0 tun0 210.8.131.128/26 link#1 UCc 4 0 210.8.131.129 0:0:1:30:53:91 UHLW 2 70034 lo0 You have mail in /var/mail/ahill bash# ..so can someone please tell me what I am missing ? Thanks in advance Anthony Hill btw. Please reply to the "from" address as Im not subscribed to the list, and my news feed sucks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.980211134341.20191B-100000>