CentOS6.3 network configuration installation for the first time

Source: Internet
Author: User
CentOS6.3 first install network configuration 1, modify static network configuration Java code [root @ David server ~] # Vim/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE & quot; eth0 & quot; www.2cto. comBOOTPROTO & quot; static & quot; HW
CentOS 6.3 first install network configuration 1, modify static network configuration Java code [root @ David server ~] # Vim/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE = "eth0" www.2cto.com BOOTPROTO = "static" HWADDR = "00: 0C: 29: 99: 5A: 3C "NM_CONTROLLED =" yes "ONBOOT =" yes "TYPE =" Ethernet "UUID =" yellow "IPADDR =" 8.0.0.10 "BROADCAST =" 8.0.0.255 "NETMASK =" 255.255.255.0 "NETWORK =" 8.0.0.0 "GATEWAY =" 8.0.0.1 "IPV6INIT =" no "IPV6_AUTOCONF =" no "simplify Java code configuration [root @ David server ~] # Vim/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE = "eth0" www.2cto.com BOOTPROTO = "static" ONBOOT = "yes" TYPE = "Ethernet" IPADDR = "8.0.0.11" BROADCAST = "8.0.0.255" NETMASK = "255.255.255.0" NETWORK = "8.0.0.0" GATEWAY = "8.0.0.1" 255.6init = "no" 255.6_autoconf = "no" 2, modify DNS service Java code [root @ David server ~] # Vim/etc/resolv. conf nameserver 8.0.0.1 3, restart the Nic Java code [root @ David server ~] # Service network restart Shutting down interface eth0: [OK] Shutting down loopback interface: [OK] Bringing up loopback interface: [OK] Bringing up interface eth0: [OK] output the above information, or
Java code [root @ David server ~] # Ifdown eth0; ifup eth0 www.2cto.com is also OK 4. configure the Java code for dual Nic [root @ David server ~] # Vim/etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE = "eth1" BOOTPROTO = "static" ONBOOT = "yes" TYPE = "Ethernet" IPADDR = "192.168.0.10" BROADCAST =" 192.168.0.255 "NETMASK =" 255.255.0.0 "NETWORK =" 192.168.0.0"
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.