Configure static IP (NAT mode) for Ubuntu 12.04.2 under VMware virtual machines

Source: Internet
Author: User
Tags nameserver

Http://www.cnblogs.com/objectorl/archive/2012/09/27/vmware-ubuntu-nat-static-ip-settings.html

Refer to the above method, but this version needs to take one more step

Gedit/etc/networkmanager/networkmanager.conf
Change Managed=false to True

The steps are as follows:

Static IP Settings
View NAT Mode IP
1 gedit/etc/network/interfaces
Add the following content
Iface eth0 inet Static
Auto Eth0
Address 192.168.57.134
Netmask 255.255.255.0
Gateway 192.168.57.2
2 gedit/etc/resolv.conf
NameServer 192.168.57.2
NameServer 202.96.128.86

3.
Gedit/etc/resolvconf/resolv.conf.d/base
Join nameserver for your DNS
NameServer 192.168.57.2
NameServer 202.96.128.86
4. Implementation
Gedit/etc/networkmanager/networkmanager.conf
Change Managed=false to True
5 Restart or sudo/etc/init.d/networking restart

Configure static IP (NAT mode) for Ubuntu 12.04.2 under VMware virtual machines

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.