How to Convert CentOS/RHEL 6/7 Computer into Router

This article mainly introduces the method of converting computers installed with CentOS/RHEL 6/7 into routers. We will learn how to use NAT technology to convert computers installed with RHEL/CentOS 6/7 into routers. Interested can learn more about it.

In this article, we will learn how to use NAT technology to transform a computer with RHEL/CentOS 6/7 into a router. As we all know, a router is a network device working in the third layer, which is used to connect two or more networks together, that is, to connect the LAN to the WAN or to connect the LAN directly. Routers are very expensive, especially for small organizations, which may be one reason why we pay attention to routers. Instead of using dedicated hardware, let’s convert Linux computers into routers.

We will talk about the operation process on RHEL/CentOS 6 and 7. But before we start, let’s look at what needs to be prepared.

Pre condition

  1. A computer with RHEL/CentOS 6 or 7
  2. Two network cards with local IP and extranet IP respectively
  3. We need to assign IP addresses to both network cards, one local network IP (provided by our network administrator) and the other Internet IP (provided by ISP). Like this:
    Ifcfg-en0s3192.168.1.1 (LAN IP address)
    Ifcfg-en0s510.1.1.1 (WAN IP address)
  4. Note: Different Linux distributions have different network card names. Now that the preparation is complete, we can configure it.

Enable IP forwarding

The first step is to enable IP forwarding. This step is the same in RHEL/CentOS 6 and 7. Run: $sysctl -w net.ipv4.ip_forward=1

But this will be restored after the system restarts. To make the restart still effective, you need to open it: $vi /etc/sysctl.conf

Then enter the following: net.ipv4.ip_forward= 1

Save and exit. Now the system has IP forwarding enabled.

Now configure IPtables/Firewall rules

Next we need to start the IPtables / firewalld service and configure the NAT rules

$systemctl start firewalld(For Centos/RHEL7)
$ service iptables start(For Centos/RHEL6)

Then run the following command to configure the NAT rules of the firewall

$ iptables -t nat -A POSTROUTING -o XXXX -j MASQUERADE
$ service iptables restart
$ firewall-cmd -permanent -direct -passthrough ipv4 -t nat -I POSTROUTING -o XXXX -j MASQUERADE -s
$ systemctl restart firewalld

Here, XXXX is the name of the network card with an external IP. This will configure the Linux machine as a router. Now we can configure the client and test the router.

Configure client

To test a router, we need to set the client’s gateway to an intranet IP, in this case So whether the client is Windows or Linux, make sure the gateway is first. After completion, open the terminal or command line and Ping a website to test whether the client can access the Internet:


We can also check it by visiting websites through web browsers.

Above is the whole content of this article, I hope it will be helpful to everyone’s study, and I hope you will support my website more.

Web Configuration of Huawei AR Series Routers

How does Huawei router configure servers in the Intranet to be accessible in the External Network? Now I have sorted out the configuration method of Huawei AR series routers, which can help those novices like me. You can refer to it.

How does Huawei router configure servers in the Intranet to be accessible in the External Network? Currently, the online configuration tutorials are all command-line. It’s painful for a novice like me to have no web tutorials.

What have I done to set up Huawei AR router

After searching for a large circle on the Internet and failing to find the detailed configuration method of WEB, we finally got it through our own slow exploration and guess. So we have this tutorial to help novices like me.

Huawei AR routers should be configured in the same way. If the web interface is different, you can try upgrading the system.

When there is no port reflux, only the external host can access the internal server through the IP + port number of the external network. After the port reflux is opened, the intranet host can also access the intranet server through the IP + port number of the external network. The specific reason is Google itself. I will not elaborate here.

