为CentOS添加新网卡配置
来源:互联网 发布:如何建立网络 编辑:程序博客网 时间:2024/05/21 07:18
通过ifconfig获得该网卡的MAC地址
# ifconfig eth1eth1 Link encap:Ethernet HWaddr 00:16:3E:1A:B3:4A inet addr:192.168.18.210 Bcast:192.168.18.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe1a:b34a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3343 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:216373 (211.3 KiB) TX bytes:1364 (1.3 KiB)
执行uuidgen生成一个随机的UUID
# uuidgene5281311-f265-4afa-a7e1-4d76718f7de0
然后完事具备只欠东方了,
# cd /etc/sysconfig/network-scripts# cp ifcfg-eth0 ifcfg-eth1# vim ifcfg-eth1
结合上面的MAC地址和UUID,修改内容如下
DEVICE="eth1"BOOTPROTO="dhcp"HWADDR="00:16:3E:1A:B3:4A"IPV6INIT="yes"IPV6_AUTOCONF="yes"NM_CONTROLLED="yes"ONBOOT="yes"TYPE="Ethernet"UUID="e5281311-f265-4afa-a7e1-4d76718f7de0"
阅读全文
0 0
- 为CentOS添加新网卡配置
- 为CentOS虚拟机添加第二块网卡
- 为Centos系统添加新磁盘
- liunx centos 如何添加一个新的网卡
- CentOS 7 静态网络设置与添加新网卡
- centos 系 为网卡添加带vlan的子接口
- centos系统添加网卡
- Centos网卡配置
- centos 5.5网卡配置
- CentOs 配置网卡
- centos网卡配置
- centos双网卡配置
- centos 无线网卡配置
- CentOS 网卡配置
- 虚拟机centos网卡配置
- centos 双网卡配置
- 【CentOS 7】 网卡配置
- Centos修改网卡配置
- poj3253 Fence Repair
- [IOS] 图片显示 imageNamed, initWithContentsOfFile 的区别
- (新人)关于自己对java的继承、封装、抽象类和接口的理解
- github上删除自己的repository
- 如何让热点图支持大数据
- 为CentOS添加新网卡配置
- Java项目经验——程序员成长的钥匙
- C++ 补充
- 刷清橙OJ--A1026.字符统计
- u-boot在s3c2410开发板上移植(NAND Flash Boot)过程 2007-08-21 11:56:25
- SSH的创建案列
- 909422229_JavaScript常用的事件
- spring的环境搭建
- 动画和图形:可绘制动画