ubuntu下修改网卡名称
2015-11-03 10:53
375 查看
Ubuntu下把网卡eth0修改为eth1的步骤:
1、打开配置文件 /etc/udev/rules.d/70-persistent-net.rules,文件内容如下:
2、修改文件,将 NAME=“eth0” 修改为 eth1。
3、重启网络服务 sudo /etc/init.d/networking restart,大功告成!
1、打开配置文件 /etc/udev/rules.d/70-persistent-net.rules,文件内容如下:
# This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x11ab:/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0 (sky2) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:11:43:c7:86", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
2、修改文件,将 NAME=“eth0” 修改为 eth1。
3、重启网络服务 sudo /etc/init.d/networking restart,大功告成!
相关文章推荐
- Win32API:CreateDialog、DialogBox、DialogProc
- mysql常用查询语句
- 网页的排版布局和原则
- c语言学习之基础知识点介绍(十一):字符串的介绍、使用
- day3 文件系统 内核模块 ctags
- db2_高性能的sql语句
- linux 信号处理函数集合
- MyBatis:Mapped Statements collection does not contain value for xxx
- Eclipse启动Tomcat时45秒超时解决方法
- MySQL 5.7.9 免安装配置
- 1.4 使用Sqoop从MySQL数据库导入数据到HDFS
- heritrix3 后台运行job
- Subsets
- C# 匿名类型的基本特征
- C语言 标准库函数
- U大师U盘装系统——苹果电脑安装WIN7系统图解法
- 技术网站
- WordPress访问打开速度很慢的几种解决方法
- Log4j2 — Log4j2导入、LogEvent、配置文件编写及路径
- 滚动条使用的触发事件