How to set

  1. I need both the intranet and the intranet to access the intranet server ( through the IP + port number of the extranet (
  2. Open the browser to access the routing management page, default address
  3. Enter the administrator’s username and password in the login interface and click login. The default username is admin’s default password: [email protected]
  4. When you log in, default display of the main interface. Click on the toggle button in the upper right corner.
  5. Click Cancel on the pop-up prompt box.
  6. After the last step, I switched to the WEB network management interface, and immediately began to get to the point.
  7. Click on the IP service on the left.
  8. Click NAT.
  9. Check the FTP option and click the OK button.
  10. Click Safety on the left.
  11. Select the Advanced ACL Configuration tab, click the New button, enter the ACL name a3002, and then click ok.
  12. Click on the advanced button that just popped up.

How to configure Cisco router

Static routing refers to the routing information that is manually configured by network administrators. Default routing is a special static routing. The following article introduces the configuration of static routing and default routing using Cisco simulator. I hope it will be helpful to you all.

Static routing refers to routing information that is manually configured by network administrators. When the network topology or link state changes, network administrators need to manually modify the static routing information in the routing table.

Default routing is a special static routing, which means that when there is no matching table item between the destination address of the packet in the routing table, the router can make a choice. If there is no default routing, packets with destination addresses that do not match table entries in the routing table will be discarded.


  1. Familiar with the boot interface of router.
  2. Master the basic settings of routers.
  3. Understand the router port and its number.

Experimental environment

  1. Router R1’s f0/0 port is connected to switch S1, and S1 to host PC1 and PC2.
  2. Router R3’s f0/0 port is connected to host PC3.
  3. Router R4’s f0/0 port is connected to host PC4

IP address settings for PC1~PC4


  • IP address:
  • subnet mask:
  • default gateway:


  • IP address:
  • subnet mask:
  • default gateway:


  • IP address:
  • subnet mask:
  • default gateway:


  • IP address:
  • subnet mask:
  • default gateway:

Router R1 configuration

Router R2 configuration

Router R3 configuration

Router R4 configuration

A Fast Way to Find Wireless Password

Nowadays, notebooks, tablets and mobile phones all need wireless networks. But what if the wireless password is forgotten? Now the editor tells you several ways to quickly find the wireless password. Let’s see it with interested friends.

Go to the management page of the router to retrieve or change the password

  1. View the management page address behind the router and enter it in the browser.
  2. After entering, you will be prompted to enter the account password. The old router will typically enter the account password. The account password is admin by default. The new version of the router will input itself when it is first set up.
  3. Modify the password.

Search for passwords previously lost on laptops

  1. Right-click the desktop “Network” button and select the “Properties” in the menu. A window will pop up at this time.
  2. Click on the “Wireless Network Connection” button, the system will pop up the window
  3. Click on the Wireless Properties button and a new window will pop up.
  4. Click on the display character to see the wireless password in the current wireless network.


The above is a quick way to check the wireless password I introduced to you. I hope it will help you. If you have any questions, please leave a message for me. I will reply to you in time. Thank you very much for your support to my website.

TP-LINK TL-R483 Wan Port Settings

TP-LINK TL-R483 is an enterprise router. It has built-in AC function. It is not only a router but also a wireless controller. It can manage and control up to 10 TP-LINK enterprise AP in a unified way. It can easily expand the enterprise wireless network. Here comes the method of setting up TP-LINK TL-R483 port. I hope it will be helpful to you all.

Transmission Rate: 10/100Mbps Port Structure: Non-modular WAN Interface: 1-4 LAN Interfaces: 1-4, supporting ISP data routing and intelligent load balancing; supporting IP and MAC binding, effectively preventing ARP attacks; supporting bandwidth control, flexible user bandwidth control; supporting connection number restriction, which can effectively limit P2P software.

For routers in multiple wans, users can choose multiple ISP service providers. They can choose both Telecom and mobile access at the same time to provide bandwidth and realize multiple access backup. Next, share the setup steps in Dowan.


When you log in for the first time, you need to confirm that you have completed the following items:

  1. The router has been powered up normally and the LAN port has been connected with the computer through the network cable.
  2. The IP address of the host computer has been set to the same segment as the LAN port of the router, i.e. 192.168.1.X (any integer between X and 254), the subnet mask is, and the default gateway is the router management address You can also choose “Get IP Address Automatically” to automatically assign IP Address through Router DHCP.
  3. In order to better experience the display effect of the Web interface, it is suggested that the resolution of the display be adjusted to 1024 *768 or more pixels. Open IE browser and enter in the address bar to login to the Web management interface of the router.

Configure router

The first login interface of the router is shown in the following figure. When you first log in, you need to set up your own administrator account, enter the user name and password in turn, and then enter the password again to confirm. After the input is completed, click OK to enter the router configuration page with the set account password on the login page.

The setup wizard interface will pop up after successful login. If there is no automatic pop-up, you can click the Quick Configuration button on the left side of the home page to enter. In this interface, choose the number of WAN ports, here to choose two WAN ports as an example.

Click Next to set the WAN1 port. As shown in the figure, there are three common ways of network connection. Please choose the service provided by ISP network service provider.

The general way is PPOE dial-up mode, but also static IP or dynamic access, the specific situation is provided by the service provider.

If the Internet access mode is “PPPoE dial-up”, that is, ADSL virtual dial-up mode, you need to fill in the following contents as shown in the figure, which is also the account password provided to you by the service provider.

If the Internet access mode is “dynamic IP”, the IP address can be automatically obtained from the network service provider without filling in any content.

If the mode of Internet access is “static IP”, i.e. the fixed IP address provided by the network service provider, the exact parameters of IP address, subnet mask, gateway and domain name service need to be filled in, otherwise the Internet can not be accessed.

After setting the WAN1 port, click Next to enter the WAN2 port setting interface, as shown in the figure. If you need to set it up, the setup step is exactly the same as that of WAN1 port. If you don’t need to set it up, you can click Next.

The successful interface information of the previous step will be displayed. If you need to modify it, you can click <Last Step> to go back to the WAN port to set up the interface. If there is no modification, click <Next>, the router will automatically configure and restart, as shown in the figure. After the reboot is completed, it will jump to the login interface. If you need to do other operations on the router, you can login again.

WiFi Signal Enhancement Method for TP-LINK Router

If only one router is used for wireless network coverage, the coverage of a single wireless router is limited, and the signal may be very weak. This article will introduce the method of TP-LINK to enhance wireless WiFi signal, for your reference.

In most home environments, only one router is used for wireless network coverage. The coverage of a single wireless router is limited, and the wireless signals in some areas may be weak or even can not be found.

So how to enhance the wireless WiFi signal? This paper introduces a method to improve the coverage effect of a single wireless router.

Adjust the best placement

If the housing space is not open enough and there are barriers such as partitions and walls, it will cause the wireless signal to attenuate too much when penetrating, and the coverage will be greatly reduced. Some users put the router in the weak box, closet or embedded wall, the antenna can not be deployed, and the surrounding panel will shield the wireless signal, resulting in poor signal quality.

It is suggested that the best place should be chosen. The following requirements can be consulted:

  1. Choose the central location of the building structure as far as possible, so that the terminal receives signals at all locations through the least wall.
  2. Avoid “hiding” routers, put them in a higher position, and make routers open around. If the location is too low, the wireless signal will encounter more obstacles such as furniture and electrical appliances in the transmission process, resulting in greater signal attenuation.

Adjusting Reasonable Antenna Angle

Omnidirectional antenna is commonly used in household routers. The distribution of the wireless signal of the omnidirectional antenna is similar to that of the flattened ellipsoid, and the coverage effect of the wireless signal is the best in the direction perpendicular to the antenna.

It is suggested that the antenna of the wireless router be adjusted to be perpendicular to the ground, i.e. 90 degrees from the ground.

Important: The built-in antennas of some terminals may have different angles, or the mobile terminals such as mobile phones and Pads may have different angles, which will cause differences in the reception of wireless signals. We can try to adjust the angle between some antennas of routers and the ground to 0 degrees (that is, to adjust to the level).

Increase signal intensity

Different routers have different ways to increase signal strength. Please refer to the following methods according to the actual situation:

  1. Some routers have a Turbo button. Pressing the Turbo button can enhance wireless coverage with one click.
  2. Log in to the Router Management Interface, click Application Settings > Signal Adjustment, and select Enhancement

Note: Some routers may not have signal strength adjustment options, so they can try to find settings in wireless settings.

Avoid environmental interference

Most household devices work in 2.4 GHz band, which will interfere with the 2.4 GHz wireless signal of router, resulting in signal attenuation and slow network speed. Wireless routers should be as far away from microwave ovens, Bluetooth devices, wireless mouse keyboards and other devices as possible to reduce microwave interference in the same frequency band.

If multiple routers in adjacent environments use the same channel, the wireless coverage effect will also be affected. It is suggested to modify the wireless channel. Log in to the router management interface, click Routing Settings > Wireless Settings, fix the wireless channel to 1, 6 or 11, click Save.

Replacement of high gain antenna

If the antenna of the wireless router is removable, the high gain antenna can be replaced as needed.

Note: At present, only some antennas of Tp-link dual-band wireless routers can be removed and replaced, such as TL-WDR4310, TL-WDR3310, TL-WDR3300, etc.

According to the above adjustment, the coverage effect is still not good. What should we do?

If the housing area is too large or the double structure, a single wireless router will inevitably have coverage blind spots. The wireless expander can be used to relay and amplify signals to easily expand the wireless coverage!

TP-LINK setting up wireless bridging method

What if the wireless effect of the home router is not good? Bridging a wireless router to increase the wireless range is a good way to enhance the signal. Let’s take TP-LINK as an example to demonstrate how to set up a bridging wireless router. I hope it will be helpful to you all.

If the home router wireless effect is not good, how to solve it? Or too far to find the signal? Many people will choose to bridge the wireless router to increase the wireless range and enhance the signal. Now let’s show you how to set up bridged wireless routers.

Step by step setting up wireless bridging

  1. Today’s routers are very intelligent, and now there are common TP-link routers on the market as a demonstration.
  2. First, after the first wireless router is set up, there is no need to change (the setting method is not described in detail here). The second router is connected to the LAN port of the router by a computer through a network cable, or to the initial wireless (no password) of the second router by a mobile phone. Firstly, after the first wireless router is set up, there is no password. There is no need to change after the line (the settings are not discussed here). The second router uses electricity to connect the computer with the LAN port of the router, or to connect the initial wireless (no password) of the second router with the mobile phone.
  3. In the browser address bar login router settings interface, commonly used for example But the login name of each manufacturer is different, you need to check the router instructions.
  4. After login, the online settings are automatically acquired and wireless bridges are selected in the application or settings bar. Then pop up the nearby wireless list, select the network that needs to be bridged, and enter its login password.
  5. Then the system will automatically set the LAN port to different IP addresses of the same network segment. If the router does not have this function, you need to change it manually. (For example, the first router LAN IP is, and the bridged router LAN IP needs to be changed to A manual configuration of a “
  6. Then I will ask you if you need to change the wireless name and password to the same one. It doesn’t matter here. Here we change it to something different for the sake of being obvious.
  7. And then it’s done. This router can be connected to the Internet by switching on power as long as it is in the last wireless range.
  8. Let’s look at the DHCP settings again and find that the router is in (automatic selection) mode and the DHCP service is closed. This function needs to be turned off in bridge mode. If you don’t turn it off for you, you need to turn it off manually. Must!!!!!

What happens when the sub-routing DHCP is turned on

Generally speaking, the sub-routing in bridging mode automatically shuts down the DHCP server. It’s not impossible to turn it on. In a network, devices get addresses from the nearest DHCP server. But notice!!! Must be configured!

  1. The DHCP gateway of the secondary router must be changed to “LANip of the main router”. “Can’t be the lanip of the sub-routing”. Otherwise, you may not be able to access the Internet.
  2. And the DHCP address pool of the secondary route must be staggered from the main route. For example, the main route IP 3-100 sub-route 101-200. If the address pool is the same, if two devices may get the same IP address from two DHCP servers, there will be a conflict. Causes the Internet to be unable to access.
  3. The sub-routing DNS domain name resolution server fills in the same way as the main routing. So the default DHCP server can not be configured, which may lead to network failure. Therefore, in order to save time, the DHCP service of sub-routing is generally not opened.

How to set up router connection and disconnection time?

In order to form a good habit of work and rest, you can set the time of networking and disconnection for the router at home, and then the network will be disconnected naturally. So how to set it up? Next, take TP-Link router as an example to introduce the following specific setup steps, hoping to help you all.

Many friends have very poor self-control ability. They often surf the Internet all night, which affects their work the next day. In fact, the router at home can set the time for them to surf the Internet and disconnect the internet, so as to limit the Internet access and form a good habit of working and sleeping. Let’s take the TP-Link router as an example.

Setup method

  1. We first connect the router’s network with a computer, and then search the login interface of the TP router on the web page.
  2. We need the login administrator password, which was set when the original password, if you forget to follow the instructions below, the router can be restored to factory.
  3. After entering the router page, the left side is the network status, drop down the progress bar on the right, see the following is an orange device management, click Open
  4. Select the network you want to set, click Management, and then add the allowable time period at the bottom of the time setting.
  5. Then we enter the settings of the time period, we can name the name of the time period, and then select the start and end time. Another is to choose the day of the week.
  6. After you have selected all of them, press OK, then you will see that there will be a limited network time period under the network you set up. The router automatically opens and closes at this time.

How to Set up the New Tenda Router

Compared with the old version of Tenda router, the new version uses a new system. Some novices do not know how to start after they get the new version of the router, so how to set up the new router? Let’s take Tenda AC7 dual-band wireless router as an example to show you how to set up a new Tenda router.

Nowadays, many router settings are more intelligent and simpler than the old routers. At present, Tenda’s new wireless router adopts a new firmware system, which is quite different from the old version of Tenda router in setup. Next, I take Xintengda AC7 dual-band wireless router as an example to teach you how to set up the new Tenda router. Hope to help you all!

Router installation

The installation of the router is very simple. It only needs to turn on the Tenda AC7 router and make the router work properly. Then connect the router to the cat and the computer using the network cable.

Tenda AC7 Wireless Router Setup Course

Traditionally, we all connect routers to computers through network wires, and then complete the initial setup of wireless routers on computers. First, we introduce the method of setting Tenda AC7 routers on computers.

  1. First, enter the Tenda Router Administrator’s login address in the computer browser, (or opens, and click on “Experience Now” below.
  2. Then Tenda AC7 router will automatically detect the broadband connection mode, wait a few seconds, according to the test results set parameters, the general home broadband is dial-up Internet access, which is shown below in the setup interface, as long as you fill in the broadband account, broadband password, click “next step” after completion.
  3. After completing the broadband account password filling, the next step is to set up WiFi. The operation is simple. You can create WiFi name, WiFi password and login password according to your own preferences.

Tip: WiFi name and password can be set according to your own preferences, but in order to prevent Lao Wang rubbing the Internet next door, it is suggested that WiFi password should not be too simple. In addition, if you don’t remember too many passwords, you can also check to set the wireless password as the router administrator password at the same time. If you want to set up the administrator login router surface separately, then you don’t need to check it. The next step is to set up the administrator login router surface separately.

The last straight point, the next step, you can complete the router settings. Finally, you can open the web page to see if you can surf the Internet properly.

It is worth mentioning that in the new version of Tenda wireless router, the use of computer settings is relatively complex, because direct use of mobile phones or APP can more easily complete the router settings, without the trouble of connecting computers.

Setting up Tenda AC7 Wireless Router on Mobile Phone

Nowadays, every family does not necessarily have a computer, but it is certain that every family has a mobile phone. The use of mobile phones to set up a new version of Tenda router is simpler. Here is a brief introduction of the following methods and steps.

  1. Firstly, install the Tenda AC7 router, plug in the power supply, and connect the router to the modem (no need to connect the computer)
  2. Connect Tenda AC7 initial WiFi with your mobile phone, and then call Tenda Router Administrator’s login address (or on your mobile phone.
  3. After opening, follow the prompt, set the broadband account and password, and then continue to set WiFi.

Setting up a router on a mobile phone makes it easier to take a few steps.

Solutions to WiFi disconnection or slow speed

Recently, the home wireless crash, always appear disconnection or slow speed, how to solve this problem, the following edition will bring you a detailed solution, let’s take a look at it.

Recently, when my laptop connects to WiFi, it’s often disconnected or slow, and plug-in wires don’t exist at all. After that, I tried to set up the computer wireless network card and successfully solved this problem. Now I will share this operation skill.

Computer WiFi is often disconnected or slow

  1. First, on the start icon in the lower left corner, click the right mouse button, and then click Open Device Manager.
  2. After opening the computer device manager, expand the “network adapter”, and then on the device with the name of the wireless network card with Wireless, click the right mouse button, and then click to open the “properties”
  3. After opening the wireless network properties, switch to Advanced Options, then click 802.1 on the left, then change the default “Long and Short” on the right to “Long only”, and then click “Make sure to save” at the bottom. It is worth mentioning that the settings here are different for different computers. For example, some computers are like the following, and the operation is similar. Change Automation to 20 Mhz.
  4. Finally, restart the computer in order to take effect. After restart, the problem is solved. Very few computers with WiFi are easy to drop or slow down.

In fact, some computers connected to WiFi are unstable or slow, mainly because of compatibility problems between the 11ac standard wireless network card and 802.11n router, which can be avoided by the simple settings mentioned above. If you encounter Internet users who are easy to disconnect or slow to connect to WiFi, you might as well try it.