OpenWrt x86 PC: Install Ethernet Adapter

Updated on Jun 20,2024

OpenWrt x86 PC: Install Ethernet Adapter

Table of Contents

  1. Introduction
  2. Downloading the Firmware
  3. Hardware Overview and Installation
  4. Configuring the Network Interfaces
  5. testing the Network Connection
  6. Logging into OpenWrt
  7. Managing Network Interfaces
  8. Conclusion
  9. Additional Resources

Introduction

In this article, we will guide you through the process of installing a four-port network Ethernet adapter on an x86 computer and configuring it to use the onboard network port as the main interface. We will provide step-by-step instructions for downloading the firmware, providing a hardware overview, and installing the adapter. Additionally, we will show you how to configure the network interfaces, test the network connection, and log into OpenWrt. By the end of this article, you will have a better understanding of how to set up your OpenWrt router with a four-port network adapter.

🌐 Download the Firmware

Before we begin, let's navigate to the OpenWrt website and download the firmware. We recommend selecting the stable release that is compatible with your x86 64-bit system. Once the firmware is downloaded, we can proceed with the installation.

Hardware Overview and Installation

Let's start by providing a hardware overview of the x86 OpenWrt router. The router is powered by an Intel L5630 CPU and has 4 gigabytes of RAM. It features an onboard network port that utilizes Realtek chipsets. To expand the number of network ports available, we will be installing an Intel Ethernet Server Adapter I340-T4, which provides four additional network ports. Since the L5630 CPU does not have an integrated GPU, a separate video card is required for video output. With no available PCIe x86 slot, a PCIe riser is used to accommodate the video card.

To install the firmware, we'll need a USB drive. Insert the USB drive into the appropriate port and use a program like Rufus to write the firmware image. Once the firmware is successfully written to the USB drive, we can move on to the next step, which is the hardware installation.

Configuring the Network Interfaces

With the OpenWrt router powered on and running the 19.07.7 version, we can now proceed to configure the network interfaces. We will first identify the Ethernet interfaces by running the "ip link" command. This will display the available interfaces, including the newly detected Ethernet adapter card.

To determine which interface corresponds to the onboard network port, we will check the MAC addresses of the interfaces. From the output of the "ip link" command, we can see that the interface "eth4" corresponds to the onboard network port. We will modify the network configuration file to assign the appropriate interfaces.

Using the V editor, we will modify the LAN interface and assign it to "eth0, eth1, eth2, and eth3". Additionally, we will change the WAN interface to "eth4". After making the necessary changes, we will save the file and restart the network service for the changes to take effect.

Testing the Network Connection

To ensure that the network configuration is successful, we need to verify the internet connection. We can do this by pinging a known IP address, such as "1.1.1.1". A successful response indicates that the connection is working correctly.

Next, we will connect a Raspberry Pi 4 to one of the LAN ports of the OpenWrt router. If the connection is established successfully, we should see activity on the network port of the Raspberry Pi 4. If there are any issues, we can use the "mtr" command to diagnose the problem further.

Finally, we will perform a final check by connecting a device to the WAN port of the router. We should see the device receive an IP address from the DHCP server of the router. To access the OpenWrt router's web interface, we can enter "192.168.1.1" in a web browser. Since no password is set by default, we can log in without any credentials.

Logging into OpenWrt

After successfully logging into the OpenWrt router, we will be greeted with the web interface. Here, we can see the version of OpenWrt running on the Intel L5630 CPU with 4 gigabytes of RAM. In the DHCP leases section, we can see other devices connected to the network, such as the Raspberry Pi 4 and an Android phone.

In the network interfaces section, we can edit the physical settings and reassign network ports as needed. This gives us flexibility in configuring our network setup to suit our requirements. OpenWrt provides a range of options and settings to customize and optimize our network.

Managing Network Interfaces

Managing the network interfaces in OpenWrt is straightforward and user-friendly. By accessing the web interface, we can easily make changes to the network settings, assign specific ports, and troubleshoot any network-related issues. The intuitive interface makes it easy for both beginners and advanced users to navigate and manage their network setup.

Conclusion

In conclusion, we have successfully installed a four-port network Ethernet adapter on an x86 computer and configured it to use the onboard network port as the main interface. With the OpenWrt router up and running, we have tested the network connection, logged into the web interface, and learned how to manage and customize our network setup. OpenWrt provides a powerful platform for network enthusiasts to explore and optimize their network configurations.

Additional Resources

For more information about OpenWrt and advanced network configuration, please check out the following resources:

  1. OpenWrt Website
  2. Advanced Corner YouTube Channel
  3. OpenWrt Guide Playlist

Highlights

  • Install and configure a four-port network Ethernet adapter on an x86 computer
  • Assign the onboard network port as the main interface and the four network ports as LAN interfaces
  • Download the firmware from the OpenWrt website and write it to a USB drive
  • Verify the network connection and test connectivity to external IP addresses
  • Log into the OpenWrt web interface and manage network interfaces
  • Customize and optimize network settings based on individual requirements

FAQ

Q: Can I use a different Ethernet adapter card instead of the Intel Ethernet Server Adapter I340-T4? A: Yes, you can use a different Ethernet adapter card as long as it is compatible with OpenWrt and provides the required number of ports.

Q: How can I change the IP address range of the LAN interface? A: To change the IP address range of the LAN interface, you can modify the network configuration file and restart the network service. You can access the network configuration file through the OpenWrt web interface or via SSH.

Q: Can I connect multiple devices to the LAN ports of the OpenWrt router? A: Yes, you can connect multiple devices to the LAN ports of the OpenWrt router. The number of devices you can connect will depend on the capacity and performance of the router and the Ethernet adapter card.

Q: Does OpenWrt support wireless connectivity? A: Yes, OpenWrt supports wireless connectivity. You can configure wireless interfaces and access points through the OpenWrt web interface or via SSH. Wireless functionality may require additional hardware, such as WiFi cards or antennas.

Q: Are there other alternative firmware options besides OpenWrt? A: Yes, there are other alternative firmware options available for routers, such as DD-WRT, Tomato, and LEDE. Each firmware has its own features and advantages, so it's recommended to research and choose the one that aligns with your specific needs and preferences.

Most people like