看板Linux
標 題Re: [請問]debian下的routing table
發信站SayYA 資訊站 (Tue Sep 23 01:38:49 2008)
轉信站ptt!ctu-reader!ctu-gate!news.nctu!news.ncu!News.Math.NCTU!SayYa
※ 引述《[email protected] (Astro v.s. Geo)》之銘言:
> 是這樣的,我們都知道要列出、新增或修改目前機器的routing table,
> 除了手動輸入的方式外,弟知道在RH跟suse系列都可以把routing table寫成一個檔案,
> 例如suse是寫在/etc/sysconfig/network/routes
> 請問debian有辦法寫成一個檔案嗎?
> 翻了好久...debian似乎也不吃/etc/network/routes這個檔案,
> 還是debian可以透過其他作法把routing table固定下來呢?
> 感謝!
/etc/network/interfaces 該檔案設定,像是:
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254
up route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.1.9
down route del -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.1.9
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
現代人普遍的現象: 「小學而大遺」、「捨本而逐末」
「以偏而概全」、「因噎而廢食」
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
※ Origin: SayYA 資訊站 <bbs.sayya.org>
◆ From: kendlee.sayya.org
1F:推 antontw:不知道哪邊有 /etc/networks/interface 的 manual 09/23 09:07
2F:推 dreamcwli:man interfaces? 09/23 11:49
3F:推 antontw:不夠啊 你的 manual 找得到 bridge_ports 的用法嗎? 09/24 00:35