RHCE133--基础网络配置
时间:2010-10-07 来源:twenty_four
- 所有能使用的网络设备,都需要在模块中被事先支持
- 网络界面:
- 动态(dhcp):
一、识别设备与设备命名
网络启动脚本参考逻辑网络设备名
/etc/modules.conf将逻辑网络设备名映射成实际模块
[root@51cto ~]# locate modules.conf //查看模块所处目录
/etc/gnome-vfs-2.0/modules/default-modules.conf
/etc/gnome-vfs-2.0/modules/mapping-modules.conf
/etc/gnome-vfs-2.0/modules/ssl-modules.conf
以太网卡:eth0, eth1,ethN //最常用
Token Ring:tr0,tr1,trN //令牌环
FDDI:fddi0,fddi1,fddiN //光纤分布式数据接口
PPP:ppp0,ppp1,pppN //点对点
二、为网卡配置IP
dhclient eth0/ech1
[root@51cto ~]# ifconfig //查看目前网卡IP,这里是双网卡
eth0 Link encap:Ethernet HWaddr 00:0C:29:36:BE:6D
inet addr:218.192.86.8 Bcast:218.192.87.255 Mask:255.255.254.0
…...
eth1 Link encap:Ethernet HWaddr 00:0C:29:36:BE:77
inet addr:218.192.87.244 Bcast:218.192.87.255 Mask:255.255.254.0
……
[root@51cto ~]# dhclient eth0 //给eth0自动分配IP
dhclient(4464) is already running - exiting.
……
[root@51cto ~]# kill 4464 //干掉这个进程
[root@51cto ~]# dhclient eth0 //重新给eth0自动分配IP
Internet Systems Consortium DHCP Client V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit
相关阅读 更多 +