Sorry, i mean the full instructions from your ISP. I attach a copy of an ISP instruction re PPPoE connection for its customers as an example.
Secondly, did your router get a WAN IP at all?
Cheers
I'm sorry. My ISP didn't give me any instructions. if you want to use your own router, then they provide you with what you could see in the last screenshot.
My r9000 got a wan ip with the stock firmware and internet worked perfectly.
Joined: 15 Aug 2016 Posts: 223 Location: Melbourne, Australia
Posted: Wed Oct 05, 2022 8:48 Post subject:
Different time zones (Spain & Australia) make the Q&A not a smooth sailing affair in terms of delay and timely responses. But never mind).
(I reworked my earlier reply in case you wonder).
Boassss wrote:
After entering the startup and rebooting, my laptop could not get an ip address through ethernet (port 1), so I had to connect to wifi to access the GUI again and do a factory reset again.
I can see that you have a backdoor way to get back in the router via wireless being a good reader. Good job.
Quote:
The switch config tab apparently never changes, it always has the same options selected (before and after running the commands on startup).
Ignore the Switch Config tab. The GUI is not working for R9000 running DD-WRT, despite it's there.
Quote:
One question: in the network tab -> wan port assignment, which option should I choose? vlan2 is always selected (other options are eth0, eth1, eth2, vlan1, etc)
Leave this issue out for now.
Now, i noticed a syntax error in the last command i suggested. Can you try it again (pvid 20 instead of vid 20)
# Switch0 Config settings - (important: assign pvid 20 to vlan 2)
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "0t 1 2 4t 6t"
swconfig dev switch0 vlan 2 set pvid 20
swconfig dev switch0 vlan 2 set ports "3t 5t"
swconfig dev switch0 set apply
Save Startup.
(I assume that you have Connection Type (on Setup/Basic Setup page) as PPPoE with your username and password entered there).
Then reboot the router. Hopefully, we get some progress this time. _________________ Life is a journey; travel alone makes it less enjoyable and lonely.
Different time zones (Spain & Australia) make the Q&A not a smooth sailing affair in terms of delay and timely responses. But never mind).
(I reworked my earlier reply in case you wonder).
Boassss wrote:
After entering the startup and rebooting, my laptop could not get an ip address through ethernet (port 1), so I had to connect to wifi to access the GUI again and do a factory reset again.
I can see that you have a backdoor way to get back in the router via wireless being a good reader. Good job.
Quote:
The switch config tab apparently never changes, it always has the same options selected (before and after running the commands on startup).
Ignore the Switch Config tab. The GUI is not working for R9000 running DD-WRT, despite it's there.
Quote:
One question: in the network tab -> wan port assignment, which option should I choose? vlan2 is always selected (other options are eth0, eth1, eth2, vlan1, etc)
Leave this issue out for now.
Now, i noticed a syntax error in the last command i suggested. Can you try it again (pvid 20 instead of vid 20)
# Switch0 Config settings - (important: assign pvid 20 to vlan 2)
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "0t 1 2 4t 6t"
swconfig dev switch0 vlan 2 set pvid 20
swconfig dev switch0 vlan 2 set ports "3t 5t"
swconfig dev switch0 set apply
Save Startup.
(I assume that you have Connection Type (on Setup/Basic Setup page) as PPPoE with your username and password entered there).
Then reboot the router. Hopefully, we get some progress this time.
The steps I have followed have been the following:
1. Enter my username and password PPPoE. Press the save button and reboot the router.
2. Enter the commands and save the startup. Reboot router.
I'm sorry to say it didn't work.
I used the command line to access the router and check if vlan 2 had taken id 20. I think the pvid command is wrong (unknown attribute).
Using the vid command on startup, it does change (I attach screenshots).
I did several tests on the line swconfig dev switch0 vlan 2 set ports "3t 5t". I used all possible combinations with "3 5t", "3t 5" and "3 5" (applying a reboot and waiting about 5 minutes). None worked.
Joined: 15 Aug 2016 Posts: 223 Location: Melbourne, Australia
Posted: Wed Oct 05, 2022 23:57 Post subject:
I borrowed a spare R9000 from a friend for a drink to test the settings below. And they work with my DHCP. I am reasonably confident that they should work with your PPPoE as well.
Given that a few changes have been done to the R9000's internal logic during last couple of days, as well as the web browser. I strongly suggest the following be done first:
_________________________________
1. Do a hard reset of the router.
2. Also clear out your web browser cache.
_________________________________
Now, configure the R9000 so a wireless connection is available, if needed.
Next, reboot R9000 and ensure that the wireless connection works.
Next, enter the following: (see pic.1)
---(for Startup)
sleep 6
# Setup VLANS
# Switch0 Config
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "0t 1 2 4t 6t"
swconfig dev switch0 vlan 20 set ports "3t 5t"
swconfig dev switch0 set apply
# Assign WAN to VLAN20 and up
vconfig add eth2 20
ifconfig vlan20 up
---Save Firewall (the router will reboot itself. Wait till the router is back. Now do a reboot. (yes, a second one)
Wait till it comes back.
Now goto Setup/Networking
Under Interface --->enter ether 2
Under Tag Number --->enter 20
(See pic.2)
Next goto Port Setup, for WAN port assignment, select eth2.20 (see pic.3)
Save settings. Then do a reboot. Wait till the router fully comes back.
Hopefully, you should now have Internet connection.
P.S. To answer a question of yours earlier. The WAN port on R9000 is port 3 on switch0. 3t is tagging the WAN port. _________________ Life is a journey; travel alone makes it less enjoyable and lonely.
I borrowed a spare R9000 from a friend for a drink to test the settings below. And they work with my DHCP. I am reasonably confident that they should work with your PPPoE as well.
Given that a few changes have been done to the R9000's internal logic during last couple of days, as well as the web browser. I strongly suggest the following be done first:
_________________________________
1. Do a hard reset of the router.
2. Also clear out your web browser cache.
_________________________________
Now, configure the R9000 so a wireless connection is available, if needed.
Next, reboot R9000 and ensure that the wireless connection works.
Next, enter the following: (see pic.1)
---(for Startup)
sleep 6
# Setup VLANS
# Switch0 Config
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "0t 1 2 4t 6t"
swconfig dev switch0 vlan 20 set ports "3t 5t"
swconfig dev switch0 set apply
# Assign WAN to VLAN20 and up
vconfig add eth2 20
ifconfig vlan20 up
Joined: 15 Aug 2016 Posts: 223 Location: Melbourne, Australia
Posted: Fri Oct 07, 2022 1:20 Post subject:
ho1Aetoo wrote:
Is both needed on the r9000?
VLAN configuration via swconfig AND VLAN tagging via Networking Tab?
normally either or works ...
I can tag the WAN interface on my R7800 with both variants and they both work independently.
I would test without the startup commands and only with the VLAN tagging in the networking tab.
Short answer: R9000's WAN port tagging needs both script and GUI details to work properly.
------------------
Long answer. You raised a logical point that forces me to redo the steps in order to give a definite answer. So here are the steps i took:
________________________________
Setting: R9000 on r50308 std (10/01/22)
Constraint: tested on Automatic configuration - DHCP connection. Not on PPPoE
________________________________
Findings:
1. With WAN port tagged, i.e. swconfig dev switch0 vlan 20 set ports "3t 5t"
a) R9000 receives a WAN IP address but Net traffic does not flow through. Can't surf the Net. Whether by wired or wireless connection.
b) with GUI details added, (i.e. at VLAN Tagging and at WAN port assignment), WAN IP disappears altogether. Presumably, R9000 tried to complete the validation on a my non-PPPoE connection and fell over. It's a guess.
2. With WAN port not tagged, i.e....ports "3 5t"
a) Again, same as point 1.a) above. Router got an WAN IP, but no Net surfing possible.
b) with GUI details added. And after the reboot. Voila. It works. I can surf the Net. (I feel like a bit like ...Marie Curie discovering Uranium). Though mine was by trial and error. (My freelance job is Beta-testing for a computer company).
Cheers _________________ Life is a journey; travel alone makes it less enjoyable and lonely.
Last edited by DWCruiser on Fri Oct 07, 2022 3:33; edited 2 times in total
Joined: 15 Aug 2016 Posts: 223 Location: Melbourne, Australia
Posted: Fri Oct 07, 2022 1:44 Post subject:
Boassss wrote:
My friend, you made magic!!! LOL
I had to do a reboot between picture2 and picture3 because i didnt get eth2.20.
Now i have a internet connection and able to surf.
This router was drive crazy to me!! LOL
Thank you very much for your help.
If you need to complete your magnificent guide and need information or a screenshot of my configuration, please let me know.
if you ever come to spain, you have paid for a few beers. Cheers!
I am glad to hear you got it working.
You're a good 'Netizen' by offering help. A few people simply disappeared after they got what they wanted.
For now, i leave the steps as discussed between ourselves re 'Tagging WAN port of R9000' as is. So thanks so much for your thoughtful offer to help.
Lastly, if i can keep your buying me a few beers on hold, in case you visit Australia . My wife and i went on a two-month visit to Europe in 2016 when she took her long-service leave. We stayed in an airbnb place near Gaudi Garden in Barcelona. We also visited La Sagrada Familia. He was a genius. But killed by a drunk, while looking at his work from a distance!
Take care, friend. _________________ Life is a journey; travel alone makes it less enjoyable and lonely.
Last edited by DWCruiser on Fri Oct 07, 2022 3:39; edited 2 times in total
Joined: 15 Aug 2016 Posts: 223 Location: Melbourne, Australia
Posted: Fri Oct 07, 2022 1:51 Post subject:
kernel-panic69 wrote:
This is incorrect syntax:
Code:
swconfig dev switch0 vlan 2 set pvid 20
The correct syntax is:
Code:
swconfig dev switch0 vlan 2 set vid 20
You use pvid when setting vlan ID on a specific port:
Code:
swconfig dev switch0 port X set pvid 20
Thanks for that kernel-panic69.
I'll try to learn more about the differences next time i come across it. Too many subtle differences in syntax. A price to pay for abbreviation in coding. My guess. Not a complaint. _________________ Life is a journey; travel alone makes it less enjoyable and lonely.