Linux Learning Notes (2)

Source: Internet
Author: User

After configuring the IP to enter the operating system interface, enter the root user password.

<[email protected] ~>#

Root for user

localhost hostname (modifiable)

Root user is followed by #

Other users are $

===========================================================================================

dhclient automatically acquire IP (may change after restarting the machine)

DHCP will automatically assign a new IP after the IP is requisitioned by another workstation, which is what DHCP does.

IP Add view ip/etc/sysconfig/network-scripts/ifcfg-xxx NIC configuration file

/etc/sysconfig/network-scripts/ifcfg-xxx NIC configuration file

Static IP Address Modification method:

Bootproto = dhcp ===> static

Increase:

Ipaddr=xxx.xxx.xxx.xxx

Netmask=xxx.xxx.xxx. X

Gateway=xxx.xxx.xxx. X

Dns1=119.29.29.29 (General)

Wq

Systemctl Restart Network.service (restart network)

===========================================================================================

Network troubleshooting

See if the configuration file has errors first

And see if the host virtual machine is in the same network segment

Start a new network service

Change the network mode to bridge to the same network segment as the host.

===========================================================================================

Windows View IP method cmd run

Dhclient run once and can no longer run

Kill and run with Dhclient-r.

Route-n View Gateway

===========================================================================================

There are no ifconfig commands in Centos7. View with IP addr

or yum install net-tools-y installation command


Linux Learning Notes (2)

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.