|
第一次安裝Fedora 4, 用了由dhcp 自動派ip : 192.168.0.55
#cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:C0F:01:E2:51
ONBOOT=yes
TYPE=Ethernet
現在想轉用固定ip xxx.xxx.xxx.xx2
如何設定???
?木W路找到 ifcfg-eth0
DEVICE='eth0'
ONBOOT='yes'
BOOTPROTO='none'
IPADDR='xxx.xxx.xxx.xx2'
NETMASK='255.255.255.248'
GATEWAY='xxx.xxx.xxx.xx0'
TYPE='Ethernet'
USERCTL='no'
NETWORK='xxx.xxx.xxx.xx4'
BROADCAST='xxx.xxx.xxx.xx1'
restart network
ping www.yahoo.com
ping: unknown host www.yahoo.com
為何會有這問題? |
|