Date: Wed, 07 May 2003 13:27:46 +0200 From: "Ronald Weinrich" <freebsd@werosoft.com> To: freebsd-questions@freebsd.org Subject: Re: no route to host Message-ID: <3EB909D2.28350.968671F@localhost> In-Reply-To: <200305071245.05490.danny@ricin.com> References: <3EB8E570.5774.8DA49D3@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Danny Pansters, thank you for clearing me up so that means 213.47.28.166/32 is only ip 213.47.28.166 if try to create a static route from 192.168.0.0/16 to my dns1 on 213.47.28.162/32 I have to add to my rc.conf static_route="dns" route_nds="-net 192.168.0.0/16 213.47.28.162/32" --------- ip xx.xx.xx.xx MY ROUTER --------- 213.47.28.161 is gw for ..162 and 163 | | --------www dns1 xx.xx.xx.162 | --------dns2 xx.xx.xx.163 | | --------- ed0 xx.xx.xx.166 freebsd-box ipnat should run here :) (ipfilter) later may be ;) --------- ep0 192.168.0.1 gw for intra 192.168.0.xx ^ ^ 192.168.0.0/16 correct ? thank you ron > No. 213.0.0.0/8 would mean a whole class A netblock. The number 8 means 8 bits > for the subnet part (starting from left, which is only the first byte, or 8 > bits) and 24 bits for the host part. So this is a subnet that can have ~ 16 > million hosts. More precisely the 213.47.28.160/8 describes what can be > called host 47.28.160 on that huge subnet (supernet really). > > In contrast, 213.47.28.166 with a 255.255.255.240 mask is 213.47.28.166/28. So > your gateway is host number 6 on the 213.47.28.160/28 subnet, 213.47.28.160 > being the network address, 213.47.28.175 being the broadcast address and the > 14 numbers inbetween can be used as host IPs. > > > It's not a firewalling/NAT problem, although it's a good idea to have routing > OK'd before dealing with filtering/NAT on the gateway/firewall box. > > HTH, > > Danny > > > > from outside 213.47.28.160/28 to ed0 213.47.28.166/32 works > > > > is that a ipnat problem? or a routing problem? > > <snip> > > -- > > Ricin Radio! > http://www.mp3.com/stations/ricin_radio > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EB909D2.28350.968671F>