Ubuntu Modify IP Address

Source: Internet
Author: User

Http://jingyan.baidu.com/article/e5c39bf5bbe0e739d7603396.html
Http://www.cnblogs.com/bluebbc/archive/2012/06/08/2542172.html
-------------------
In the previous office was 192.168.1.x
Now it's 192.168.2.x to the rental house.
So I'm going to change the IP of the current virtual machine to the same network segment as the rental house. Network Mapper can also be accessed

~ ~ Please note that follow the online tutorial
Su
Then prompt for a password
Despite the failure, I've been able to follow the codes in my memory for other operations.

sudo vi/etc/network/interfaces
Eth0 inet Static
Address 192.168.1.100
Netmask 255.255.255.0
Gateway 192.168.1.1
Actually, I don't know what the format is, but I can just follow the previous format.

sudo vi/etc/resolv.conf
I'm not sure about that, but I did.
NameServer 192.168.1.1

And then it's sudo reboot.

Just fine.

Ubuntu Modify IP Address

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.