Hello Mike,

Thanks for your feedback,

On Mon 05/10/2015 16:43, Mike Belopuhov wrote:
> 
> Can you please add an "ifconfig -A" invocation to your hostname.trunk0:
> 
> trunkproto failover
> trunkport  em0
> trunkport  iwn0
> !/sbin/ifconfig -A >/root/ifconfig.out 2>&1
> dhcp
> 
> And send me the output.

[....................snip....................]
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        priority: 0
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
em0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 
1500
        lladdr 00:21:86:94:34:8e
        priority: 0
        trunk: trunkdev trunk0
        media: Ethernet autoselect (none)
        status: no carrier
iwn0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:21:86:94:34:8e
        priority: 4
        trunk: trunkdev trunk0
        groups: wlan
        media: IEEE802.11 autoselect (DS1)
        status: no network
        ieee80211: nwid <removed> wpakey <removed> wpaprotos wpa1,wpa2 wpaakms 
psk wpaciphers tkip,ccmp wpagroupcipher tkip
enc0: flags=0<>
        priority: 0
        groups: enc
        status: active
trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:21:86:94:34:8e
        priority: 0
        trunk: trunkproto failover
                trunkport iwn0 active
                trunkport em0 master
        groups: trunk egress
        media: Ethernet autoselect
        status: active
        inet 192.168.1.13 netmask 0xffffff00 broadcast 192.168.1.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33144
        priority: 0
        groups: pflog
[....................snip....................]

To me, it seems that trunk0 is correctly bound to the wifi and has an IP
address assigned...

> 
> Could you also try to capture the initial output from the dhclient
> or make a photo of the DHCP progress (and failure).
> 

Nothing "special":

[....................snip....................]
DHCPREQUEST on trunk0 to 255.255.255.255
DHCPREQUEST on trunk0 to 255.255.255.255
DHCPREQUEST on trunk0 to 255.255.255.255
DHCPREQUEST on trunk0 to 255.255.255.255
DHCPREQUEST on trunk0 to 255.255.255.255
DHCPDISCOVER on trunk0 - interval 1
DHCPDISCOVER on trunk0 - interval 2
DHCPDISCOVER on trunk0 - interval 3
DHCPDISCOVER on trunk0 - interval 8
DHCPDISCOVER on trunk0 - interval 11
DHCPDISCOVER on trunk0 - interval 11
DHCPDISCOVER on trunk0 - interval 14
DHCPDISCOVER on trunk0 - interval 9
No acceptable DHCPOFFERS received
Trying recorded lease 192.168.1.13
bound to 192.168.1.13 - renewal in 21600 seconds.
[....................snip....................]

> Here's also a diff for you to try:
> 
> diff --git sys/net/if_trunk.c sys/net/if_trunk.c
> index 07237ae..446e418 100644
> --- sys/net/if_trunk.c
> +++ sys/net/if_trunk.c
> @@ -1352,14 +1352,16 @@ int
>  trunk_fail_start(struct trunk_softc *tr, struct mbuf *m)
>  {
>       struct trunk_port *tp = (struct trunk_port *)tr->tr_psc;
>  
>       /* Use the master port if active or the next available port */
> -     if (tp == NULL) {
> +     if (tp == NULL &&
> +         (tp = trunk_link_active(tr, tr->tr_primary)) == NULL) {
>               m_freem(m);
>               return (ENOENT);
>       }
> +     tr->tr_psc = (caddr_t)tp;
>  
>       return (if_enqueue(tp->tp_if, m));
>  }
>  
>  int
bear with me, I need a couple of days to try this; I'll keep you
updated.

Cheers

-- 
Alessandro DE LAURENZIS
[mailto:just22....@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis

Reply via email to