X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2FREADME.t1040-l2switch;h=6f03de239e6073d11e95858d84b58f0f7c4166ee;hb=7b4f17bf3653ffff0d5d7b76bb8c2d8c293db4ce;hp=14dbf31bf230eecb347120f7bbbbf352c4cd3c8b;hpb=3b95288a2ae8146ca4915250f815c1218b1706fa;p=u-boot diff --git a/doc/README.t1040-l2switch b/doc/README.t1040-l2switch index 14dbf31bf2..6f03de239e 100644 --- a/doc/README.t1040-l2switch +++ b/doc/README.t1040-l2switch @@ -24,16 +24,31 @@ Switch interfaces: Commands Overview: ============= Commands supported - - enable/disable a port - - check a port's link speed, duplexity and status. + - enable/disable a port or show its configuration (speed, duplexity, status, etc.) + - port statistics + - MAC learning + - add/remove FDB entries + - Port-based VLAN + - Private/Shared VLAN learning + - VLAN ingress filtering + - Port LAG Commands syntax - ethsw port enable|disable - enable/disable an l2 switch port - ethsw port show - show an l2 switch port's configuration +ethsw [port ] { enable | disable | show } - enable/disable a port; show a port's configuration +ethsw [port ] statistics { [help] | [clear] } - show an l2 switch port's statistics +ethsw [port ] learning { [help] | show | auto | disable } - enable/disable/show learning configuration on a port +ethsw [port ] [vlan ] fdb { [help] | show | flush | { add | del } } - add/delete a mac entry in FDB; use show to see FDB entries; + if [vlan ] is missing, VID 1 will be used +ethsw [port ] pvid { [help] | show | } - set/show PVID (ingress and egress VLAN tagging) for a port +ethsw [port ] vlan { [help] | show | add | del } - add a VLAN to a port (VLAN members) +ethsw [port ] untagged { [help] | show | all | none | pvid } - set egress tagging mode for a port +ethsw [port ] egress tag { [help] | show | pvid | classified } - configure VID source for egress tag. + Tag's VID could be the frame's classified VID or the PVID of the port +ethsw vlan fdb { [help] | show | shared | private } - make VLAN learning shared or private +ethsw [port ] ingress filtering { [help] | show | enable | disable } - enable/disable VLAN ingress filtering on port +ethsw [port ] aggr { [help] | show | } - get/set LAG group for a port - port_nr=0..9; use "all" for all ports - -=> ethsw port all show +=> ethsw show Port Status Link Speed Duplex 0 enabled down 10 half 1 enabled down 10 half