Ha high Availability cluster/lb Load balancer add a virtual network card

Source: Internet
Author: User

1. Select the right mouse button for the selected virtual machine settings

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/82/4B/wKioL1dQUZ7DuiKSAACv2WNLFUE519.png-wh_500x0-wm_3 -wmp_4-s_1482810925.png "title=" 1.png "alt=" Wkiol1dquz7duiksaacv2wnlfue519.png-wh_50 "/>


2. Add. network adapter, Next, select Network connection mode, complete

NIC network connection mode must be different from the first (NAT, bridge, host only), the wrong choice will cause windowsping

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/4B/wKioL1dQUofAUl9yAACucHtEUG8974.png-wh_500x0-wm_3 -wmp_4-s_2920604634.png "title=" 2.png "alt=" Wkiol1dquofaul9yaacuchteug8974.png-wh_50 "/>

3. On the top left of CentOS edit Select Virtual Network Editor to view the gateway for the network card you added (here my is 192.168.17.0)


650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/82/4C/wKiom1dQUcfwsK7mAABYBPTMMfw787.png-wh_500x0-wm_3 -wmp_4-s_3087315230.png "title=" 3.png "alt=" Wkiom1dqucfwsk7maabybptmmfw787.png-wh_50 "/>

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/82/4C/wKiom1dQUfvCzwTqAADs1KJbOBY487.png-wh_500x0-wm_3 -wmp_4-s_1262885480.png "title=" 4.png "alt=" Wkiom1dqufvczwtqaads1kjboby487.png-wh_50 "/>

4.ifconfig get the NIC IP and copy the eth0 NIC configuration file as the eth1 NIC configuration

Cp/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth1

The edit configuration file is configured as follows

Device=eth1

Type=ethernet

Onboot=yes

Nm_controlled=yes

Bootproto=static

ipaddr=192.168.17.136 (IP here can be set with your eth0)

5. Restart the Network Service/etc/init.d/network restart

With eth0 IP as 192.168.239.136

Eth1 IP is 192.168.17.136

2 IP addresses the Linux system can ping through the Windows system

Windows runs input cmd ping192.168.239.136 ping 192.168.17.136

Linux system ping192.168.239.136 ping 192.168.17.136


This article is from the Linux system Learning extension blog, so be sure to keep this source http://zhangxiaoxiong.blog.51cto.com/11657691/1785724

Ha high Availability cluster/lb Load balancer add a virtual network card

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.