Adding a new NIC to a VMware virtual machine no configuration file

Source: Internet
Author: User

System: CentOS 6/7

Problem:

After adding a new NIC to the virtual machine, there is no configuration file under/etc/sysconfig/network-scripts/ifcfg-eth1

#ip addr//Show Presence eth1

#ip addreth1:<BROADCAST,MULTICAST,UP,LOWER_UP> MTU theQdisc Pfifo_fast State up Qlen +Link/etherxx: 0c: in: -: in: theBRD ff:ff:ff:ff:ff:ff inet192.168.192.135/ -Brd192.168.192.255Scope Global Dynamic eth1 valid_lft 1482sec preferred_lft 1482sec inet6 fe80::20c:29ff:fe17:2966/ -scope link Valid_lft forever Preferred_lft forever

Solve:

#CP/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-Eth1#vim/etc/sysconfig/network-scripts/ifcfg-eth1hwaddr=xx: 0C: in: -: in: the#修改为eth1的mac地址TYPE=Ethernetbootproto=Staticdefroute=Nopeerdns=yespeerroutes=Yesipv4_failure_fatal=Noipv6init=yesipv6_autoconf=Yesipv6_defroute=Yesipv6_peerdns=yesipv6_peerroutes=Yesipv6_failure_fatal=NoNAME=eth1 #修改为eth1 #uuid=93285a79-5ad6-4d55-ae5a-b417ce7f4d31 #注释掉ONBOOT=Yes#service Network Restart

Adding a new NIC to a VMware virtual machine no configuration file

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.