作者asimon.bbs@ptt.cc (面PTT思過!!) 看板: linux
標題Re: [問題]Marvell Yukon網路卡在centos5.1 的安裝
時間批踢踢實業 (2008/02/21 Thu 04:59:22)
[恕刪]
※ 引述《Gracybaby (對愛情沒痛覺)》之銘言:
: 我的centos 遇到雙網卡系統好像是無解了
: 我只要一開機,一開始硬體就找到三個網路介面
怪了 我都是用雙網卡耶 O__Oa
: 因為不知道peth0哪來的,但sky2那個eth0顯然介面也不對,
不對 ? @@?
: 索性用eth1,然後用固定IP算了(dhcp試了N次,也沒辦法成功)
不成功是指抓不到ip呼? or ?
: 然後,抱歉,我不懂大大指的default是什麼?:P
: 因為我下netstat -nr後
: 結果如下(並沒有顯示任何default的項目出來耶:P)
直接打 route 即會看到 routing table ..
ex:
[root@*** ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
**.**.**.** * 255.255.255.240 U 0 0 0 eth0
192.168.100.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default **.**.**.** 0.0.0.0 UG 0 0 0 eth0
[root@*** ~]#
: 而ifcfg-eth1的內容如下(看起來Centos 5.1的GATEWAY是在
: /etc/sysconfig/network-scripts/ifcfg-ethX裏面
建議直接寫在 /etc/sysconfig/network 裡..
GATEWAY=xx.xx.xx.xx
才不會重複設定..
: 而且gateway也有設定到,(為什麼還是沒用啊~~T_T~~)
: # Please read /usr/share/doc/initscripts-*/sysconfig.txt
: # for the documentation of these parameters.
: GATEWAY=192.168.12.254
: TYPE=Ethernet
: DEVICE=eth1
: HWADDR=00:08:9b:68:58:a5
: BOOTPROTO=none
手動設定的話..
這邊用static會不比較不會搞錯? :)
: NETMASK=255.255.248.0
: IPADDR=192.168.24.119
: ONBOOT=yes
: USERCTL=no
: IPV6INIT=no
: PEERDNS=yes
: 而ifconfig eth1的結果是
: eth1 Link encap:Ethernet HWaddr 00:08:9B:68:58:A5
: inet addr:192.168.24.119 Bcast:192.168.31.255 Mask:255.255.248.0
: inet6 addr: fe80::208:9bff:fe68:58a5/64 Scope:Link
: UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
: RX packets:1192 errors:0 dropped:0 overruns:0 frame:0
: TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
: collisions:0 txqueuelen:1000
: RX bytes:122224 (119.3 KiB) TX bytes:12182 (11.8 KiB)
: Interrupt:17
: 我把peth0和eth0都down了,
: anyway,最後還是不work,
: 再幫我一次,若還不成,我就.....我就...換Fedora Core8 算了~~
: 不知道是不是CentOS才那麼麻煩:(
這部分 Fedora Core 應該跟 CentoOS 完全一樣吧 (燦笑)..
good luck
by ASimon
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 221.169.114.142