Network bridged (bridging mode) settings in VMware Linux systems: __linux

Source: Internet
Author: User
Steps:
1, the virtual machine in the toolbar--"set-" network adapter: Select bridged (bridging mode) in the right network connection--"OK
2, configure the network card IP address:
Start the virtual machine, open the file Ifcfg-eth0
The order is as follows:
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
You can then set this parameter in the file:
Device=eth0 #物理设备名
ipaddr=192.168.1.12 #IP地址
netmask=255.255.255.0 #掩码值
network=192.168.1.0 #网络地址 (but not)
broadcast=192.168.1.255 #广播地址 (but not)
gateway=192.168.1.1 #网关地址
Onboot=yes # [Yes|no] (whether the device is activated at boot time)
Userctl=no #[yes|no] (whether a non-root user can control the device)
Bootproto=static #[none|static|bootp|dhcp] (Do not use protocol at boot | static Allocation | BOOTP protocol | DHCP protocol)

--Note that the "equals" on both sides do not space, the parameters set inside, please refer to their own local IP settings

3, configure the network card DNS:
Open File resolv.conf
The order is as follows:
Vi/etc/resolv.conf
Then set the DNS
dns1=202.96.209.5
dns2=202.96.209.133
And then it's OK.

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.