注:适用于fedora10,静态IP配置
关于静态IP的配置:
1.ifconfig -a查看网络接口ethx
2.编辑/etc/sysconfig/network-scripts/ifcfg-ethx:
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
HWADDR=00:f0:cf:82:8a:21
ONBOOT=yes
BOOTPROTO=static
NETMASK=255.255.255.0
IPADDR=218.197.198.48
USERCTL=no
PEERDNS=yes
IPV6INIT=no
NM_CONTROLLED=no
#GATEWAY=218.197.198.254 (不知为何有这句,即使去掉注释也没有用,竟然网关的配置文件和IP的配置文件不是同一文件)
TYPE=Ethernet
3.编辑/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=msrunsisi
GATEWAY=218.197.198.254
4.编辑/etc/resolv.conf:
nameserver=202.114.0.242
nameserver=202.112.20.131
runsisi@163.com 2009.2.23 @HUST