On Thu, Sep 15, 2016 at 04:32:22PM +0200, [email protected] wrote:
> > Precisely, it seems vlan is not working when I try to define it on top
> > of a trunk.
> > 
> > I moved all the hostname.* files into a directory called
> > "/etc/hostname.ALL".  Then I booted from scratch (so with a 'blank'
> > network config) and experimented this way:
> > 
> > 
> > # cd /etc/hostname.ALL/
> > # ls -la
> > total 48
> > drwxr-xr-x   2 root  wheel   512 Sep 15 15:22 .
> > drwxr-xr-x  24 root  wheel  2048 Sep 15 15:22 ..
> > -rw-r-----   1 root  wheel    85 Dec 15  2015 hostname.carp0
> > -rw-r-----   1 root  wheel   100 Dec 15  2015 hostname.carp1
> > -rw-r-----   1 root  wheel    73 Jan 27  2016 hostname.carp2
> > -rw-r-----   1 root  wheel    88 Jan 27  2016 hostname.carp3
> > -rw-r-----   1 root  wheel     3 Dec 15  2015 hostname.oce0
> > -rw-r-----   1 root  wheel     3 Dec 15  2015 hostname.oce1
> > -rw-r-----   1 root  wheel    33 Dec 15  2015 hostname.pfsync0
> > -rw-r-----   1 root  wheel    56 Dec 15  2015 hostname.trunk0
> > -rw-r-----   1 root  wheel    58 Dec 15  2015 hostname.vlan1
> > -rw-r-----   1 root  wheel    60 Dec 15  2015 hostname.vlan20
> > # 
> > # cat hostname.vlan20 
> > vlan 20 vlandev trunk0
> > inet x.x.x.x 255.255.255.0
> > up
> > # 
> > # ifconfig oce0 up
> > # ifconfig vlan20 create
> > # ifconfig vlan20 vlan 20 vlandev oce0
> > # ifconfig vlan20 inet x.x.x.x 255.255.255.0
> > # ifconfig vlan20 up
> > # 
> > #
> > # echo it works
> > it works
> > # 
> > # 
> > # ifconfig vlan
> > vlan20: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> >         lladdr 00:17:a4:77:04:3e
> >         index 10 priority 0 llprio 3
> >         vlan: 20 parent interface: oce0
> >         vnetid: 20
> >         parent: oce0
> >         groups: vlan
> >         status: active
> >         inet x.x.x.x netmask 0xffffff00 broadcast x.x.x.x
> > # 
> > # ifconfig vlan20 destroy
> > # 
> > # ifconfig vlan
> > vlan: no such interface
> > # ifconfig oce1 up
> > # 
> > # cat hostname.trunk0 
> > trunkport oce0 trunkport oce1 trunkproto loadbalance
> > up
> > # 
> > # ifconfig trunk0 create
> > # ifconfig trunk0 trunkport oce0 trunkport oce1 trunkproto loadbalance
> > # ifconfig trunk0 up
> > # 
> > # 
> > # ifconfig vlan20 create
> > # ifconfig vlan20 vlan 20 vlandev trunk0
> > ifconfig: SIOCSETVLAN: No buffer space available
> > # 
> > 
> > 
> > So it doesn't seems to be related to oce(4) but more to trunk(4).
> 
> By looking at the error message it seems related to the mtu and hardmtu
> values of trunk(4) which are inherited from oce(4).


Hi Martin,

Hum, what could be wrong here:
(I have 1500 everywhere)



# for i in oce0 oce1 trunk0 vlan20; do
> ifconfig ${i} hwfeatures   
> done
oce0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 
1500
        hwfeatures=37<CSUM_IPv4,CSUM_TCPv4,CSUM_UDPv4,VLAN_MTU,VLAN_HWTAGGING> 
hardmtu 9000
        lladdr 00:17:a4:77:04:3e
        index 1 priority 0 llprio 3
        trunk: trunkdev trunk0
        media: Ethernet autoselect (10GbaseSR full-duplex)
        status: active
0: no such interface
oce1: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 
1500
        hwfeatures=37<CSUM_IPv4,CSUM_TCPv4,CSUM_UDPv4,VLAN_MTU,VLAN_HWTAGGING> 
hardmtu 9000
        lladdr 00:17:a4:77:04:3e
        index 2 priority 0 llprio 3
        trunk: trunkdev trunk0
        media: Ethernet autoselect (10GbaseSR full-duplex)
        status: active
trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        hwfeatures=10000<> hardmtu 1500
        lladdr 00:17:a4:77:04:3e
        index 11 priority 0 llprio 3
        trunk: trunkproto loadbalance
                trunkport oce1 active
                trunkport oce0 master,active
        groups: trunk
        media: Ethernet autoselect
        status: active
vlan20: flags=8003<UP,BROADCAST,MULTICAST> mtu 1500
        hwfeatures=0<> hardmtu 65535
        lladdr 00:00:00:00:00:00
        index 12 priority 0 llprio 3
        vlan: 20 parent interface: trunk0
        vnetid: 20
        parent: trunk0
        groups: vlan
        status: no carrier
# 


Thanks,
Best
oc

Reply via email to