Date: Sun, 25 Jan 2015 08:16:11 -0700 From: Matthew Hardcastle <geek@doomgeek.com> To: John <freebsd-lists@potato.growveg.org> Cc: freebsd-questions@freebsd.org Subject: Re: real IP and rfc1918 IP on the same machine - how? Message-ID: <FE000C8F-1C05-4B4B-B7EA-D32118D09C0E@doomgeek.com> In-Reply-To: <20150125141518.GA23664@potato.growveg.org> References: <20150125141518.GA23664@potato.growveg.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Jan 25, 2015, at 7:15 AM, John <freebsd-lists@potato.growveg.org> = wrote: >=20 > hello freebsd-questions, >=20 > I have a workstation with two NICs - one wired (real IP address on a=20= > /28) and one wireless, which I want to configure to use the protected=20= > wireless LAN on 192.168.100.0/24. I want the internet to route through=20= > real IP address, and I want access to the wireless LAN. I don't want = to=20 > route out to the internet through the wireless LAN, I just need to be=20= > able to contact the machines within it. The wireless LAN itself has = its=20 > own gateway, which is not this machine but a wifi access point. >=20 > How can I configure the ath0 interface so it sees the wireless LAN but=20= > doesn't break routing to the outside world on this machine? Both=20 > interfaces will have static IPs. I have tried statically assigning = ath0=20 > (wireless interface) to 192.168.100.100 255.255.255.0 , em0 interface = to=20 > [real IP] and default gateway to the real IP of the gateway, but once = I=20 > bring the interfaces up I cannot access the real IP of the default=20 > gateway. >=20 > can anyone help? >=20 > thanks, >=20 > --=20 > John=20 Hi John, The setup you=E2=80=99re describing is pretty standard and should = =E2=80=9Cjust work=E2=80=9D when configured correctly. It sounds like = you may have misconfigured one of your interfaces. The output of = `ifconfig`, `netstat -rn`, and `grep ^ifconfig /etc/rc.conf` would be = helpful in diagnosing your issue. Also, I noticed you say your wired interface is a /28 but then state = it=E2=80=99s configured as a /24. Perhaps this is your issue? Matt=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE000C8F-1C05-4B4B-B7EA-D32118D09C0E>