From owner-freebsd-questions Sun Dec 10 21:45:29 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 10 21:45:26 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from www.newsindex.com (www.newsindex.com [64.71.138.178]) by hub.freebsd.org (Postfix) with ESMTP id DAACB37B402 for ; Sun, 10 Dec 2000 21:45:26 -0800 (PST) Received: from localhost (speck@localhost) by www.newsindex.com (8.9.3/8.9.3) with ESMTP id VAA27546; Sun, 10 Dec 2000 21:45:15 -0800 (PST) (envelope-from speck@www.newsindex.com) Date: Sun, 10 Dec 2000 21:45:15 -0800 (PST) From: Sean Peck To: David Raistrick Cc: Chris Hill , freebsd-questions@FreeBSD.ORG Subject: Re: Configuring Gateway/NAT on Freebsd In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: speck@www.newsindex.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 11 Dec 2000, David Raistrick wrote: > On Sun, 10 Dec 2000, Sean Peck wrote: > > > > su to root and manually set it. > > > > Yes, root can set it manually, but with : > > > > natd_enabled="YES" and gate_enabled="YES" on bootup the sysctl shows a 0 > > Ah. It is gateway_enabled, sorry. > according to my 4.1-stable rc.conf, it should be > > gateway_enable="YES" > > not gate_enable. > > > > The interesting thing I am still having though is dispite the ifconfig > > alias for 172.16.0.1 being on, the box is not answering to the IP... nor > > can any other machine on my network succesfully find it... NO errors are > > being thrown ... even after manually setting it at command line, I still > > cannot hit the box via the 172.16.0.1 ip... > > This is odd. > > ie: > > damoe:/home/keen%> su > Password: > damoe:/root%# ping 172.16.0.254 > PING 172.16.0.254 (172.16.0.254): 56 data bytes > ^C > --- 172.16.0.254 ping statistics --- > 2 packets transmitted, 0 packets received, 100% packet loss > damoe:/root%# ifconfig xl0 alias 172.16.0.254 netmask 255.255.255.0 > damoe:/root%# ping 172.16.0.254 > PING 172.16.0.254 (172.16.0.254): 56 data bytes > 64 bytes from 172.16.0.254: icmp_seq=0 ttl=255 time=0.121 ms > 64 bytes from 172.16.0.254: icmp_seq=1 ttl=255 time=0.072 ms > 64 bytes from 172.16.0.254: icmp_seq=2 ttl=255 time=0.072 ms > ^C > --- 172.16.0.254 ping statistics --- > 3 packets transmitted, 3 packets received, 0% packet loss > round-trip min/avg/max/stddev = 0.072/0.088/0.121/0.023 ms > damoe:/root%# > > > (sorry, 172.16.0.1 is routed somewhere in my network so I could ping it > already..:) > > Lets see what your ifconfig -a shows, then. > > > (or more specificly, ifconfig xl0 ) > > damoe:/root%# ifconfig xl0 > xl0: flags=8843 mtu 1500 > inet6 fe80::260:97ff:fe9d:c66%xl0 prefixlen 64 scopeid 0x1 > inet 208.61.227.212 netmask 0xfffffff8 broadcast 208.61.227.215 > inet 192.168.3.2 netmask 0xffffff00 broadcast 192.168.3.255 > inet 172.16.0.254 netmask 0xffffff00 broadcast 172.16.0.255 > ether 00:60:97:9d:0c:66 > media: autoselect (10baseT/UTP ) status: active > supported media: autoselect 100baseTX 100baseTX > 10baseT/UTP 10baseT/UTP 100baseTX > > > ....david > > -- > David Raistrick Digital Wireless Communications > davidr@dwcinet.com I don't know it is odd, the machine should be listening to 172.16.0.1, but I cannot reach it... even from the box itself... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message