GRE tunnel on startup with rc.conf

Yar Tikhiy yar at comp.chem.msu.su
Fri Dec 2 08:15:18 GMT 2005


On Mon, Nov 28, 2005 at 09:07:41AM -0500, Boris Kochergin wrote:
> 
> Is there a way to configure GRE tunnels on startup via rc.conf? I didn't 
> find anything in the man page or in /etc/defaults/rc.conf.

gre(4) is just another pseudo interface, cloneable and configurable
with ifconfig(8):

	# begin rc.conf snippet
	cloned_interfaces="gre0"
	ifconfig_gre0="inet 1.1.1.1 2.2.2.2 tunnel 3.3.3.3 4.4.4.4 up"
	# end rc.conf snippet

See gre(4) for some implementation caveats.

-- 
Yar


More information about the freebsd-rc mailing list