
eth0
随小风
随小风博客地址为https://devopstack.cn
微信公众号: devopscnote
展开
-
Linux shell 实现一键绑定多个网卡
有时候需要很多网卡,手动配置起来比较麻烦。所以可以写个脚本。#!/bin/bash#cd /etc/sysconfig/network-scripts/mkdir ./interfacecd ./interfacea=0for i in 23 26 29 56 75 80 93 123 165 153 ;do a=$(( $a +1 ));原创 2016-05-31 15:23:07 · 660 阅读 · 0 评论 -
centos7 网卡名修改为eth0
1.cd /etc/default/2.禁用该可预测命名规则。对于这一点,你可以在启动时传递“net.ifnames=0 biosdevname=0 ”的内核参数。这是通过编辑/etc/default/grub并加入“net.ifnames=0 biosdevname=0 ”到GRUBCMDLINELINUX变量来实现的。 vim /etc/default/grub原创 2017-04-10 20:22:05 · 5047 阅读 · 0 评论 -
linux 下 ifcfg-eth0 配置
linux 下 ifcfg-eth0 配置网络接口配置文件[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)TYPE=Ethernet #网卡类型DEVICE=转载 2017-04-19 21:10:18 · 3001 阅读 · 0 评论