What's new

LAN Port Status on Command Line

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

tino

New Around Here
Hello,

is there any possibility to check (e.g. connected) or change (ifdown) the status of the LAN Ports.
On my RT-AC87U with Merlin 376.49_4 i could find following interfaces:
  • br0 (seems to be all Ports)
  • br0:0
  • eth0 (seems to be the WAN Port)
  • eth1 (seems to be the WiFi Port)
  • lo
  • ppp0
  • vlan1
  • vlan2
But how can be the single LAN Ports adressed / checked? What is the usage of vlan1 & vlan2?

Thanks & Regards
Tino
 
I've found an interesting information with the robocfg command.
Does anybody know the mapping of the port numbers?

Code:
boss@RT-AC87U:/tmp/home/root# robocfg show
Switch: enabled 
Port 0: 1000FD enabled stp: none vlan: 2 jumbo: off mac: 00:01:5c:31:4f:3c
Port 1:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:11:32:25:0d:78
Port 2: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:11:32:25:0d:77
Port 3:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 4:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 8: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 54:a0:50:e5:2e:f7
VLANs: BCM5301x enabled mac_check mac_hash
   1: vlan1: 1 2 3 5 8t
   2: vlan2: 0 8t
1045: vlan1045: 0 4 7
1046: vlan1046: 0 5
1047: vlan1047: 1 2 3 4 5 7t 8t
1099: vlan1099: 1t 2 4t 8u
1100: vlan1100: 2t 3 4 8u
1101: vlan1101: 0t 2 4 7t
1102: vlan1102: 0 1 7
1103: vlan1103: 0 3 7t 8u

Regards Tino
 
Last edited:

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top