Virtual machine linux bridging fixed IP

Source: Internet
Author: User

Configuration benefits:

1 do not occupy the intranet IP

2 fixed post-configuration some can not be changed

Note: Log in with the root user

1 Get your own IP address ifconfig

Get my IP address is 192.168.239.128

2 Get the gateway address Netstat-ar

My gateway address is 192.168.239.2.

3 Get DNS Address more/etc/reslov.conf

The corresponding Nameservice is 192.168.239.2

The corresponding search domain is Localdomian

4 Configuration System->network Connection->ipv4 settings

Select Methods:manual

5 Restart Network command

Service Network restart

If you report this mistake,

bringing up interface Eth0:Error:No suitable device found:no device found for connection ' System eth0 '.

[FAILED]


Edit the correct hwaddr address:

Vim/etc/udev/rules.d/70-persistent-net.rules

To go to ifconfig and get the hwaddr.

Virtual machine linux bridging fixed IP

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.