关闭

dhcp renew issue and add iptalbes rule

631人阅读 评论(0) 收藏 举报

    昨天,碰到一个dhcp client renew ip 的时候,网关无法配置成功的问题。目前仍旧没有思路。在此做一个笔记,顺便理一理思路。

    1, renew 的时候,request的是同一个ip,通常网关是不变的,此时。若发现网关未变化,不需要删除default route , then add default again. so, need judge weather the default is changed. we can set a flag.

    2. another case: when dhcp client perform renew, dhcp client get a new ip, but the default route does not change, but this time, kernel will delete default route, we should add default again when we process dhcp option.

    3. but judge ip is change or default route is change , are in two file. how to define a flag can be modified in this 2 files ? share memory ?

    4. if is in share memory, what time to reset the flag, we should make sure, everytime perform renew. we can consider everytime we receive an dhcp-ack.


today we do intergrate test with cwp, we found iptables didn't work. we should consider.

and new event is define, we should modify code to fix it.


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:49705次
    • 积分:868
    • 等级:
    • 排名:千里之外
    • 原创:28篇
    • 转载:2篇
    • 译文:12篇
    • 评论:1条
    最新评论
  • quagga安装和使用

    balancebalan: 您好,看了您的内容收获很大,但是有个问题想请教下,quagga的rib表如何通过外部程序修改和访问?...