Two network cards configured for CentOS 6.5 based on VMware

Source: Internet
Author: User
Tags uuid

Configure two NICs for CentOS 6.5, one for eth0, one for eth1, and the Master for example

1. Select "Master" and "Edit virtual machine settings" as shown below

2, click "Add", as follows

3. Select "Network Adapter" and click "Next", as follows

4. the network I configured is NAT mode, and here by default, click Finish

5. Click "OK" to complete the NIC add

6. Start the system and switch to the/etc/sysconfig/network-scripts/directory.

7, configure the first network card, that is, configure the Ifcfg-eth0 file

Ifcfg-eth0 file contents are as follows

device=eth0# hwaddr=: 0C:e1:b2:0etype=ethernet# uuid=e92af1d5-eaa7-  4480-b464-0e064cbb9497onboot=yesnm_controlled=yes# bootproto=dhcpbootproto=Static  ipaddr=192.168. 46.128 netmask= 255.255. 255.0 gateway= 192.168. 46.2

IP, gateway, subnet mask, please modify it according to your own situation

8. Configure the second network card, that is, configure the ifcfg-eth1 file, the default file does not exist, you need to create the file first

ifcfg-eth1 file contents are as follows

device=eth1# hwaddr=: 0C:e1:b2:0etype=ethernet# uuid=e92af1d5-eaa7-  4480-b464-0e064cbb9497onboot=yesnm_controlled=yes# bootproto=dhcpbootproto=Static  ipaddr=192.168. 46.129 netmask= 255.255. 255.0 gateway= 192.168. 46.2

IP, Gateway, subnet mask, please modify it according to your own situation

9. Enter "Service network restart" to restart the network

10. enter "Ifconfig" to view configuration status

11, through the Xshell and other tools to connect, can also be connected to success

If you think reading this blog gives you something to gain, you might want to click " recommend " in the lower right corner.
If you want to find my new blog more easily, click on " Follow me " in the lower left corner.
If you are interested in what my blog is talking about, please keep following my follow-up blog, I am " Liu Chao ★ljc".

This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.

Two network cards configured for CentOS 6.5 based on VMware

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.