The above assumes that '3' if your AC66U's LAN port 4 and '4' is the WAN port. If it the LAN ports numbering are reversed, change the line to:
The RT-AC66U is made like this...
- The blue RJ45 is the WAN.
- The LAN 1 is used to go to the computer, printer, NAS, etc. (cf. diagram last page)
- The LAN 4 is going to the IPTV box.
You can click/zoom on the image to see the port numbers.
quarkysg wrote:
@FTP, I think just this command should work after the AC66U has booted up and everything is working (of course except the IPTV box):
Code:
echo "3t 4t" > /proc/switch/eth0/vlan/100/ports
Still not working
quarkysg wrote:
The above assumes that '3' if your AC66U's LAN port 4 and '4' is the WAN port. If it the LAN ports numbering are reversed, change the line to:
Code:
echo "0t 4t" > /proc/switch/eth0/vlan/100/ports
It should not be reversed, but still... I'll give it a try...
And...
And...
BINGO! That was it. It worked straight away!
But it's a bit crazy!
The LAN port numbering is reversed in between the sticker on the router, the DD-WRT GUI and the internal settings
- The cable to the IPTV box is plugged on the LAN port 4 at the back of the router (cf. picture above).
- DD-WRT is perfectly aligned, it shows it's indeed now plugged on the port 4, since I moved the cable from port 2 to 4 (the green moved from #2 to #4):
From...
To...
- But still, it looks like we have to address this port 4 using "0" in the CLI, so with a reversed numbering
Anyway.
Thanks sooo much quarkysg for your time!!!
I'll make some more tests to double check that everything works well, install the script in JFFS to see if it's also fine (this first test was done via SSH/PuTTY), but I've already put back the unmanaged switch in between and all the devices seem to work fine (IPTV box, TV and Apple TV).
One very last question: jwh7 advised to backup the NVRAM before to try such settings.
I found a Wiki How-to to backup the CFE but not the NVRAM.
Is it just in the GUI Administration > Backup?
Or under SSH: "nvram backup /tmp/nvram.bin"?
Thanks again!
Last edited by FTP on Tue Jul 30, 2019 7:43; edited 3 times in total
@FTP Backup and restore of nvram via GUI is fine. No need to use command line.
Ok thanks.
BTW, I finally installed the script via WinSCP in "/jffs/etc/config/" and everything is working fine!
But for a simple line like this, I could also have used the GUI (Administration > Commands > Save Startup)?
Would it make any difference?
For the tutorial for the ISP users it would save:
- (maybe?) the JFFS activation
- the SSH activation
- the installation of WinSCP
- the writing of the script in a Unix/UTF-8 file
- the transfer of the script in "/jffs/etc/config/"
@FTP Backup and restore of nvram via GUI is fine. No need to use command line.
Ok thanks.
BTW, I finally installed the script via WinSCP in "/jffs/etc/config/" and everything is working fine!
But for a simple line like this, I could also have used the GUI (Administration > Commands > Save Startup)?
Would it make any difference?
For the tutorial for the ISP users it would save:
- (maybe?) the JFFS activation
- the SSH activation
- the installation of WinSCP
- the writing of the script in a Unix/UTF-8 file
- the transfer of the script in "/jffs/etc/config/"
Yes, no need to use JFFS. Using the GUI is fine in this case as the script is not too lengthy. Otherwise it’ll be better to use JFFS or extenrnal USB thumb drives if router has USB ports.
Startup scripts saved using GUI gets stored in the NVRAM, which typically only has 32KiB or 64 KiB.
Yes, no need to use JFFS. Using the GUI is fine in this case as the script is not too lengthy. Otherwise it’ll be better to use JFFS or extenrnal USB thumb drives if router has USB ports.
Startup scripts saved using GUI gets stored in the NVRAM, which typically only has 32KiB or 64 KiB.
- can we have startup scripts from the NVRAM and from JFFS at the same time?
- and on JFFS, can we have more than 1 script with the ".startup"?
- at last, is there a way to verify if a VLAN is setup/running (via the GUI, SSH or whatever on the computer, without going to ISP IP TV box each time)?
- can we have startup scripts from the NVRAM and from JFFS at the same time?
- and on JFFS, can we have more than 1 script with the ".startup"?
- at last, is there a way to verify if a VLAN is setup/running (via the GUI, SSH or whatever on the computer, without going to ISP IP TV box each time)?
No problem with startup scripts in JFFS partition. Just make sure it’s tested properly before using or you’ll end up having to reset the router dur to script hanging the router.
You can see the port configurations of the VLANs by displaying it with the ‘cat’ command:
Code:
cat /proc/switch/eth0/vlan/100/ports
The above shows the LAN ports configured for VLAN 100.
- But still, it looks like we have to address this port 4 using "0" in the CLI, so with a reversed numbering
I think it started to work because you changed 3t to 0t, 0 being the WAN port number. 4 was already the 4 LAN port number. 3 was the 3 LAN port number.
0 -> WAN
1 -> LAN 1
2 -> LAN 2
3 -> LAN 3
4 -> LAN 4
Am I right ?
Edit: I was wrong.
Just did it between LAN ports 1 & 2 and I had to use:
echo "3t 4t" > /proc/switch/eth0/vlan/100/ports