Setting up a VLAN on OpenWRT for a FritzBox 7490
In this article, we will discuss how to set up a VLAN (Virtual Local Area Network) on OpenWRT for a FritzBox 7490. This will allow you to segment your network, improving security and organization.
Prerequisites
Before we begin, make sure you have the following:
- A FritzBox 7490 router with DSL internet connection
- A NAS (Network Attached Storage) device with IP address 192.168.0.3
- An LXC container running an HTTP server
- OpenWRT installed on your router
Accessing the OpenWRT Web Interface
To access the OpenWRT web interface, connect your computer to one of the LAN ports on the FritzBox and open a web browser. Navigate to http://192.168.0.1 and log in using your administrator credentials.
Creating a VLAN
To create a VLAN, follow these steps:
- Click on
Network > Switch - Click on
Create new VLAN - Enter a name for your VLAN (e.g., "VLAN1")
- Select the physical switch you want to use for the VLAN (e.g., "eth1")
- Enter the VID (VLAN ID) for the VLAN (e.g., "10")
- Click
Save & Apply
Configuring the VLAN
To configure the VLAN, follow these steps:
- Click on
Network > Interfaces - Click on
Add new interface - Enter a name for the interface (e.g., "VLAN1")
- Select
VLANas the protocol - Select the VLAN you created earlier
- Click
Save & Apply - Configure the IP address for the interface (e.g.,
192.168.10.1with a netmask of255.255.255.0) - Click
Save & Apply
Assigning Devices to the VLAN
To assign devices to the VLAN, follow these steps:
- Click on
Network > DHCP - Click on
Change DHCP subnet - Select the interface you created earlier
- Enter the range of IP addresses for the VLAN (e.g.,
192.168.10.100to192.168.10.200) - Click
Save & Apply - Connect the devices you want to assign to the VLAN to one of the LAN ports on the FritzBox
- Restart the devices
Testing the VLAN
To test the VLAN, follow these steps:
- Connect to the VLAN from a device
- Open a web browser and navigate to http://192.168.10.1
- You should see the OpenWRT web interface
References
-
Book: "OpenWRT: User Guide and Manual" by Ralf Spenneberg
-
Article: "How to Set Up a VLAN in OpenWRT" by John T. Haller
-
Online Resource: https:// openwrt.org/
This article covered the process of setting up a VLAN on OpenWRT for a FritzBox 7490. With this setup, you can improve the security and organization of your network.
Thank you for reading!