MmonaghanApril 27, 2016 at 7:26 pm #16919
How does one configure VLANs on eth0 and eth1?
Found: switch0 – eth1
swconfig dev switch0 show
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
link: port:1 link:up speed:100baseT full-duplex auto
link: port:2 link:down
link: port:3 link:down
link: port:4 link:down
ports: 0 1 2 3 4
Is port 0 the CPU?
I’ve tried several physical connections to eth0 an eth1 and always get the same result. Its as if there is an additional switch I’m not seeing. I also can’t figure out the hardware. swconfig dev [ar8216|ar9331|ar9330] show all fail to connect to the switch. swconfig dev eth1 show provides a result, but only shows two active ports regardless of physical connctions.
Put another way, lets say I want to put 3 vlans on the LAN port (eth1) and trunk them to an external vlan aware switch. We’ll call them 2, 4, and 8. What’s my network file look like? Do I need to install anything?
MmonaghanApril 30, 2016 at 9:06 pm #17178
- This topic was modified 1 year by Mmonaghan.
BumpalzhaoMay 3, 2016 at 2:03 pm #17341
AR150 has two Ethernet, one is eth0 and one is eth1. eth1 is one switch. So you only have
swconfig dev eth1 show
Eth0 is not a switch. You can use ethtool to detect if cable is connected.
For eth1, port 0 is cpu, port 1 is connected to RJ45. Other port are not exposed so you cannot connect.
I am not sure if you can set vlan on on RJ45 port.MmonaghanMay 3, 2016 at 8:34 pm #17356
Thank you Alfie,
Let me echo that back and make sure I understand. I’m adding the information from the Ar9331 documentation.
eth0 is connected to SoC < GE0 < PHY4 < (This port is not part of the SoC Ethernet Switch)
Eth0 lacks hardware support for Port or 802.11q VLANs.
eth1 is connected to SoC < GE1 < Ethernet Switch < MAC1 < PHY0 <
By default the Ethernet Switch on GE1 is configured:
All Ports VLAN 0
Eth1 should allow for 802.11q VLANs.
Does that all seem correct to you?
Must VLANs on eth1/Port1 also be tagged on CPU/Port0?
Is it possible to get into Failsafe mode in OpenWRT? I’m not seeing the indications from the lamps or UDP packet during boot. Guessing was that removed for the much better bootloader recovery…
MalzhaoMay 4, 2016 at 12:36 pm #17451
Yes. That is correct. Vlans should be tagged as well.
I even didn’t explore the failsafe mode of openwrt. Anyway the uboot has a UI which allows you to recover the system.
You must be logged in to create new replies.