Date: Wed, 13 Jun 2007 03:42:49 +0800 From: Pang <freebsd@laws.ms> To: freebsd-questions@freebsd.org Subject: Weird freebsd gateway question Message-ID: <466EF739.1090502@laws.ms>
next in thread | raw e-mail | index | archive | help
Hello, I have followed the document below to set up a gateway for 2 vlans: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html All servers behind the switch can connect to the Internet without any problems. However, I cannot ping the switch IP from the outside nor inside of the network. I have tried to change the IP of the switch, but still the switch cannot be visible in the network (all servers behind works without any glitch.) Could anyone point me out the error? Below is the network diagram: Internet ----- FreeBSD gateway ---- Switch ---- Few servers For FreeBSD gateway, I have that few lines in /etc/rc.d: defaultrouter="10.0.0.1" gateway_enable="YES" ifconfig_em0="inet 10.0.0.2 netmask 255.255.255.252" ifconfig_em1="inet 172.16.0.1 netmask 255.255.255.224" static_routes="lan" route_lan="-net 172.16.0.1/24 172.16.0.2" *The IP of the switch is 172.16.0.2 **All actual IPs are changed to dummy IPs. Thanks Pang
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?466EF739.1090502>