Date: Wed, 5 Mar 1997 22:24:14 +0800 (SGT) From: sweeting@tm.net.my To: Adrian Chadd <adrian@obiwan.aceonline.com.au> Cc: questions@freebsd.org Subject: Re: how to : route / routed ? (/kernel arpresolve:can't allocate llinfo) Message-ID: <v01540b10af43a1762285@[111.111.111.110]>
next in thread | raw e-mail | index | archive | help
Adrian, thank you everso much for taking the time to help. >As a general rule, if you are aliasing on the same subnet, then use the >same subnet mask as the 'real' machine IP. > >ifconfig zp0 202.184.153.18 netmask 255.255.255.0 alias that is actually the very first thing i tried to do exactly 24 hours ago (and it is identical to what i use for virtual domains on AIX/OSF) but then i got the following error : ifconfig: ioctl (SIOCAIFADDR) : file exists Thoroughly checking the archives, there were so many postings saying to not use the same netmask but to use 255.255.255.255 . To quote the postings : " Why must you use "netmask 255.255.255.255" and NOT the normal netmask ?" "A netmask of 255.255.255.255 is required because a route already exists for that network (the address the interface was orginally configured with) so you need to establish a HOST route, not a network route." And that was the beginning of my troubles..... Anyway, i've decided to go back to what you suggested (especially since i am coincidentally going to run 3 IPs on one 486 sx 33 ) . I still get the ioctl (SIOCAIFADDR) error but for all intents and purposes, the virtual domains are working..... so i can live with that little feature. >route add -host 202.184.153.18 127.0.0.1 (so it can resolve for itself >*grin*) .. I run 3 virtual webservers at home on a 486 dx 33 and it runs >like a charm (after plenty of fiddling> :) > Thank you for the tip on route too..... i still don't really understand the routing but the end justifies the means and it is all working now i hope. Cheers Chas ps. after a sleepless nite (literally) i now have the exact same configuration as 24 hours ago. >> Whenever i try to create an IP alias with the following : >> # ifconfig zp0 202.184.153.18 netmask 255.255.255.255 alias >> >> I receive : >> #word routed[50]:punt RTM_ADD without a gateway >> #word routed[50]:possible netmask problem between >> zp0:202.184.153.18/32 and zp0:202.184.153.0/24 >> #word /kernel:arp_rtrequest:bad gateway value >> >> then i get the : >> " /kernel arpresolve:can't allocate llinfo for 202.184.153.18 " error when >> i try to ping >> the virtual domain. >> >> Does anyone know how to cure this ? >> >> Apparently, my routing tables are screwed : but i used this in >>/etc/sysconfig = >> >> hostname=word.com.my >> defaultdomainname=NO >> tcp_extensions=YES >> network_interfaces="zp0 lo0" >> ifconfig_lo0="inet localhost" >> ifconfig_zp0="inet 202.184.153.84 netmask 0xffffff00" >> static_routes="" >> defaultrouter=202.184.153.1 >> router="routed" >> routerflags=-q >> namedflags="-b /etc/namedb/named.boot" >> gateway=NO >> firewall=NO >> >> >> is any of this wrong ????? >> why is it such a pain on FreeBSD and so easy on AIX / OSF etc ??? >> >> any help whatsoever much appreciated. >> >> tia, >> >> chas >> >> >> ps. if it helps = >> >> - running secondary name server on this FreeBSD box. >> - zp0 is my interface which is a 3com pcmcia ethernet >> - initial IP = word.com.my = 202.184.153.84 >> - virtual IP = models.com.my = 202.184.153.18 >> >> ==== results of netstat -r ===== >> Routing tables >> >> Internet: >> Destination Gateway Flags Refs Use >> Netif Expire >> default 202.184.153.1 UGc 0 0 zp0 >> localhost localhost UH 0 1 >> lo0 >> 202.184.153 link#2 UC 0 0 >> 202.184.153.1 link#2 UHLW 1 0 >> neuronet 0:0:f8:21:2b:74 UHLW 0 90 >>zp0 1175 >> 202.184.153.18 202.184.153.18 UH 0 0 zp0 => >> 202.184.153.18/32 link#2 UC 0 0 >> love 0:c0:4f:db:17:23 UHLW 0 59 zp0 >> 686 >> >> >> >> >> >> >> >> >>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v01540b10af43a1762285>
