我的route很怪 - Linux

Jack avatar
By Jack
at 2007-01-28T17:56

Table of Contents

我使用RedHat9的系統
有兩塊網路卡:eth0和eth1,但是eth1並沒有啟動它,所以真正在工作的只有eth0
,並且我在eth0上面綁了兩個IP

底下是檔案的內容:
/etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.1.11.1
NETWORK=10.1.11.0
NETMASK=255.255.255.0
BROADCAST=10.1.11.255
#GATEWAY=10.1.11.1

/etc/sysconfig/network-scripts/ifcfg-eth0:0
BOOTPROTO=static
ONBOOT=no
IPADDR=10.1.12.1
NETWORK=10.1.12.0
NETMASK=255.255.255.0
BROADCAST=10.1.12.255
#GATEWAY=10.1.11.1
==============================================================================
在文字模式下使用route指令時卻多跑出一個BClass的網域

#route

Destination Gateway Genmask Flages Metric Ref Use Iface
59-117-12-254 * 255.255.255.255 UH 0 0 0 ppp0
10.1.12.0 * 255.255.255.0 U 0 0 0 eth0
10.1.11.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 59-117-112-254 0.0.0.0 UG 0 0 0 ppp0

============================================================================
#route del -net 169.254.0.0 netmask 255.255.0.0 dev eth0

Destination Gateway Genmask Flages Metric Ref Use Iface
59-117-12-254 * 255.255.255.255 UH 0 0 0 ppp0
10.1.12.0 * 255.255.255.0 U 0 0 0 eth0
10.1.11.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 59-117-112-254 0.0.0.0 UG 0 0 0 ppp0


這應該正常,因為已經刪除該route
但是/etc/rc.d/init.d/network restart之後
==============================================================================

Destination Gateway Genmask Flages Metric Ref Use Iface
59-117-12-254 * 255.255.255.255 UH 0 0 0 ppp0
10.1.12.0 * 255.255.255.0 U 0 0 0 eth0
10.1.11.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 59-117-112-254 0.0.0.0 UG 0 0 0 ppp0

又跑出來了= =,怎麼會這樣,是我哪裡沒有設定好嗎?
真的很困擾....

--
Tags: Linux

All Comments

Emma avatar
By Emma
at 2007-01-29T01:45
APIPA (自動取得虛擬 IP)
Doris avatar
By Doris
at 2007-02-01T10:02
http://0rz.tw/262q2
Liam avatar
By Liam
at 2007-02-02T12:24
在 /etc/sysconfig/network 加入NOZEROCONF=yes 載restart.
Susan avatar
By Susan
at 2007-02-04T04:55
我測試一下。
Xanthe avatar
By Xanthe
at 2007-02-04T10:38
可以了耶,謝!可以跟我說為什麼嗎?我想知道~
Freda avatar
By Freda
at 2007-02-09T03:25
http://0rz.tw/a42mk <= 我知道 因為我也用RH9也遇過 XD
Edith avatar
By Edith
at 2007-02-11T10:47
那如果加入這段網域的話網路速度是不是會比較快呢?
Mia avatar
By Mia
at 2007-02-16T09:55
因為如果用ping 169.254.0.0/16這網域的話速度也比較快
John avatar
By John
at 2007-02-18T09:09
線是同一條.. 應該沒差吧?
Edith avatar
By Edith
at 2007-02-18T22:46
推一下 asimon大大的文章 XD

Re: 請問支援Linux的硬碟擴充卡

Candice avatar
By Candice
at 2007-01-25T23:32
※ 引述《andy2000a.bbsatbbs.cis.nctu.edu.tw (andy)》之銘言: : ==andgt; 在 leolarrel.bbsatptt.cc (真.粽子無雙) 的文章中提到: : andgt; 是的,linux 偵測硬碟的方式並不透過bios ,而是kernel 的 cod ...

可以在CentOS下更改網卡的MAC值嗎?

Rosalind avatar
By Rosalind
at 2007-01-25T22:47
※ 引述《andy2000a.bbsatbbs.cis.nctu.edu.tw (andy)》之銘言: : ==andgt; 在 linzhiyi.bbsatptt.cc (...) 的文章中提到: : andgt; 不好意思剛接觸Linux,想請教各位大大! : andgt; 是否在CentOS 4.4的作 ...

Re: 請問網卡名稱的問題

Dorothy avatar
By Dorothy
at 2007-01-25T20:20
※ 引述《zxvc (zxvc)》之銘言: : 我的NB Acer Aspire 5500有 : LAN card:Tigon3 : WLAN card:ipw2200 : Distribution:Ubuntu 6.06.1 : Linux Kernel:2.6.15-27-386 : 開機完後Tigon3 ...

ghost手誤..有辦法回復嗎?!

Anthony avatar
By Anthony
at 2007-01-25T14:52
另一個話題 複製 Linux 系統 http://www.savs.hcc.edu.tw/~chuavv/articles/CopyLinuxSystem-tw.html 試過有效無誤的好方法 雖然複製有點慢 但不需要任何套裝軟體 很久沒用linux的人.... ※ 引述《asimon (電腦知識+)》之 ...

Re: 我要請教各位大大

Bennie avatar
By Bennie
at 2007-01-24T20:55
※ 引述《abelamos (懶惰笨蟲–惡搞特質系)》之銘言: : ※ 引述《asimon (電腦知識+)》之銘言: : : 請問主機板是哪一塊呢? : : 如果麻煩的話.. : : 隨便塞張常見的網路卡應該就可以解決囉.. : : ex. D-Link DFE530TX 550TX ... : : ...