Redhat Nic configuration driver installation

Source: Internet
Author: User
Run the command kudzu -- probe -- classnetwork to configure the driver for the redhat Nic. The model of the NIC and the number of NICs on the machine are displayed. run the command to check whether the kernel package is fully installed. The details are as follows: if the installation is complete, the following packages are displayed: kernel-xen-devel -...
Run the command kudzu -- probe -- class = network to configure the driver for the redhat Nic. The model of the NIC and the number of NICs on the machine are displayed. run the command to check whether the kernel package is fully installed. The details are as follows: if the installation is complete, it will show the following packages: kernel-xen-devel-2.6.18-8.el5 kernel-devel-2.6.18-8.el5 kernel-2.6.18-8.el5 kernel-xen-2.6.18-8.el5 if not fully installed, in redhat enterprise Linux 5.0, you can find the corresponding package under the first ISO Server file directory, copy it to a specific directory, enter the directory, and run the following command to install it: [root @ localhost kernel] # rpm-ivh kernel-devel-2.6.18-8.el5.x86_6 4. rpm note: If these packages are not fully installed, an error will be reported during Nic compilation, indicating that the src directory file cannot be found. Run the following command to check whether GCC is installed. it is usually better to check whether it is installed. Whereis-B gcc www.2cto.com gcc:/usr/bin/gcc/usr/lib/gcc/usr/libexec/gcc Step 3: copy the downloaded r8169 driver file to a directory, I put in the tmp Directory, unzip: tar jxvf r8169-6.003.00.tar.bz2 Step 4: Enter the unzip to the driver Directory, command: cd r8169-6.003.00 to enter the src Directory, command: cd src to check whether there is a NIC driver module, command: lsmod | grep r8169, usually do not run clear NIC driver command: make clean: execute the command to install the Nic module: make modules, install: make install, and then mount: depmod-a with the driver: insmod. /r8168.ko: lsmod | grep r8169. if any information is displayed, it is successful. note: if none of the preceding commands are displayed Error, then OK. in the previous installation process, an error was reported during the make install step, saying that the src directory could not be found, later I realized that the kernel package was not installed. Step 5: restart the system. after entering the graphic interface, select network in the toolbar and enter the graphic interface for network configuration. an NIC is added to the hardware. then, operate on the GUI, you can create a network configuration link. Next, we recommend a network-configured shell package PPP0 (0) Linux PPPoE configuration 1. make sure that the NIC is installed and running properly. run the command # ifconfig eth0 to view the NIC status 2. do not set the default route (Gateway) in the system. if you have set the default route after dialing ADSL, use the following method to delete it: delete GATEWAY = in the/etc/sysconfig/network file and run the following command as root: #/etc/rc. d/init. d/network restart
3. if the pppd package has been installed and the file/usr/sbin/pppd exists, pppd is installed. if not, install the ppp-2.3.11-4.i386.rpm package from the RedHatLinux 6.2 Installation CD or download from the Internet www.2cto.com Linux PPPoE settings 2. install PPPOE client software under Linux PPPOE client software is more, and most of the use of GNU License, we recommend that you use the rp-pppoe package. From http://www.roaringpenguin.com/pppoe/this website, you can not only download the rp-pppoe binary package under the RedHat 62 platform, but also download the source code package. Note: RedHat Linux 7.1 has integrated the rp-pppoe software package, but the version is somewhat low. if you do not care about the version, you can directly perform the following three steps.
1. binary package installation:. download the binary package-Uvh rp-pppoe-3.2-1.i386.rpm2. install from source code: installation from source code is also applicable to Linux on other platforms, but the gcc compiler must be installed in Linux. A. download source code package http://www.roaringpenguin.com/pppoe/?pppoe-3.2.tar.gzb.uncompressed unzip tar xvfz rp-pppoe-3.2.tar.gz # cd rp-pppoe-3.2C. compile and install the running script #. /go will be automatically compiled and installed. Finally, you can call/usr/sbin/adsl-setup for configuration. for details, see 3. Linux PPPoE Configuration 3. after the PPPOE client software is installed, you must configure the pppoe configuration file/etc/ppp/pppoe. in the configuration file. You do not have to manually modify this file. you can use the adsl-setup tool to configure the File: #/usr/sbin/adsl-setup. when the file appears >>> Enter your PPPoE user name: enter the username of the ADSL account. if you see >>> Enter the Ethernet interface connected to the ADSL modemFor Solaris, this is likely to be something like/dev/hme0.For Linux, it will be ethn, where 'n' is a number. (default eth0 ):
Enter eth0, which is the name of the network card connected to ADSL. when www.2cto.com >>> Enter the demand value (default no): Enter no www.2cto.com. When Yes >>> Enter the DNS information here: enter the server, which indicates that the IP address of the DNS server automatically obtained through ADSL dialing appears> Please enter your PPPoE password: enter the password of the ADSL account. when >>> Choose a type of firewall (0-2): enter 0, if you do not use the firewall, >>> Accept these settings and adjust configuration files (y/n )? If the entered information is correct, enter y to complete the configuration. otherwise, enter n to enter again. Linux PPPoE settings 4. start the PPPOE client software and use the command/usr/sbin/adsl-start to start the PPPOE client software for connection. if the connection succeeds, Connected will appear. if www.2cto.com fails, check the network cable, adsl modem, and other physical devices, and view the information in/var/log/messages/usr/sbin/adsl-stop close and ISP connection/usr/sbin/adsl-status to view the current connection status in Linux the system automatically starts the ADSL connection at startup, enter the following command # chkconfig -- add adsl to add the ADSL self-starting script www.2cto.com in the current running stage. set PPPoE in Linux. v. test if the connection is successful, use the command # ifconfig-a in the output should contain a bunch of information about ppp0, and an IP address is bound to it, indicating that the IP address has been obtained from dialing. Run the command # netstat-nr to view the route table information. the default route should be the IP address obtained above. If there is no default route, we can manually add: # route add default gw the IP address obtained above, use the command www.2cto.com # nslookup www.baidu.com to resolve the Sina IP address, it indicates that the DNS server has been correctly obtained from the dial-up. finally, ping a domain name or IP address using the command. if a response is received, it means that you have achieved success. Linux PPPoE settings 6. download other instructions in the windows partition. you can run the mount command to mount the partition to the directory. For more information, see the man command example: mount-t vfat-o iocharset = gb2312/dev/hdb6/root/d
Related Article

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.