Step-by-Step Guide to Opening OpenWrt Install OpenWrt on Your Home System Download the latest OpenWrt image from the official website. Extract the downloaded ZIP file to your Downloads folder. Install OpenWrt on Your Work System Download the latest OpenWrt image. Extract the downloaded ZIP file to your Downloads folder. Configure the Router Image Open the OpenWrt CLI On your home system: openwrt-clm On your work system: openwrt-clm Add the Router's Interface Open the CLI and type: netifaces Navigate to your router's IP address and click "Add". The default interface will be "router1". Set Up Interface Settings Open the CLI: config-iface Navigate to "interface router1" Set mask to 255.255. and Interface ID to your desired name. Press Enter. Configure Router Settings Open the CLI: config-router Navigate to "config-router router" Set IP adapter to "default", IP to 168.1.1, and Use port to "Yes". Save the config...
Step-by-Step Guide to Opening OpenWrt
-
Install OpenWrt on Your Home System
- Download the latest OpenWrt image from the official website.
- Extract the downloaded ZIP file to your Downloads folder.
-
Install OpenWrt on Your Work System
- Download the latest OpenWrt image.
- Extract the downloaded ZIP file to your Downloads folder.
-
Configure the Router Image
- Open the OpenWrt CLI
- On your home system:
openwrt-clm - On your work system:
openwrt-clm
- On your home system:
- Add the Router's Interface
- Open the CLI and type:
netifaces - Navigate to your router's IP address and click "Add".
- The default interface will be "router1".
- Open the CLI and type:
- Open the OpenWrt CLI
-
Set Up Interface Settings
- Open the CLI:
config-iface - Navigate to "interface router1"
- Set
maskto255.255.andInterface IDto your desired name. - Press
Enter.
- Open the CLI:
-
Configure Router Settings
- Open the CLI:
config-router - Navigate to "config-router router"
- Set
IP adapterto "default",IPto168.1.1, andUse portto "Yes". - Save the configuration.
- Open the CLI:
-
Set Up Network Segments
- Open the CLI:
config-router config-segment - Navigate to "net1"
- Set
IPto168.1.1,Portto88, andAuto-assignto "Yes". - Save the configuration.
- Open the CLI:
-
Configure Default Port
- Open the CLI:
config-router config-default - Set
IPto168.1.1andPortto88. - Save the configuration.
- Open the CLI:
-
Set Up MAC Address
- Open the CLI:
config-router config-mac - Set
Macto:Aand pressEnter.
- Open the CLI:
-
Configure IP Route
- Open the CLI:
config-router config-addr - Navigate to "ip1" and set
IPto168.1.1,Auto-assignto "Yes". - Save the configuration.
- Open the CLI:
-
Add Another IP Route
- Change route name to "ip2".
- Set
IPto168.1.2and pressEnter.
-
Firewall Configuration
- Open the CLI:
config-router config-ports - Navigate to "net1" and set
Portto443(for firewall). - Ensure the firewall is open.
- Open the CLI:
-
Test the Router
- Log in as a guest user.
- Type commands like
ip addressorconfig routerto check network status and default port.
Troubleshooting Tips
- IP Address Conflicts: Ensure your IP addresses are unique and not assigned to the same interface.
- Network Segmentation: Use multiple segments for different networks or friends.
- Firewall Configuration: Ensure the firewall is correctly set up on one of the routes.
By following these steps, you should have a functional OpenWrt router setup with proper configuration and routing.

相关文章








