Re: [請問]debian下的routing table

看板Linux作者時間17年前 (2008/09/23 02:01), 編輯推噓3(300)
留言3則, 2人參與, 最新討論串2/3 (看更多)
※ 引述《Maxsolar.bbs@OfO.twbbs.org (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

09/23 09:07, , 1F
不知道哪邊有 /etc/networks/interface 的 manual
09/23 09:07, 1F

09/23 11:49, , 2F
man interfaces?
09/23 11:49, 2F

09/24 00:35, , 3F
不夠啊 你的 manual 找得到 bridge_ports 的用法嗎?
09/24 00:35, 3F
文章代碼(AID): #18rzrW00 (Linux)
文章代碼(AID): #18rzrW00 (Linux)