From owner-freebsd-net@FreeBSD.ORG Wed Jul 16 09:22:43 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BFA22F3F for ; Wed, 16 Jul 2014 09:22:43 +0000 (UTC) Received: from smtp10.hushmail.com (smtp10.hushmail.com [65.39.178.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.hushmail.com", Issuer "Self-signed" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A4E802228 for ; Wed, 16 Jul 2014 09:22:42 +0000 (UTC) Received: from smtp10.hushmail.com (localhost [127.0.0.1]) by smtp10.hushmail.com (Postfix) with SMTP id 9BDB1C0144 for ; Wed, 16 Jul 2014 09:22:35 +0000 (UTC) X-hush-tls-connected: 1 Received: from smtp.hushmail.com (w7.hushmail.com [65.39.178.32]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp10.hushmail.com (Postfix) with ESMTPS for ; Wed, 16 Jul 2014 09:22:35 +0000 (UTC) Message-ID: <954bff7d9b34af15cff55470670ac70c@smtp.hushmail.com> Date: Wed, 16 Jul 2014 11:22:32 +0200 From: Jean Paul Galea User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.6.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: problems with ifconfig alias via rc.conf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 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, 16 Jul 2014 09:22:43 -0000 Hello, Today I ran into a little problem with ifconfig and rc scripts. I have tried googling this issue, although all I could find, are people pointing at syntax errors. Perhaps someone here has ran into this before and could provide some pointers. Here is the relevant /etc/rc.conf settings; defaultrouter="94.247.171.193" ifconfig_igb0="up" ifconfig_igb1="up" ifconfig_igb2="up" ifconfig_igb3="up" cloned_interfaces="lagg0 lagg1" ifconfig_lagg0="laggproto failover laggport igb0 laggport igb1 94.247.171.197/32 netmask 255.255.255.240 broadcast 94.247.171.207" #ifconfig_lagg0_alias0="inet 94.247.171.195 netmask 255.255.255.255" ifconfig_lagg1="laggproto failover laggport igb2 laggport igb3 10.0.0.53/32 netmask 255.255.255.0" #ifconfig_lagg1_alias0="inet 10.0.0.150 netmask 255.255.255.255" static_routes="vpn" route_vpn="-net 10.0.8.0/22 10.0.0.1" In short, - we have four "real" igb network cards. - they are paired into lagg0, lagg1 fail-over mode. - each lagg interface has an alias which by default is disabled. - static route for vpn traffic. Today we were doing some maintenance and wanted to enable the aliases. So after removing the commented out lines from rc.conf, we ran; ~# service netif restart ~# service routing restart ~# service pf restart Output from `ifconfig` showed the aliases where listening on their respective interfaces. However, ping/telnet on 94.247.171.195 failed. At some point we decided to manually cycle the alias; ~# ifconfig lagg0 -alias 94.247.171.195 netmask 255.255.255.255 ~# ifconfig lagg0 alias 94.247.171.195 netmask 255.255.255.255 Which then worked. Output from `ifconfig` was just like before. Some info; - we are running FreeBSD 9.2-RELEASE-p10. - in dmesg we had "ifa_del_loopback_route: deletion failed". - interestingly enough, the other 10.0.0.150 alias worked just fine. Perhaps something is mis-configured in /etc/rc.conf? Some argument is missing in ifconfig_* variables ? Thanks in advance, Jean Paul