boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 如何启动时自动加载ip route/iprule
相关主题
如何判断网络共享文件夹是否是否存在
请教一个script的问题
bash "." command
Grep 能作这个吗?
找不到命令的路径
问个简单的命令
写了修改文件名的script
问一个run bash-script command several times的问题
新人求入门书或者网站
The command line is powerful, but the UI can be more efficient!
相关话题的讨论汇总
话题: ip话题: ethx话题: ifroute话题: route话题: eth6table
进入Linux版参与讨论
1 (共1页)
w*r
发帖数: 2421
1
distribution: SLES10 SP3
ip route add 10.30.239.0/24 via 10.30.239.122 dev eth6 table eth6table
ip rule add from 10.30.239.122 table eth6table
如何在启动时自动加载???
放在rc.local似乎太ugly了一点,
我注意到 /etc/sysconfig/network下面有ifroute-ethx的文件,似乎可以放ip route
,但是ip rule放在哪里呢?
还有有没有ifroute-ethx的范例我可以抄抄?
w*r
发帖数: 2421
2
还是自己解决的号,这里靠不住啊,各位玩linux都玩什么方向的???
solution:
1. static router, use the ifroute-ethx file. man route(5), any text after
the 5th parameter will be passed as command text to ip route command
SLES 10 sp3 /etc/sysconfig/network/ifroute-eth6
10.30.239.0/24 0.0.0.0 - eth6 - via 10.30.239.122 table eth6table
2. ip rule, use the ifcfg-ethx file, adding POST_UP_SCRPT/PRE_DOWN_SCRIPT
argument to insert ip rule command.
1 (共1页)
进入Linux版参与讨论
相关主题
The command line is powerful, but the UI can be more efficient!
A question about two linux commands
在家里,连上公司VPN则没法访问公网.,给指点一下,谢谢
命令行迟迟不出来,请问高手是何原因?
about dcmtk (转载)
gcc and specs
问个一直没弄明白的initrd/initramfs问题
安装suse linux 11.0求助
fedora 8 升级到10,进不了图形界面了
cp -a 后 windows 起不来了
相关话题的讨论汇总
话题: ip话题: ethx话题: ifroute话题: route话题: eth6table