In 5.4-RELEASE, I just noticed that even when an interface is down (i.e. "ifconfig vlan7 down"), the link-local route remains active.

According to ifconfig(8), in the section talking about the "down" subcommand:

                     This action automatically disables routes using the
                     interface.

...yet that isn't happening for me.

Here's (hopefully) all the information anyone's going to ask for right now


===hostname.vlan7===
description MBIX_BGP
vlan 7 vlandev trunk0
inet 206.72.208.16/24
inet6 2001:504:26::6:2752:1/64
down


===netstat -rn -f inet===
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu Prio Iface
default            198.51.75.2        UGS        4     1745 -     8 vlan5
10.0.1/24          link#16            UC         0        0 -     4 vlan6
127/8              127.0.0.1          UGRS       0        0 33144     8 lo0
127.0.0.1          127.0.0.1          UH         0        0 33144     4 lo0
184.70.48.184/29   link#12            C          0        0 -     4 vlan2
192.168.160/24     link#15            UC         1        0 -     4 vlan4
192.168.160.88     00:24:a5:af:25:18  UHLc       0       14 -     4 vlan4
198.51.75/24       link#9             UC         1        0 -     4 vlan5
198.51.75.2        f2:f2:be:d0:0e:67  UHLc       1        0 -     4 vlan5
204.16.160.160/29  link#14            UC         0        0 -     4 vlan207
206.72.208/24      link#17            C          0        0 -     4 vlan7
224/4              127.0.0.1          URS        0        0 33144     8 lo0


**Note 206.72.208/24 route via vlan7 is still present.  **


===ping 206.72.208.12 [which is up and alive at the moment]===
PING 206.72.208.12 (206.72.208.12): 56 data bytes
ping: sendto: Network is down
ping: wrote 206.72.208.12 64 chars, ret=-1


===ping 8.8.8.8 [just to prove my default gateway works]===
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=48 time=49.026 ms


===ifconfig vlan7===
vlan7: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:26:6c:f1:58:b4
        description: MBIX_BGP
        priority: 0
        vlan: 7 parent interface: trunk0
        groups: vlan
        status: active
        inet6 fe80::226:6cff:fef1:58b4%vlan7 prefixlen 64 scopeid 0x11
        inet 206.72.208.16 netmask 0xffffff00 broadcast 206.72.208.255
        inet6 2001:504:26::6:2752:1 prefixlen 64

**Note distinct lack of "UP" flag. I'm not sure why status=active, nor precisely what that means.**


Weirder... if I re-display the v4 routes, I now see
206.72.208/24      link#17            C          3        0 -     4 vlan7
206.72.208.1       link#17            HLc        0        1 -     4 vlan7
206.72.208.11      link#17            HLc        0        3 -     4 vlan7
206.72.208.12      link#17            HLc        0        1 -     4 vlan7

That's definitely not supposed to happen on a down'ed interface.

Ah, crap.  And arp(8) is showing me "incomplete"s.

So, basically, you can't ever down a vlan(4) interface???
(Yeah, I just tried "ifconfig vlan7 down" and re-tested. Same results. Ack.)

I want the link down because my layer 1 connection to that network doesn't exist right now but I don't want to completely remove the interface configuration.

I must be missing something here...

(I don't have any other multihomed hosts to test this on at the moment. 5.4-RELEASE installed from CD.)

Help!?

--
-Adam Thompson
 athom...@athompso.net

Reply via email to