AKZN Notes

Archives for My Lazy and Forgetful Mind

Configuring VLAN Routing: Passing Ethernet VLAN to Main Wi-Fi on OpenWRT

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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Allow Forwarding:

    • Under Network > Firewall > Traffic Rules, create a rule to allow forwarding from VLAN_ZONE to the WAN (Internet) zone.
  6. 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.
  7. 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.

Leave a Reply

Your email address will not be published.