Configure the IP address of Ubuntu in Vitualbox

Source: Internet
Author: User

The first is the setup of the network connection in Vitualbox. The default is for network address translation (NAT) to be modified to bridge the NIC, other default.

Then is to go into the Ubuntu to modify the IP address, this is believed that everyone Baidu can find.

sudo VI /etc/network/interfaces

Then, modify the content inside, append the content:

Auto Eth0

Iface eth0 inet Static

Address 192.168.1.121 netmask 255.255.255.0 Gateway 192.168.1.1 maintains the same network segment as the IP address in the host operating system. Use the specific command Cmd->ipconfig/all, in Ubuntu with Ifconfig. Next, add the DNS information in the/etc/resolv.conf file: NameServer 202.112.125.33, and so on, then restart the NIC:
sudo Ifdown eth0 sudo ifup eth0

Restart the Network service:

/etc/init.d/networking restart

Configure the IP address of Ubuntu in Vitualbox

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.