Using VirtualBox to set up a dual NIC, bridging + Internal network

Source: Internet
Author: User

Demand:

1, because do cobbler test fear affect the company's normal network environment; So use VirtualBox to create a virtual machine for testing;

2, also requires the virtual machine to access the external network (install a variety of packages) but does not affect the company's DHCP server;

Solution:

Using VirtualBox to create a dual network card, Nic 1 Select Bridge, network card 2 Select the internal network;

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7E/FE/wKioL1cPU6CyGnWCAACfOZHfkOQ878.png "title=" QQ picture 20160414162014.png "Width=" "height=" 255 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:400px;height:255px; " alt= "Wkiol1cpu6cygnwcaacfozhfkoq878.png"/>650) this.width=650; src= http://s1.51cto.com/wyfs02/M01/7F/01/ Wkiom1cpuujhakxuaaa6ropkhdy597.png "style=" width:400px;height:241px; "title=" 2.png "width=" "height=" and "241" border = "0" hspace= "0" vspace= "0" alt= "wkiom1cpuujhakxuaaa6ropkhdy597.png"/>


1. Enter Linux server 1 for network card settings:

# cat Ifcfg-eth1 #查看eth1配置, be sure to fill in the MAC address, or the configuration of two network cards may conflict device=eth1type=ethernetonboot=yeshwaddr=08:00:27:72:9d : 6fnm_controlled=yesbootproto=staticipaddr=192.168.1.66netmask=255.255.255.0gateway=192.168.1.1dns1= 192.168.1.1# cat ifcfg-eth2 #查看eth2配置DEVICE =ETH2TYPE=ETHERNETONBOOT=YESHWADDR=08:00:27:97:90:AA nm_controlled= yesbootproto=staticipaddr=172.16.1.2netmask=255.255.0.0gateway=172.16.1.1

Server 2 configuration is the same, only need to modify eth2 ip=172.16.1.3 (customizable) address;

2, to test:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7F/01/wKiom1cPVHaRPGBXAAAajY-69e8071.png "style=" float: none; "title=" 3.png "alt=" Wkiom1cpvharpgbxaaaajy-69e8071.png "/>


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7F/01/wKiom1cPVHag6rEcAAAYbsRoePg170.png "style=" float: none; "title=" 4.png "alt=" Wkiom1cpvhag6recaaaybsroepg170.png "/>


This article is from the "obsessed" blog, make sure to keep this source http://dragondragon.blog.51cto.com/6170889/1763831

Using VirtualBox to set up a dual NIC, bridging + Internal network

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.