From owner-freebsd-questions Sun Dec 10 21:14:36 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 10 21:14:33 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from damoe.wireless-isp.net (damoe.wireless-isp.net [208.61.227.212]) by hub.freebsd.org (Postfix) with ESMTP id 5D6B837B400 for ; Sun, 10 Dec 2000 21:14:33 -0800 (PST) Received: from localhost (keen@localhost) by damoe.wireless-isp.net (8.11.1/8.11.1) with ESMTP id eBB5H5i63025; Mon, 11 Dec 2000 00:17:05 -0500 (EST) (envelope-from keen@damoe.wireless-isp.net) Date: Mon, 11 Dec 2000 00:16:27 -0500 (EST) From: David Raistrick To: Sean Peck 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: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message