From owner-freebsd-hackers@freebsd.org Mon Jan 14 16:30:12 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC8E314A4FB5 for ; Mon, 14 Jan 2019 16:30:11 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B59CC6A0E5 for ; Mon, 14 Jan 2019 16:30:10 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: by mail-ed1-x531.google.com with SMTP id f23so135084edb.3 for ; Mon, 14 Jan 2019 08:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=longcount-org.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=KSMZ9nb9h7AYzgceFhkQ9SZaUp0sftAPoWwETecQzYs=; b=ZEouzGYCSbNgeDBm9Ps3QolV7CQfZOnAsDbq6CXBIHm0EcUgfptUAlf+UI47wvCYc4 5EoV8xH3mvRjR3nZFIPFuoiTfmk1p4j4ABZSYQOjNvPfHzdmjUIbn2kktphPVcsGXI9I 8dSSFK5zkkCQBjb9udxguxxJ1Pm2x4QMBme3pJEqWiw86BH3/xlOpXB9JjmARM6v1GRK ZJ/7j5qv3vWxdwQ7TzLU5rWk2dzdNWxq5XBnNIPBsl/Sc/SDPTkOnr3E1XagCrizSjzh phWOUo0nJ9OJQH1Ub6TTfVBVPcqpx/zTDxkmzAnkqIQl7dSjxFaRRq91hpuyPYVIV7hc vqpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KSMZ9nb9h7AYzgceFhkQ9SZaUp0sftAPoWwETecQzYs=; b=kb3xqE3CUcbxCdHWi64/2PObDnD48vWkBojKiN0MAuWkqpX0xsbrIvU1TFrvG3G6sr zoeMimzwLRvIpGfaRoxhMTGXbVOZg2Hx6vXQ+yP24OcmZR9NkkpGUlpN+zhyDySyBqZi FdJw5whC11CtmRITnORUr9V5aEx69E42H1pDARecgm4eiYQ4Uqwln4zKyJFMLTVlMOXA 4wvSFGCnlNyqupWrQ16vORYdcUp5UswioFz7CM+8lj95yP5U9ZGjo6zdHYKoNrgVtmb2 Vs6MQ3oP51M5FP7vsMumrFj9h3c9g9C/vr7q2afWC6otnK7wVZuHnmAfCh+XKTuqZQjn NBIQ== X-Gm-Message-State: AJcUukcMXcvt291DWu29EzhA98u+nLWB5HQepceo566sSneDw1cxjAgN z6uhSqVOzv47FV6JBM4vQpDdXYhDoi+UbneFEwdWB8gQP94= X-Google-Smtp-Source: ALg8bN6mMFuAXVDtv7cc0DL46cdXuaD7jU+iWJzR3deOyJ54kIqr1daXED8jYWqhpk136lhd8jjEbmvquo1B8RiKxoU= X-Received: by 2002:a17:906:f14e:: with SMTP id gw14-v6mr20789340ejb.231.1547483409301; Mon, 14 Jan 2019 08:30:09 -0800 (PST) MIME-Version: 1.0 From: Mark Saad Date: Mon, 14 Jan 2019 11:29:58 -0500 Message-ID: Subject: Removing an alias can remove routes ? To: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: B59CC6A0E5 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=longcount-org.20150623.gappssmtp.com header.s=20150623 header.b=ZEouzGYC X-Spamd-Result: default: False [-4.36 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[longcount-org.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[longcount.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[longcount-org.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[alt1.aspmx.l.google.com,aspmx.l.google.com,aspmx5.googlemail.com,aspmx4.googlemail.com,aspmx3.googlemail.com,alt2.aspmx.l.google.com,aspmx2.googlemail.com]; RCVD_IN_DNSWL_NONE(0.00)[1.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.47)[-0.468,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-2.58)[ip: (-9.05), ipnet: 2a00:1450::/32(-2.02), asn: 15169(-1.77), country: US(-0.08)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2019 16:30:12 -0000 All I ran into a peculiar over the weekend on two FreeBSD 10-STABLE servers that has me at a loss. Both servers have the same setup lacp lagg wtih vlans using the lagg as a parent dev. On the vlans I have some alias along with the primary ip. When a alias was added or deleted routes that sourced out of the primary ip on that vlan were dropped from the routing table. So for example. I have lagg0.vlan1044 . (both servers are similarly configured as routers / firewalls ) [root@pineapple01 ~]# ifconfig lagg0.vlan1044 lagg0.vlan1044: flags=8843 metric 0 mtu 1500 options=300 ether 00:0f:53:20:9b:d0 inet6 fe80::20f:53ff:fe20:9bd0%lagg0.vlan1044 prefixlen 64 scopeid 0x80 inet 10.24.213.84 netmask 0xffffffe0 broadcast 10.24.213.95 inet 10.24.212.129 netmask 0xffffffff broadcast 10.24.212.129 inet 10.24.213.163 netmask 0xfffffff0 broadcast 10.24.213.175 inet 10.24.213.76 netmask 0xffffffe0 broadcast 10.24.213.95 inet 10.24.213.94 netmask 0xffffffe0 broadcast 10.24.213.95 inet 10.24.213.89 netmask 0xffffffe0 broadcast 10.24.213.95 inet 10.24.213.75 netmask 0xffffffe0 broadcast 10.24.213.95 nd6 options=21 media: Ethernet autoselect status: active vlan: 1044 parent interface: lagg0 [root@pineapple01 ~]# netstat -nr4Wl ... 192.168.144.32/27 10.24.213.65 UGS 0 1500 lagg0.vlan1044 192.168.144.96/27 10.24.213.65 UGS 0 1500 lagg0.vlan1044 192.168.23.0/24 10.24.213.65 UGS 0 1500 lagg0.vlan1044 192.168.120.0/21 10.24.213.65 UGS 0 1500 lagg0.vlan1044 So I wanted to remove the alias ended in 163 and fix its netmask back to /32 I ran this ifconfig lagg0.vlan1044 inet 10.24.213.163/24 -alias && ifconfig lagg0.vlan1044 inet 10.24.213.163/32 -alias and shortly there after all of the routes that went out lagg0.vlan1044 were gone . I quickly undid my change and put the routes back but I am not sure what caused this ? Anyone have any ideas I have done this in the past with out issue and I am unsure whats changed other then the box have a long up time of 463 days . -- mark saad | nonesuch@longcount.org