VLAN Detached Networks on R9000

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11  Next
Author Message
Boassss
DD-WRT Novice


Joined: 12 Sep 2022
Posts: 12

PostPosted: Tue Oct 04, 2022 22:50    Post subject: Reply with quote
DWCruiser wrote:
Can you show the full settings of your PPPoE as required by your ISP.

This gives a clearer picture in case i miss something critical along the way.

P.S. You'll need to black out username and password, of course.
Sponsor
DWCruiser
DD-WRT User


Joined: 15 Aug 2016
Posts: 223
Location: Melbourne, Australia

PostPosted: Tue Oct 04, 2022 23:16    Post subject: Reply with quote
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

_________________
Life is a journey; travel alone makes it less enjoyable and lonely.
Boassss
DD-WRT Novice


Joined: 12 Sep 2022
Posts: 12

PostPosted: Wed Oct 05, 2022 5:12    Post subject: Reply with quote
DWCruiser wrote:
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.
DWCruiser
DD-WRT User


Joined: 15 Aug 2016
Posts: 223
Location: Melbourne, Australia

PostPosted: Wed Oct 05, 2022 5:40    Post subject: Reply with quote
.Deleted. See next post.
_________________
Life is a journey; travel alone makes it less enjoyable and lonely.


Last edited by DWCruiser on Wed Oct 05, 2022 8:50; edited 1 time in total
DWCruiser
DD-WRT User


Joined: 15 Aug 2016
Posts: 223
Location: Melbourne, Australia

PostPosted: Wed Oct 05, 2022 8:48    Post subject: Reply with quote
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.
Boassss
DD-WRT Novice


Joined: 12 Sep 2022
Posts: 12

PostPosted: Wed Oct 05, 2022 22:17    Post subject: Reply with quote
DWCruiser wrote:
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.

Any more ideas? LOL
DWCruiser
DD-WRT User


Joined: 15 Aug 2016
Posts: 223
Location: Melbourne, Australia

PostPosted: Wed Oct 05, 2022 23:57    Post subject: Reply with quote
I borrowed a spare R9000 from a friend for a drink Smile 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 Startup


Next, (for Firewall)

iptables -t nat -I POSTROUTING -o `get_wanface` -j MASQUERADE

---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.
Boassss
DD-WRT Novice


Joined: 12 Sep 2022
Posts: 12

PostPosted: Thu Oct 06, 2022 16:05    Post subject: Reply with quote
DWCruiser wrote:
I borrowed a spare R9000 from a friend for a drink Smile 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 Startup


Next, (for Firewall)

iptables -t nat -I POSTROUTING -o `get_wanface` -j MASQUERADE

---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.



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!
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2977
Location: Germany

PostPosted: Thu Oct 06, 2022 16:17    Post subject: Reply with quote
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.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Thu Oct 06, 2022 16:32    Post subject: Reply with quote
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

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
DWCruiser
DD-WRT User


Joined: 15 Aug 2016
Posts: 223
Location: Melbourne, Australia

PostPosted: Fri Oct 07, 2022 1:20    Post subject: Reply with quote
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. Smile (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
DWCruiser
DD-WRT User


Joined: 15 Aug 2016
Posts: 223
Location: Melbourne, Australia

PostPosted: Fri Oct 07, 2022 1:44    Post subject: Reply with quote
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. Rolling Eyes

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 Smile. 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
DWCruiser
DD-WRT User


Joined: 15 Aug 2016
Posts: 223
Location: Melbourne, Australia

PostPosted: Fri Oct 07, 2022 1:51    Post subject: Reply with quote
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. Smile

_________________
Life is a journey; travel alone makes it less enjoyable and lonely.
yodog
DD-WRT User


Joined: 04 Mar 2017
Posts: 89

PostPosted: Fri Oct 07, 2022 16:57    Post subject: Reply with quote
Is switch0 = eth0 ?


switch1 = eth1 ?


??? = eth2 ?
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2977
Location: Germany

PostPosted: Fri Oct 07, 2022 17:07    Post subject: Reply with quote
If I had to guess I would say WAN port / LAN port / SFP+ port

Edit: eth0 seems to be the SFP+ port
Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11  Next Display posts from previous:    Page 8 of 11
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum