banner
miaoer

miaoer

喵二の小博客 xLog 分站
tg_channel
telegram

Nanny-level CatWrt Quick Network Guide

Getting Started#

Applicable to the CatWrt series, as well as LEDE, not applicable to the OpenWrt mainline LuCI 18.06+. I think this method is relatively standard.

There are several ways to install CatWrt on the x86_64 platform:

  • Fresh installation (PE)
  • System upgrade (overwriting partitions on the existing system)
  • Container (LXC, Docker)

Here we use the PE method, which is suitable for most people, including virtual machine users. This also includes the Wireless router series for users with wireless routers. Please skip if not applicable.

However, virtual machines can directly import the hard disk. Importing the VMDK file directly is prone to corruption when power is cut off. VMware users are recommended to choose the PE installation method. PVE, UNRAID, and others can directly import virtual hard disk files.

Installation#

Fresh Installation (x86)#

Tools needed:

Here I will demonstrate it briefly. First, you need to install UltraISO. There are no special considerations here, just click "Next" to proceed.

Next, extract Ventoy and open Ventoy2Disk.exe. Select your USB drive for installation. Please note that your USB drive will be formatted, so make sure to backup your data.

Open the WEPE toolbox and select "Other installation methods - Generate bootable ISO" in the lower right corner.

Open the generated WEPE ISO file using UltraISO. If a prompt appears asking for a subscription, select "Continue Trial".

Then, put the IMG Writer and CatWrt img image into the ISO file. Here, I recommend using EFI firmware for new machines. When everything is processed correctly, the file structure should look like this.

image

| WEPE.ISO
.
├── EFI
├── WEPE
├── BOOTMGR
├── DiskImage_1_6_WinAll.exe
├── CatWrt.v23.8.x86_64-squashfs-combined-efi.img

Insert the USB drive with the keyboard and mouse connected to the machine, and then power on the machine. Select to boot from the USB drive and choose the WEPE option in the Ventoy interface. There is nothing specific to note here.

After entering the desktop, open "This PC" (File Explorer) and find the DVD drive labeled "WEPE Toolbox". Open the IMG Writer tool DiskImage_1_6_WinAll.exe and select your hard drive in "Write Image to" as Physical Disk 0(223.57 GB). Please note that selecting a partition here is incorrect.

Then, in the "Source File" section, click "Browse" to find the IMG image, and click "Start" to confirm and start writing the image to the disk. After the writing is completed, restart the system and remove the USB drive.

image

Regarding EFI firmware, if you encounter issues with booting, it is recommended to contact the industrial control machine manufacturer to inquire about how to enable UEFI and disable secure boot.

UBOOT (Wireless)#

For the Redmi AX6000 router, plug it in and press and hold for 15 seconds to access UBOOT at http://192.168.31.1.

For the TP-Link XDR 4288/6086/6088 router, plug it in and press and hold for 5 seconds to access UBOOT at http://192.168.1.1.

Select the image in the preview file and click "Update" to proceed.

Changing Network Segment (x86)#

If the network segment of CatWrt, which is 192.168.1.4/24, is different from your network architecture, you need to change it. In general, there is no need to change it~

Since it is not initialized yet, we will operate in the terminal. Enter nano /etc/config/network to start editing.

Find the option ipaddr '192.168.1.4' in the config interface 'lan' section and replace the IP address inside the single quotes. Be sure not to delete any punctuation marks!

After editing, press [ctrl]+[O] and you will see "File Name to Write: /etc/config/network". Press Enter to save. Then press [ctrl]+[X] to exit the nano editor.

Enter reboot to restart the system and apply the configuration changes.

Initialization#

In the following operations, the shortcut link is set to 192.168.1.4 by default. If you have modified the network segment, please manually enter it.

Change Password#

The default password is password. If your gateway needs to connect to the Internet and you have public network conditions (IPv4/v6), it is easy to be exposed to the public network and become a member of a zombie network. Therefore, we need to change our password.

