找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2313|回复: 0

[闲聊]ppp

[复制链接]
发表于 2004-6-5 11:17:54 | 显示全部楼层
ip rule add from iif ppp1 pref 155 table 101
ip rou add default dev ppp1 table 101


ip rule add from iif ppp0 pref 160 table 102
ip rou add default dev ppp0 table 102 


ip route add default scope global nexthop dev ppp1 weight 1 nexthop dev ppp0 weight 1

上面的最好放在/etc/pppoe/ppp中的ip-up的文件中对ADSL上线进行判断
这里要写shell了,
思路:ppp0 上线
    ip route add default scope global nexthop dev ppp0
         ppp1 上线
   ip route add default scope global nexthop dev ppp1

  ppp1与ppp0同时上线

  ip route add default scope global nexthop dev ppp1 weight 1 nexthop dev ppp0 weight 1


在ip-down中

  ppp0断线
ip route add default scope global nexthop dev ppp1
  ppp1断线
ip route add default scope global nexthop dev ppp0
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-6-2 22:17 , Processed in 0.092887 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表