From owner-freebsd-net@freebsd.org Fri Apr 22 15:57:04 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4AED7B18D5C for ; Fri, 22 Apr 2016 15:57:04 +0000 (UTC) (envelope-from maaattss@gmail.com) Received: from mail-yw0-x231.google.com (mail-yw0-x231.google.com [IPv6:2607:f8b0:4002:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 04C251EB4 for ; Fri, 22 Apr 2016 15:57:04 +0000 (UTC) (envelope-from maaattss@gmail.com) Received: by mail-yw0-x231.google.com with SMTP id o66so126964994ywc.3 for ; Fri, 22 Apr 2016 08:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=eAmwHGC2jW9o41yy39euFPmaDZpLLwSFJW/ycWcNJRw=; b=xg+kxQaIUD/okA2ylSPKz1miKIiykAq3SZSNWgiLItIo0IS51PebBHxUlymdUlI7mD v92v20BUigMfXNQnyWpTY/Ygwb/2/EGmLPTxtI/r5vrqfcuzoiSY9awO77T4xwZgfx+t b2VgVADH3RG4z7LFf78QXeeDBiLoMZn8hd3Ov/022tjL0Ni+d454YggWkhVgtTwj/g2y BiwBO8bfbd/LdVoMHqVtYxhrL9Y6zD8VsL5KKDZf3O4AfDR4VUGsHRjuu7ldfmRcQPFo bLjzwzgzoZqlBJ4PF1mVZpapZtWW1STN1j+T3VgJRiKF9oT45nZ/P/LklGO4tk+5ppAH 2fBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=eAmwHGC2jW9o41yy39euFPmaDZpLLwSFJW/ycWcNJRw=; b=SbvaWYsODe6x8B4Dhr5dW70PXTAOwx0GvRRO3MQeRbhOGMfOL/Jh5bhhJAgFmrRSUP 00RXnWEGfOjCC4pcqNFSGa0l8X8QY8SXmKq5IJimWlygHoj5b6xeoaomBwcg1fRTMRLZ csuOQ/wjxu4Ewfd4KwyQlsUI9j9W8xrDCgIKEDbBP4lwuxxHSmKjWzr22y9rOp9YMTnu fwhTkhQAHWppBM3vqUGvzPejrqGdjSNgnMJvV8mcz1b3DSmgPvPeBaV0aT4FsRQRqIuS qRgQVZ8zxJSOzAaoIsSKjBztm6R7mPIKsEqH4G4dbId0NL28hlWqhpCcJxYrTR1RxTe7 edVg== X-Gm-Message-State: AOPr4FUPgIK4lAXslOYANyIwsDiArz6YGL9m7P0MtwWIxyVxwynkPxzE7/+unsrP6AI6h52f53HEGQmNnzlobg== MIME-Version: 1.0 X-Received: by 10.129.75.215 with SMTP id y206mr14462535ywa.32.1461340623138; Fri, 22 Apr 2016 08:57:03 -0700 (PDT) Received: by 10.37.59.141 with HTTP; Fri, 22 Apr 2016 08:57:03 -0700 (PDT) Date: Fri, 22 Apr 2016 16:57:03 +0100 Message-ID: Subject: Persist ifconfig aliases after disconnect From: Matthew Smith To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2016 15:57:04 -0000 Hi all, on my FreeBSD 10.3-RELEASE server I have a few jails running. To assign them IP addresses, I set aliases on the interface: ifconfig_re0_alias0="inet 192.168.1.200 netmask 0xffffffff" This works great until the connection drops and comes back up again, the alias goes away. If I run ifconfig in the jail, there's no inet line and I can not access the web server. However if I run the following and restart the jail, it works again: ifconfig re0 192.168.1.200 netmask 255.255.255.255 alias Obviously this is not ideal because there would be a lot of downtime. Any help would be greatly appreciated.