GRE tunnel on startup with rc.conf

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GRE tunnel on startup with rc.conf

Boris Kochergin
Hi,

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.

-Boris
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-rc
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: GRE tunnel on startup with rc.conf

Yar Tikhiy-2
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
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-rc
To unsubscribe, send any mail to "[hidden email]"