看板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