作者Adama.bbs@ptt.cc (So Say We All.) 看板: linux
標題Re: [問題]Marvell Yukon網路卡在centos5.1 的安裝
時間批踢踢實業 (2008/02/20 Wed 00:16:26)
※ 引述《nknudragon (我對不起story板)》之銘言:
: GATEWAY好像不是再這個檔案設定
: 我手上有一台CentOS 4.5
: GATEWAY 在這個檔案裡面設定 不過我都是設定Static IP
: 我把我手上的檔案列出來讓你參考看看
: [root@tiber snapshot]# cat /etc/sysconfig/network
: 我這台其實也有雙網卡 再剛開始設定兩張網卡都是開啟的狀態的時候
: 的確也有發生這種類似Default GATEWAY 跑掉的問題
: 我也是後來發現無法連外才改掉的
我有一台fedora的機器也是雙網卡,
但gateway是在 /etc/sysconfig/network-scripts/ifcfg-ethX裡設定的
當有雙/多網卡時,gateway只能在某一個ifcfg-ethX裡設定
不然如果設定多個時,會互相打架不能用
我不曉得在network裡也可以設...
: [root@tiber snapshot]# route
: Kernel IP routing table
: Destination Gateway Genmask Flags Metric Ref Use Iface
: 192.168.3.0 * 255.255.255.0 U 0 0 0 eth0
: 192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
: 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
: default 192.168.3.1 0.0.0.0 UG 0 0 0 eth0
: 推 Gracybaby:我這台很奇怪,一直都是default用peth0,和它有關嗎? 02/19 18:34
= = 原po, 你一直沒有說清楚你的eth0還是up的,也沒有列default出來 囧
顯然你的eth0裡應該設到了gateway了?如果你不用eth0把ifcfg-eth0裡設onboot=no
然後service network restart看看能不能用了
--
The 4400 ~ A Place In Time ~ [Amanda Abizaid]
So long ago, another life, I can feel your heartbeat.
It's not a dream, remember us. I can see it in your eyes.
We'll find our place in time, a place in time beyond the sun.
We'll find our place in time, a place in time to call our own.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.229.112.93