After Linux is installed, initialize the NIC and configure

Source: Internet
Author: User

1. View the number of device cards
Lspci|grep Ethernet See the number of PCI slots NICs
2. NIC configuration file
/etc/sysconfig/network-scripts/ifcfg-interface-name (Interface-name Depending on the type of network card, sorting is generally eth0 ppp0)
Ifcfig file Parameters
Device= #网卡名称
Type= #网卡类型
onboot= #启动时是否自动加载
bootproto= #启用地址协议--static--BOOTP--dhcp
Ipaddr= #ip地址
netmask= #子网掩码
boradcast= #广播地址
getway= #网关
Restart Network Service after configuration is complete as needed
Service Network restart
PS: For a detailed description of the Ifcfg file, refer to the/etc/share/doc/initscripts.txt file

After Linux is installed, initialize the NIC and configure

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.