Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2000 00:16:27 -0500 (EST)
From:      David Raistrick <keen@damoe.wireless-isp.net>
To:        Sean Peck <speck@newsindex.com>
Cc:        Chris Hill <chris@monochrome.org>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Configuring Gateway/NAT on Freebsd
Message-ID:  <Pine.BSF.4.21.0012110010390.61629-100000@damoe.wireless-isp.net>
In-Reply-To: <Pine.BSF.4.10.10012102018270.14499-100000@www.newsindex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>) status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>


....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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0012110010390.61629-100000>