you can pass internet connection from an Ethernet VLAN to the main Wi-Fi connection on OpenWRT. To achieve this, you'll need to configure VLANs and firewall rules correctly. Here's a general outline of the steps involved:
-
Configure VLAN on the Switch:
- Log in to your OpenWRT router's web interface or connect via SSH.
- Navigate to Network > Switch.
- Create a new VLAN (e.g., VLAN 11) and assign it to the appropriate physical Ethernet port.
-
Assign VLAN to LAN Interface:
- Under Network > Interfaces, edit the LAN interface.
- In the "Physical Settings" section, assign the VLAN 11 to the LAN interface.
-
Configure DHCP for VLAN:
- Under Network > Interfaces, edit the newly created VLAN interface (e.g., VLAN 11).
- Configure DHCP for this interface to provide IP addresses to devices connected to the VLAN.
-
Create Firewall Zone:
- Under Network > Firewall, create a new firewall zone for the VLAN (e.g., VLAN_ZONE).
- Assign the newly created VLAN interface to this zone.
-
Allow Forwarding:
- Under Network > Firewall > Traffic Rules, create a rule to allow forwarding from VLAN_ZONE to the WAN (Internet) zone.
-
Configure Wireless Settings:
- Go to Network > Wireless and edit your main Wi-Fi interface.
- In the "Interface Configuration" section, assign the VLAN 11 to the Wi-Fi interface.
-
Apply Changes:
- Save your configurations and apply the changes.
By following these steps, you should be able to pass the internet connection from Ethernet VLAN 11 to the main Wi-Fi connection on your OpenWRT router. Devices connected to the main Wi-Fi network should now have internet access through this VLAN. Make sure to adjust the VLAN IDs and configurations according to your specific network setup.