VMware dual NIC Configuration

Source: Internet
Author: User

Background: To do glusterfs experiments, and then build 3 servers in the virtual machine, each server configured two network cards, one as a management port, a piece as a data transmission port. and implementation of one of the network card can be connected to the external network, another network card can only internal communication, other network segments can not be accessed.

Use a single virtual machine for example

Steps:

  1. Set up the first NIC

    (1) VMware settings as shown 650) this.width=650; "Src=" http://s2.51cto.com/wyfs02/M01/83/27/wKiom1drsenxV62TAABbM4Cm2gk152.png "Title=" Sogou 20160623175421.png "alt=" Wkiom1drsenxv62taabbm4cm2gk152.png "/>

    (2) Setting network card information

    [Email protected] ~]# Cat/etc/sysconfig/network-scripts/ifcfg-eth0

    Device=eth0//NIC Name
    ipaddr=192.168.11.140//IP set by itself
    netmask=255.255.255.0//Subnet mask
    gateway=192.168.11.2//Gateway, this is based on BOOTPROTO=DHCP

    after the execution of the route-n get
    dns=114.114.114.114
    Type=ethernet
    Onboot=yes//Boot auto start
    Nm_controlled=no//Do not receive NetworkManager management
    Bootproto=none//indicates static IP address

    [Email protected] ~]# cat/etc/resolv.conf
    NameServer 192.168.11.2//Restart network will generate this DNS yourself

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/83/27/wKiom1druyWQB3oRAABA2Tw6i_Q796.png "title=" Sogou 20160623183349.png "alt=" Wkiom1druywqb3oraaba2tw6i_q796.png "/>

2. Set up a second NIC

(1) VMware settings as shown

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/83/27/wKioL1drvC3g8zBtAABcfeMXcts211.png "title=" Sogou 20160623180721.png "alt=" Wkiol1drvc3g8zbtaabcfemxcts211.png "/>

(2) Setting network card information

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/83/27/wKioL1drtb_RXBOyAAAmsrWHYw0822.png "title=" Sogou 20160623181044.png "alt=" Wkiol1drtb_rxboyaaamsrwhyw0822.png "/>

3. Testing

(1) Whether to access the external network

[[email protected] ~]# Ping www.baidu.com

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/83/27/wKiom1drvgOCzOFHAAAv9afFISU951.png "title=" Sogou 20160623184601.png "alt=" Wkiom1drvgoczofhaaav9affisu951.png "/>

(2) Whether other network segments can be accessed

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/83/27/wKiom1drvp2Agfq7AAAxMARFHKo634.png "title=" Sogou 20160623184802.png "alt=" Wkiom1drvp2agfq7aaaxmarfhko634.png "/>

This article is from the "Court of the Odd Tree" blog, please be sure to keep this source http://zhangdl.blog.51cto.com/11050780/1792301

VMware dual NIC Configuration

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.