Linux Network Simple configuration

Source: Internet
Author: User

The NIC configuration file for Linux is in the "/etc/sysconfig/network-script/" directory.

Device=eth0hwaddr=00:0c:29:dc:bf:57type=ethernetuuid=8bb9e970-45fd-4007-8333-0ef5000e9603onboot=nonm_ Controlled=yesbootproto=dhcp


Commands for configuring network cards frequently

Ifup eth0 #打开eth0网卡

Ifdown ETH #关闭eth0网卡

Ifconfig #查看当前网卡信息

Ifconfig-a #查看当前所有网卡信息

Ifconfig eth0 192.168.1.1 #为eth0网卡配置静态IP

Ifconfig eth0:1 192.168.2.1 #在一张网卡上配置多个IP


Redhat 5.0 system mainly through network management, 6.0 through NetworkManager to manage

[Email protected] ~]# service network restart

[Email protected] ~]# service NetworkManager restart

This article is from the "Long Binxiong" blog, make sure to keep this source http://dragon123.blog.51cto.com/9152073/1620595

Linux Network Simple configuration

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.