On Fri, Dec 05, 2014 at 05:37:31PM +0100, Felix Fietkau wrote: > On 2014-12-05 17:15, David Hutchison wrote: > > > > The other thing to note ( and i'm not sure if this is by design ).. I > > used to be able to do "swconfig dev eth0 show" and show the switch the > > eth0 was connected to. Now I must use "swconfig dev switch0 show" to > > configure the switch. When you do "swconfig dev eth0 show" it says it > > Failed to connect to the switch. In the past, I have always used eth0 > > to configure the switch however that may have been incorrect. > Please post your network/switch configuration, and the output of > swconfig dev switch0 show > Just to join in the fun here's my results (from rb-2011uias-2hnd) attached.
-- Chris Green
root@OpenWrt:/# swconfig dev switch0 show Global attributes: enable_vlan: 1 enable_mirror_rx: 0 enable_mirror_tx: 0 mirror_monitor_port: 0 mirror_source_port: 0 Port 0: mib: Port 0 MIB counters RxBroad : 459787 RxPause : 0 RxMulti : 26183 RxFcsErr : 0 RxAlignErr : 0 RxRunt : 0 RxFragment : 0 Rx64Byte : 7557 Rx128Byte : 145114 Rx256Byte : 12418 Rx512Byte : 320892 Rx1024Byte : 6 Rx1518Byte : 4 RxMaxByte : 0 RxTooLong : 0 RxGoodByte : 125498098 RxBadByte : 0 RxOverFlow : 0 Filtered : 485983 TxBroad : 1 TxPause : 0 TxMulti : 12 TxUnderRun : 0 Tx64Byte : 0 Tx128Byte : 1 Tx256Byte : 0 Tx512Byte : 12 Tx1024Byte : 0 Tx1518Byte : 0 TxMaxByte : 0 TxOverSize : 0 TxByte : 4694 TxCollision : 0 TxAbortCol : 0 TxMultiCol : 0 TxSingleCol : 0 TxExcDefer : 0 TxDefer : 0 TxLateCol : 0 pvid: 0 link: port:0 link:up speed:1000baseT full-duplex txflow rxflow Port 1: mib: Port 1 MIB counters RxBroad : 0 RxPause : 0 RxMulti : 0 RxFcsErr : 0 RxAlignErr : 0 RxRunt : 0 RxFragment : 0 Rx64Byte : 0 Rx128Byte : 0 Rx256Byte : 0 Rx512Byte : 0 Rx1024Byte : 0 Rx1518Byte : 0 RxMaxByte : 0 RxTooLong : 0 RxGoodByte : 0 RxBadByte : 0 RxOverFlow : 0 Filtered : 0 TxBroad : 0 TxPause : 0 TxMulti : 0 TxUnderRun : 0 Tx64Byte : 0 Tx128Byte : 0 Tx256Byte : 0 Tx512Byte : 0 Tx1024Byte : 0 Tx1518Byte : 0 TxMaxByte : 0 TxOverSize : 0 TxByte : 0 TxCollision : 0 TxAbortCol : 0 TxMultiCol : 0 TxSingleCol : 0 TxExcDefer : 0 TxDefer : 0 TxLateCol : 0 pvid: 2 link: port:1 link:down Port 2: mib: Port 2 MIB counters RxBroad : 0 RxPause : 0 RxMulti : 0 RxFcsErr : 0 RxAlignErr : 0 RxRunt : 0 RxFragment : 0 Rx64Byte : 0 Rx128Byte : 0 Rx256Byte : 0 Rx512Byte : 0 Rx1024Byte : 0 Rx1518Byte : 0 RxMaxByte : 0 RxTooLong : 0 RxGoodByte : 0 RxBadByte : 0 RxOverFlow : 0 Filtered : 0 TxBroad : 0 TxPause : 0 TxMulti : 0 TxUnderRun : 0 Tx64Byte : 0 Tx128Byte : 0 Tx256Byte : 0 Tx512Byte : 0 Tx1024Byte : 0 Tx1518Byte : 0 TxMaxByte : 0 TxOverSize : 0 TxByte : 0 TxCollision : 0 TxAbortCol : 0 TxMultiCol : 0 TxSingleCol : 0 TxExcDefer : 0 TxDefer : 0 TxLateCol : 0 pvid: 1 link: port:2 link:down Port 3: mib: Port 3 MIB counters RxBroad : 0 RxPause : 0 RxMulti : 0 RxFcsErr : 0 RxAlignErr : 0 RxRunt : 0 RxFragment : 0 Rx64Byte : 0 Rx128Byte : 0 Rx256Byte : 0 Rx512Byte : 0 Rx1024Byte : 0 Rx1518Byte : 0 RxMaxByte : 0 RxTooLong : 0 RxGoodByte : 0 RxBadByte : 0 RxOverFlow : 0 Filtered : 0 TxBroad : 0 TxPause : 0 TxMulti : 0 TxUnderRun : 0 Tx64Byte : 0 Tx128Byte : 0 Tx256Byte : 0 Tx512Byte : 0 Tx1024Byte : 0 Tx1518Byte : 0 TxMaxByte : 0 TxOverSize : 0 TxByte : 0 TxCollision : 0 TxAbortCol : 0 TxMultiCol : 0 TxSingleCol : 0 TxExcDefer : 0 TxDefer : 0 TxLateCol : 0 pvid: 1 link: port:3 link:down Port 4: mib: Port 4 MIB counters RxBroad : 1 RxPause : 0 RxMulti : 12 RxFcsErr : 0 RxAlignErr : 0 RxRunt : 0 RxFragment : 0 Rx64Byte : 1 Rx128Byte : 0 Rx256Byte : 0 Rx512Byte : 12 Rx1024Byte : 0 Rx1518Byte : 0 RxMaxByte : 0 RxTooLong : 0 RxGoodByte : 4642 RxBadByte : 0 RxOverFlow : 0 Filtered : 0 TxBroad : 0 TxPause : 0 TxMulti : 0 TxUnderRun : 0 Tx64Byte : 0 Tx128Byte : 0 Tx256Byte : 0 Tx512Byte : 0 Tx1024Byte : 0 Tx1518Byte : 0 TxMaxByte : 0 TxOverSize : 0 TxByte : 0 TxCollision : 0 TxAbortCol : 0 TxMultiCol : 0 TxSingleCol : 0 TxExcDefer : 0 TxDefer : 0 TxLateCol : 0 pvid: 1 link: port:4 link:down Port 5: mib: Port 5 MIB counters RxBroad : 0 RxPause : 0 RxMulti : 0 RxFcsErr : 0 RxAlignErr : 0 RxRunt : 0 RxFragment : 0 Rx64Byte : 0 Rx128Byte : 0 Rx256Byte : 0 Rx512Byte : 0 Rx1024Byte : 0 Rx1518Byte : 0 RxMaxByte : 0 RxTooLong : 0 RxGoodByte : 0 RxBadByte : 0 RxOverFlow : 0 Filtered : 0 TxBroad : 0 TxPause : 0 TxMulti : 0 TxUnderRun : 0 Tx64Byte : 0 Tx128Byte : 0 Tx256Byte : 0 Tx512Byte : 0 Tx1024Byte : 0 Tx1518Byte : 0 TxMaxByte : 0 TxOverSize : 0 TxByte : 0 TxCollision : 0 TxAbortCol : 0 TxMultiCol : 0 TxSingleCol : 0 TxExcDefer : 0 TxDefer : 0 TxLateCol : 0 pvid: 1 link: port:5 link:down Port 6: mib: Port 6 MIB counters RxBroad : 0 RxPause : 0 RxMulti : 0 RxFcsErr : 0 RxAlignErr : 0 RxRunt : 0 RxFragment : 0 Rx64Byte : 0 Rx128Byte : 0 Rx256Byte : 0 Rx512Byte : 0 Rx1024Byte : 0 Rx1518Byte : 0 RxMaxByte : 0 RxTooLong : 0 RxGoodByte : 0 RxBadByte : 0 RxOverFlow : 0 Filtered : 0 TxBroad : 0 TxPause : 0 TxMulti : 8 TxUnderRun : 0 Tx64Byte : 0 Tx128Byte : 6 Tx256Byte : 2 Tx512Byte : 0 Tx1024Byte : 0 Tx1518Byte : 0 TxMaxByte : 0 TxOverSize : 0 TxByte : 840 TxCollision : 0 TxAbortCol : 0 TxMultiCol : 0 TxSingleCol : 0 TxExcDefer : 0 TxDefer : 0 TxLateCol : 0 pvid: 3 link: port:6 link:down VLAN 1: vid: 1 ports: 0t 2 3 4 5 VLAN 2: vid: 2 ports: 0t 1 VLAN 3: vid: 3 ports: 0t 6 root@OpenWrt:/#
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config globals 'globals' option ula_prefix 'fd02:728d:cdbc::/48' config interface 'lan' option ifname 'eth0.1 eth1' option force_link '1' option type 'bridge' option proto 'static' option ipaddr '192.168.1.40' option netmask '255.255.255.0' option ip6assign '60' config interface 'wan' option ifname 'eth0.2' option proto 'dhcp' config interface 'wan6' option ifname 'eth0.2' option proto 'dhcpv6' config switch option name 'switch0' option reset '1' option enable_vlan '1' config switch_vlan option device 'switch0' option vlan '1' option ports '0t 2 3 4 5' config switch_vlan option device 'switch0' option vlan '2' option ports '0t 1' config switch option name 'switch1' option reset '1' option enable_vlan '1' config switch_vlan option device 'switch1' option vlan '1' option ports '0 1 2 3 4 5' config interface 'sfp' option ifname 'eth0.3' option proto 'none' config switch_vlan option device 'switch0' option vlan '3' option ports '0t 6'
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel