Linux configuration in a virtual machine static IP address Sisu Network

Source: Internet
Author: User

1. View Network

# ifconfig

The network has not been configured and the ping does not pass.

2. Modify the NIC configuration file

# Vim/etc/sysconfig/network-scripts/ifcfg-eth0

Add the following configuration:

Onboot=yes

Bootproto=static

Ipaddr=ip Address

netmask=255.255.255.0

gateway= Gateway

dns1=8.8.8.8

: Wq Save and exit

3. Restart the Network Service

# Service Network Restart

4, test, found that ping does not pass ...

5, OK, configuration a bit of a problem, first shut down the machine

# Poweroff

6. Configure the network card

Click Network adapter

7. Change the network connection

Select hardware--Network adapter--Select bridging mode, tick copy physical network connection status-OK

8. Start the virtual machine, test the network

  

Test Pass ~ ~ ~

Linux configuration in a virtual machine static IP address Sisu Network

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.