Install the Realtek 8186 NIC Driver and network settings on Red Hat Linux Enterprise4

Source: Internet
Author: User

The Red Hat Linux guest ise4 operating system is finally ready. After the startup is successful, it is found that most drivers are good, but the NIC driver is not one of the most important drivers. Therefore, the most urgent task is to deal with the network.

First, we found that the installation CD contains the Linux driver directory, but it is still the C language Source, and you need to compile it yourself. It doesn't matter. We copy the Source directory, such as the REALTEK8186 directory, to the current user directory, and then proceed to the root user's permissions. Check whether the/sbin/directory has been added to the current PATH. If no PATH is added, modify it by yourself ~ Add the/sbin/directory to the/. bashrc file. Refer to the readme file. There is a make option in it. If you drop this Source, you can find a compiled xxxxx. ko file. The ko file is the driver. You only need to use the insmod command to load the ko module into the system and start the NIC to work. However, let's let the system automatically do this every time it starts up. Edit the/etc/rc. d/rc. sysinit file and load the ko file to the system at startup. Add the insmod xxxxx. ko file at the end of the rc. sysinit file. Of course, you must make up the path of this ko file. In this way, after you restart, you can use the ifconfig-all command to see that your network adapter eth0 is working.

However, your Nic can be found, but the NIC address, gateway, and DNS configuration are not available, so you still cannot access the Internet at this time. Next, run the netconfig command to configure the network, because DHCP is used here to obtain the network address, so you only need this sentence.

[Root @ localhost ~] # Netconfig-d eth0 -- bootproto = dhcp

If you manually set the IP address, subnet mask, and gateway

[Root @ localhost ~] # Netconfig-d eth0 -- ip = -- netmask = -- gateway =

In this way, you will find an additional ifcfg-eth0 file in your/etc/sysconfig/network-scripts directory, which records your network settings. You only need to start the network after running/etc/init. d/network start. However, the network is still not good when the computer starts up next time, so it is at/etc/rc. d/RC. put/etc/init. d/network start is also written and automatically executed at startup.

Finally, let's talk about DNS settings. in Linux, DNS is recorded in/etc/resolv. in the conf file, the initial file is empty. Add the following nameserver, where the IP address is the name of my DNS. In this way, I start Linux again and open a browser to find that Google surfing can be connected smoothly.

These are some of my experiences and experiences when I installed Linux. I hope others will be able to use it even if they have read it, so they can avoid detours.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.