Routing stops working when we create a new vlan
Adam Vande More
amvandemore at gmail.com
Fri Aug 7 15:10:45 UTC 2015
On Fri, Aug 7, 2015 at 9:54 AM, Marcelo Gondim <gondim at bsdinfo.com.br>
wrote:
>
> But I still think it does wrong. Why to create a vlan I need to have this
> parameter configured in rc.conf? Or why it needs to change
> net.inet.ip.forwarding?
Because that is what the directions for configuring a default gateway
state, and the directions are based off of code behavior.
/etc/rc.d/routing:
if checkyesno gateway_enable; then
ropts_init inet
echo -n ' gateway=YES'
${SYSCTL} net.inet.ip.forwarding=1 > /dev/null
else
${SYSCTL} net.inet.ip.forwarding=0 > /dev/null
fi
--
Adam
More information about the freebsd-stable
mailing list