[Original]ubuntu14.04 NIC logic modification no file/etc/udev/rules.d/70-persistent-net.rules

Source: Internet
Author: User

-----Problem arises------

In the newly installed ubuntu14.04 system did not find the file/etc/udev/rule.d/70-persistent-net.rules, unable to modify the logical name of the network (that is, the first net card name changed to Eth0, Second NET card name changed to eth0)

----------Ideas-----

1, because no/etc/udev/rule.d/70-persistent-net.rules file was found, restart; The file was not found after rebooting

2, manual execution/lib/udev/write_net_rules; hint missing variable interface

[Email protected]:/lib/udev/rules.d#/lib/udev/write_net_rules missing $INTERFACE

Add Variable:

[Email protected]: Export interface= "eth0"
Missing valid match
[Email protected]:export matchaddr= "00:0c:29:1f:1a:f5"
[Email Protected]:/lib/udev/write_net_rules

# ls/etc/udev/rules.d/
70-persistent-net.rules README

Modify 70-persistent-net.rules

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:1f:1a:f5", kernel== "eth*", name= "eth0"

After modification:

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:1f:1a:eb", kernel== "eth*", name= "eth0"
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:1f:1a:f5", kernel== "eth*", name= "eth1"
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:1f:1a:ff", kernel== "eth*", name= "eth2"

Reboot, complete.

Reference: http://blog.csdn.net/nnuljl/article/details/38680107

[Original]ubuntu14.04 NIC logic modification no file/etc/udev/rules.d/70-persistent-net.rules

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.