码迷,mamicode.com
首页 > 其他好文 > 详细

网络配置网卡子接口

时间:2016-06-27 17:51:35      阅读:773      评论:0      收藏:0      [点我收藏+]

标签:网络配置网卡子接口

网络配置网卡子接口


OS:Red Hat Enterprise Linux 6.4
目前eth0 通过host-only网卡与win7通信
规划给eth0配置子网卡ip eth0:0   地址192.168.7.101
使用win7能够通过此ip正常访问linux操作系统
技术分享

[root@rhel64 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
技术分享

技术分享


1 复制eth0网卡配置文件 生成eth0:0
[root@rhel64 ~]# ifconfig eth0
[root@rhel64 ~]# cd /etc/sysconfig/network-scripts/
[root@rhel64 network-scripts]# cp ifcfg-eth0 ifcfg-eth0:0
技术分享

2 编辑网卡配置文件
[root@rhel64 network-scripts]# vi ifcfg-eth0:0
技术分享

3 重启网络服务
[root@rhel64 ~]# service network restart
技术分享

[root@rhel64 ~]# ifconfig
技术分享

4 host-only 虚拟网卡增加7网段ip地址
技术分享

技术分享

技术分享


5 win7 ping 测试 eth0:0 ip网络通
技术分享


本文出自 “尼古风锁丝愁过” 博客,请务必保留此出处http://smoke520.blog.51cto.com/9256117/1793294

网络配置网卡子接口

标签:网络配置网卡子接口

原文地址:http://smoke520.blog.51cto.com/9256117/1793294

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!