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 = 10.0.0.1 -- netmask = 255.0.0.0 -- gateway = 10.0.0.138
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 10.0.0.138, 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.