Before making any other changes, I wanted to understand the starting configuration of my router.
Unfortunately, when I examine the nvram variables, I get inconsistent data:
Code:
vlan2ports=4 7u # WAN = port 4 on vlan2 (WAN PORT NUMBER DOES NOT MATCH *BELOW*)
port0vlans=2 # WAN = port 0 on vlan2 (WAN PORT NUMBER DOES NOT MATCH *ABOVE*)
vlan1ports=0 1 2 3 5 7* # 5 logical ports: 0, 1, 2, 3, 5 (SHOULD BE 8 LOGICAL PORTS, NOT 5 LOGICAL PORTS)
port5vlans=1 2 16 #vlan16 does not appear anywhere else
1) There should be a single WAN port, yet I'm shown two WAN ports: 4 and 0.
2) There should be 8 LAN ports, but I'm only shown 5.
3) What is vlan16? It doesn't appear under "ifconfig".
Below are the full outputs of these and other commands (along with my notes preceded by ">>"):
>> Physical port 4 = WAN Logical port (vlan2)
>> Physical port 0 = LAN Logical port 1 (vlan1)
>> Physical port 1 = LAN Logical port 2 (vlan1)
>> Physical port 2 = LAN Logical port 3 (vlan1)
>> Physical port 3 = LAN Logical port 4 (vlan1)
>> Physical port 5 = LAN Logical port 5 (vlan1)
>> Port 7 = logical bridge on every VLAN (vlan1 & vlan2)
Joined: 13 Aug 2013 Posts: 6855 Location: Romerike, Norway
Posted: Sun May 23, 2021 9:55 Post subject:
This router have two switches BCM4709C0 and RTL8365MB
BCM4709C0:
Eight ports with full-line rate
Five 10/100/1000 PHY ports
RGMII/MII-lite interface (Here is the RTL switch connected)
RTL8365MB:
Single-chip 4+1-port 10/100/1000M non-blocking switch architecture
Embedded 4-port 10/100/1000Base-T PHY
Each port supports full duplex 10/100/1000M connectivity (half duplex only supported in 10/100M mode)
Extra Interface (Extension GMAC1) supports
Media Independent Interface (MII)
Reduced 10/100/1000M Media Independent Interface (RGMII)
Full-duplex and half-duplex operation with IEEE 802.3x flow control and backpressure
Supports 9216-byte jumbo packet length forwarding at wire speed
1) Update dd-wrt to a builds past 46446
2) Use swconfig list to identify the switches
3) Use swconfig to show the configuration of the switches
Probably swconfig dev switch0 show and swconfig dev switch1 show
Hello kernel-panic69,
Thank you for your response.
Quote:
What were the default outputs
My post contained the default outputs.
The configuration sequence I used for my post was:
1) "Restore Factory Defaults";
2) changed router name and password;
3) enabled SSHd to allow ssh login;
4) ssh login to the router;
5) list the outputs shown in my post.
(I wanted to understand my routers initial conditions *BEFORE* making any changes.)
Quote:
builds past 46446 do not use this method of vlan configuration anymore
Do you recommend that I try a later build?
I believe build 46733 is available for this router.
Also, is there documentation on how to configure vlans using firmware after 46446?
1) Update dd-wrt to a builds past 46446
2) Use swconfig list to identify the switches
3) Use swconfig to show the configuration of the switches
Probably swconfig dev switch0 show and swconfig dev switch1 show
Thank you for the information and instructions. I'll do the upgrade that you recommend, and study the results.
Using "swconfig dev switch0 help", I mapped the 8 wired LAN connections to the "switch0" ports
(plugged an Ethernet cable into each LAN and located changes to up/down states):
LAN-1 = port:3
LAN-2 = port:2
LAN-3 = port:1
LAN-4 = port:0
LAN-5 = <no port up/down change found>
LAN-6 = <no port up/down change found>
LAN-7 = <no port up/down change found>
LAN-8 = <no port up/down change found>
Problem: 4 of the LANs have no "switch0" port mapping.
Using the Web-GUI, I got similar results:
Setup->Switch Config
up/down shown: WAN, Port-1, Port-2, Port-3, Port-4
*NOT* shown: Port-5, Port-6, Port-7, Port-8
How do I determine the map for LAN-5, LAN-6, LAN-7, LAN-8 onto the switch0 ports?
Joined: 13 Aug 2013 Posts: 6855 Location: Romerike, Norway
Posted: Mon May 24, 2021 12:30 Post subject:
resolv wrote:
port5vlans=1 2 16 #vlan16 does not appear anywhere else
16 is the "Tagged" option in the GUI. It's on line 16. The portXvlans variables does not reflect your hardware, but only if the option is selected in the GUI.
Apparently the RTL switch with LAN 5-8 is connected to port 5
Hello Per Yngve Berg,
Thank you for analyzing my hardware.
I'm learning. If you don't mind, I have some questions.
* Question-1:
(Attached is an image of my Web-GUI showing the Tagged line 16.)
You stated: 16 is the "Tagged" option in the GUI. It's on line 16. The portXvlans variables does not reflect your hardware, but only if the option is selected in the GUI.
In the Web-GUI, there are no selected options in this "Tagged" line. Shouldn't something be selected for "16" to appear in "port5vlans=1 2 16", or have I misunderstood?
* Question-2:
You stated: Port 7 is the CPU (router).
I believe that you determined this CPU information from the following two nvram variables:
Code:
vlan2ports=4 7u
vlan1ports=0 1 2 3 5 7*
But "swconfig dev switch0 help" gives the "(cpu @ 5)":
Which is correct, Port 7 or Port 5? What am I misunderstanding here?
* Question-3:
Is my WAN on "vlan2 Port 4" or "vlan2 Port 0"?
Code:
vlan2ports=4 7u # WAN = port 4 on vlan2 (WAN PORT NUMBER DOES NOT MATCH *BELOW*)
port0vlans=2 # WAN = port 0 on vlan2 (WAN PORT NUMBER DOES NOT MATCH *ABOVE*)
Again, thank you for your time and the information.