After logging into the background, go to System-Administration and find the Host Password section. Enter your password and confirm it, then save it.

Lan (DHCP)#

Network-Interfaces-LAN

Here is an example for a four-port industrial control machine. By default, there are only eth0 (lan) and eth1 (wan, wan6). You can directly refer to the following configuration.

If it is a virtual machine or a dual-port industrial control machine, you don't need to do anything here. Just leave it as it is, or you can swap the ports if necessary.

  • General Configuration - Basic Settings

Protocol Name: Static address

IPv4 Address: 192.168.1.4

IPv4 Subnet Mask: 255.255.255.0

IPv4 Gateway: 192.168.1.4

IPv4 Broadcast: 192.168.1.0

Use custom DNS servers: 223.6.6.6 119.29.29.99

IPv6 Assignment Length: 60


  • DHCP Server - Basic Settings

Start: 20

Number of clients: 150

Lease time: 12h


  • DHCP Server - Advanced Settings

Force: (If you have a bypass gateway, please disable it. If you are using a router in AP mode, it is recommended to enable it.)


  • DHCP Server - IPv6 Settings

Router Advertisement Service: Server mode

DHCPv6 Service: Server mode

DHCPv6 Mode: Stateless + Stateful

Announced DNS servers: 240C::6666

Click Save and proceed to the next step without applying.

Multiple Network Ports#

  • LAN General Configuration - Physical Settings - Interfaces:

Bridged interface:

Ethernet adapter: "eth0" Ethernet adapter: "eth0" (wan, wan6)

Ethernet adapter: "eth1" Ethernet adapter: "eth1" (lan)

Ethernet adapter: "eth2" Ethernet adapter: "eth2" (lan)

Ethernet adapter: "eth3" Ethernet adapter: "eth3" (lan)


  • WAN/ WAN6 General Configuration - Physical Settings - Interfaces:

Ethernet adapter: "eth0" Ethernet adapter: "eth0" (wan, wan6)

......

Click Save and proceed to the next step without applying.

PPPoE#

By default, the connection is through DHCP. If you need to dial-up for internet access, click on the Protocol Name section and select PPPoE. Then enter your broadband account and password. For specific details, you can contact your ISP customer service or ISP installer.

Click Save and proceed to the next step without applying.

TurboACC#

Software Traffic Load Balancing:

DNS Cache:

DNS Resolution Method: Use PDNSD for resolution

Upstream DNS servers: 223.5.5.5,223.6.6.6,119.29.29.99,119.28.28.28

Click Save and proceed to the next step without applying.

UPnP#

It is recommended to enable UPnP to improve P2P efficiency. However, using UPnP may cause streaming media software and domestic downloaders (such as Thunder and Baidu Cloud) to use your broadband for commercial purposes.

Start UPnP and NAT-PMP service:

Enable UPnP function:

Click Save and proceed to the next step without applying.

WLAN (Wi-Fi)#

Because the wireless series is divided into mt7621 and mt798x, please choose accordingly.

For x86 and arm users, simply click Save and Apply.

  • Network - Wireless

ra0/radio0 is your 2.4G wireless. Modify it accordingly. rai0/radio1 is your 5G wireless. Modify it accordingly.

  • Interface Configuration - Basic Configuration

ESSID/SSID is the name of your wireless network. Enter it accordingly.

  • Interface Configuration - Wireless Security

Encryption: WPAPSKWPA2PSK/WPA-PSK/WPA2-PSK Mixed Mode

Password: Enter the password for your wireless network.

Click Save and Apply. Wait for about ten seconds without paying attention to the spinning circle. You can unplug and plug in the power to restart the system. The initialization is complete. From now on, your network will be unobstructed in the main router mode.

This article is synchronized and updated to xLog by Mix Space.
The original link is https://www.miaoer.xyz/posts/network/quickstart-catwrt


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.