From owner-freebsd-net@FreeBSD.ORG Wed Apr 3 14:51:54 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AB1D3849 for ; Wed, 3 Apr 2013 14:51:54 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-oa0-f46.google.com (mail-oa0-f46.google.com [209.85.219.46]) by mx1.freebsd.org (Postfix) with ESMTP id 7E28F691 for ; Wed, 3 Apr 2013 14:51:54 +0000 (UTC) Received: by mail-oa0-f46.google.com with SMTP id k1so1598905oag.19 for ; Wed, 03 Apr 2013 07:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=4V2L6EtO7bpXpNJ8whmLzG+zkxRC6Pd+A77jTdeOGIw=; b=KR1CYed7ctN/VEw2ou4VoPBax9Lsj/P82t7Fsa/EDBcCtC7vvXzxHk/GoIVw1cajXn TsLGgOvq8Kcqu8VL/7TdNxjxheULp/TU4sfOhvKBHWUznH/j4VI8eC+Y4TP9XCm7TIsd xOuRsZZs9JTg5HvojG5jakjb/VNJPPl/cj4pyFhNOsAucnsoVlncf2sYUQo+pfpjRlYi FemxYrc2neSB6OjX/OItvYjn8oZ4TfmAa6S6Wz5DZFffiZJ0PhpXOys0QFVcj5Ll2G4Y 98L7mm8TpjKJBNbTF145qz8S/l0VI6SYJWUMqXaWvdmsDUhwdRBEG4bFgY9+EthaPpRY r0ww== MIME-Version: 1.0 X-Received: by 10.182.24.10 with SMTP id q10mr1296947obf.12.1365000713733; Wed, 03 Apr 2013 07:51:53 -0700 (PDT) Received: by 10.76.122.81 with HTTP; Wed, 3 Apr 2013 07:51:53 -0700 (PDT) Date: Wed, 3 Apr 2013 16:51:53 +0200 Message-ID: Subject: gre tunnel woes From: Andreas Nilsson To: FreeBSD Net Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2013 14:51:54 -0000 Hello, I'm struggling a fair bit with gre tunnels today: Woe 1: I'm trying to incorporate my gre tunnels into rc.conf, like cloned_interfaces="gre1" ifconfig_gre1="inet 10.0.0.1/30 10.0.0.2 tunnel a.b.c.d e.f.g.h" but after boot I get: gre1: flags=9011 metric 0 mtu 1476 tunnel inet a.b.c.d --> e.f.g.h inet 10.0.0.1 --> 10.0.0.2 netmask 0xfffffffc nd6 options=29 ie, the tunnel is down. Both "ifconfig gre1 up" and "service netif restart gre1" brings the tunnel up: gre1: flags=9051 metric 0 mtu 1476 tunnel inet a.b.c.d --> e.f.g.h inet 10.0.0.1 --> 10.0.0.2 netmask 0xfffffffc nd6 options=29 Adding "up" to the interface ifconfig line in rc.conf makes no difference. So, how do I get the tunnel(s) to start automatically at boot? Woe 2: Is there no other way than successfully pinging the remote endpoint to tell if the tunnel is "up and running" as it should? Quite often I get gre interfaces that tell me both UP and RUNNING flags from ifconfig, but tunnel is still down. Woe 3: After doing ifconfig greX destroy ; ifconfig greX create , the interface comes up with the old configuration. Is that really the expected behavior? I noticed that lagg interfaces does exactly the same thing. Best regards Andreas Nilsson