CentOS Modify IP Address

Source: Internet
Author: User

[Email protected] network-scripts]# ifconfig-a
eth1 Link encap:ethernet HWaddr 00:0c:29:4a:b4:06
inet addr:192.168.0.24 bcast:192.168.0.255 mask:255.255.255.0
Inet6 ADDR:FE80::20C:29FF:FE4A:B406/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:264794 errors:0 dropped:0 overruns:0 frame:0
TX packets:3962 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19166586 (18.2 MiB) TX bytes:703299 (686.8 KiB)

cd/etc/sysconfig/network-scripts/

Vim Ifcfg-eth1--If only eth0

Vim/etc/udev/rules.d/70-persistent-net.rules--View network card address

# PCI Device 0x8086:0x100f (e1000)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:9d:f2:e6", attr{type}== "1", kernel== "eth*" , name= "Eth0"

# PCI Device 0x8086:0x100f (e1000)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:4a:b4:06", attr{type}== "1", kernel== "eth*" , name= "Eth1"

cd/etc/sysconfig/network-scripts/

Cp-a Ifcfg-eth0 ifcfg-eth1

Rm-f Ifcfg-eth0

Vim Ifcfg-eth1

Note that the ipaddr must be in the same network segment as the IP address under Windows. The IP of my WIN7 is 192.168.0.43

Service Network restart

CentOS Modify IP Address

Related Article

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.