<div dir="ltr"><div><div><div>This is my original switch config:<br><br>config switch<br> option name 'switch0'<br> option reset '1'<br> option enable_vlan '1'<br><br>config switch_vlan<br> option device 'switch0'<br> option vlan '1'<br> option ports '0t 1 2 3 4'<br> option vid '1'<br><br>config switch_vlan<br> option device 'switch0'<br> option vlan '2'<br> option ports '0t'<br> option vid '3'<br><br>config switch_vlan<br> option device 'switch0'<br> option vlan '3'<br> option ports '0t'<br> option vid '2'<br><br>config switch_vlan<br> option device 'switch0'<br> option vlan '4'<br> option vid '4'<br> option ports '0t'<br><br>config switch_vlan<br> option device 'switch0'<br> option vlan '5'<br> option vid '5'<br> option ports '5 6'<br><br></div>But in wiki they say that wan must be vlan2, but I didnt notice difference if it is on vlan5. <br><br>Anyway I revert switch to original config and add force_link=0 for wan:<br>config interface 'wan'<br> option ifname 'eth0'<br> option proto 'dhcp'<br> option metric '1'<br> option force_link '0'<br><br>config switch<br> option name 'switch0'<br> option reset '1'<br> option enable_vlan '1'<br><br>config switch_vlan<br> option device 'switch0'<br> option vlan '1'<br> option vid '1'<br> option ports '0 1 2 3 4'<br><br>config switch_vlan <br> option device 'switch0' <br> option vlan '2' <br> option vid '2' <br> option ports '5 6' <br><br><br><br><br></div>It seems that switch noticed link down on port 5:<br><br><br><br>$swconfig dev switch0 port 5 show <br>Port 5:<br> mib: Port 5 MIB counters<br>RxBroad : 65<br>RxPause : 0<br>RxMulti : 47<br>RxFcsErr : 0<br>RxAlignErr : 0<br>RxRunt : 0<br>RxFragment : 0<br>Rx64Byte : 310<br>Rx128Byte : 960<br>Rx256Byte : 101<br>Rx512Byte : 16<br>Rx1024Byte : 62<br>Rx1518Byte : 1<br>RxMaxByte : 0<br>RxTooLong : 0<br>RxGoodByte : 149935<br>RxBadByte : 0<br>RxOverFlow : 0<br>Filtered : 0<br>TxBroad : 322<br>TxPause : 0<br>TxMulti : 0<br>TxUnderRun : 0<br>Tx64Byte : 668<br>Tx128Byte : 493<br>Tx256Byte : 135<br>Tx512Byte : 9<br>Tx1024Byte : 12<br>Tx1518Byte : 494<br>TxMaxByte : 0<br>TxOverSize : 0<br>TxByte : 715736<br>TxCollision : 0<br>TxAbortCol : 0<br>TxMultiCol : 0<br>TxSingleCol : 0<br>TxExcDefer : 0<br>TxDefer : 0<br>TxLateCol : 0<br><br> pvid: 2<br> link: port:5 link:down<br><br><br></div>Link port 6 stays ON, probably because it is "cpu".<br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br>--<br>S pozdravom Jakub Janco</div></div>
<br><div class="gmail_quote">2015-05-15 12:28 GMT+02:00 Conor O'Gorman <span dir="ltr"><<a href="mailto:i@conorogorman.net" target="_blank">i@conorogorman.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 15/05/15 10:48, Jakub Jančo wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
After I unplug cable:<br>
<br>
ifconfig<br>
eth0 Link encap:Ethernet HWaddr 14:CC:20:4D:3D:B5<br>
inet addr:10.1.5.246 Bcast:10.1.5.255 Mask:255.255.255.0<br>
inet6 addr: fe80::16cc:20ff:fe4d:3db5/64 Scope:Link<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:747 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:896 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:1000<br>
RX bytes:84708 (82.7 KiB) TX bytes:487679 (476.2 KiB)<br>
Interrupt:4<br>
<br>
ip link<br>
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state<br>
UP mode DEFAULT group default qlen 1000<br>
link/ether 14:cc:20:4d:3d:b5 brd ff:ff:ff:ff:ff:ff<br>
<br>
After plug in cable, no change, no logs.<br>
<br>
ModelTP-Link TL-WR1043N/ND v2 Firmware Version OpenWrt Barrier Breaker<br>
14.07 / LuCI Trunk (svn-r10472) Kernel Version3.10.49<br>
</blockquote>
<br>
Do you have the switch configured correctly? You can use swconfig to check the physical port status.<br>
<a href="http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd" target="_blank">http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd</a><br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</blockquote></div><br></div>