首页 > 其他 > 详细

网络配置网卡子接口

时间:2016-06-27 17:48:42      阅读:294      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!