[Xorp-users] the interface lost IP

xtrong Xu chxuzhuang at gmail.com
Thu Jan 9 00:24:24 PST 2014


Hello, I'm a newbie on XORP.
A problem puzzled me a couple of days when I use XORP.

I got two PCs  both have two Ethernet controller:eth0, eth1.
I connect the two PC like below:
PC1's eth0(192.168.2.1)connect to PC2's eth0(192.168.2.2);

Then I run XORP on both PCs, and my config.boot on PC1 is like below, PC2's
config.boot  looks the same except the IP:
#++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++
#start the config file
interfaces {
    interface my_discard {
        unreachable: true
        vif my_discard {
        }
    }

    interface "eth0" {
        vif "eth0" {
            address 192.168.2.1 {
                prefix-length: 24
            }
            address 2002:1::1 {
                prefix-length: 64
                disable: false
            }
            address fe80::e854:85ff:fe6e:f865 {
                prefix-length: 64
                disable: false
            }
        }
    }

    interface "eth1" {
        vif "eth1" {
            address 192.168.1.1 {
                prefix-length: 24
            }
            address fe80::b00e:2aff:fe03:60ab {
                prefix-length: 64
                disable: false
            }
        }
    }
}

fea {
    unicast-forwarding4 {
        disable: false
/*        table-id: 10001 */
    }
    unicast-forwarding6 {
        disable: false
/*        table-id: 10001 */
    }
}

protocols {
    static {
        interface-route 192.168.2.0/24 {
   /*   next-hop:192.168.2.1*/
            next-hop-interface: "eth0"
              next-hop-vif: "eth0"
        }
        interface-route 192.168.1.0/24 {
/*      next-hop:192.168.1.1  */
            next-hop-interface: "eth1"
              next-hop-vif: "eth1"
        }
    }

    ospf4 {
        router-id: 127.1.0.1
        area 192.168.0.0 {
            interface "eth0" {
                /*hello-interval: 10*/
                vif "eth0" {
                    address 192.168.2.1 {
                       interface-cost: 1
                    }
                }
            }

            interface "eth1" {
                vif "eth1" {
                    address 192.168.1.1 {
                       interface-cost: 1
                    }
                }
            }

        } /* area */

        /* traceoptions {
            flag all {
                disable: false
            }
        } */
    }


    fib2mrib {
        disable: false
    }
    igmp {
        disable: false
        interface "eth0" {
            vif "eth0" {
                disable: false
                version: 2
                enable-ip-router-alert-option-check: false
                query-interval: 125
                query-last-member-interval: 1
                query-response-interval: 10
                robust-count: 2
            }
        }

        interface "eth1" {
            vif "eth1" {
                disable: false
                version: 2
                enable-ip-router-alert-option-check: false
                query-interval: 125
                query-last-member-interval: 1
                query-response-interval: 10
                robust-count: 2
            }
        }


        /* traceoptions {
            flag {
                all {
                    disable: false
                }
            }
        }*/
    } /* igmp */

    mld {
        disable: false
        interface "eth0" {
            vif "eth0" {
                disable: false
                version: 1
            }
        }

        interface "eth1" {
            vif "eth1" {
                disable: false
                version: 1
            }
        }


    } /* mld */


}  /* protocols */

plumbing {
    mfea4 {
        disable: false
        interface "eth0" {
            vif "eth0" {
                disable: false
            }
        }
        interface "eth1" {
            vif "eth1" {
                disable: false
            }
        }
    } /*  mfea4  */
} /* plumbing */


/* End of Config File */
#++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++

When I run XORP and OSPF, at first half minute, every thing looks perfect.
PC1 and  PC2 can see each othter on its ospf neighbor list through xorpsh,
and the state reach full.

BUT, after a while, PC2's eth0 lost its IP !!!  Even I manually configure
an IP, it will lost again soon.

I realised I didn't set the hello-interval, but when I add the sentence to
config.boot on above where the word is in red, I can't run the XORP, is the
sentence's syntax wrong?

Did I get something wrong on config.boot or somewhere else?
I really need your help, and hope to hear from you soon.
Thanks a lot!

-- 
——————
Best regards!
xtrong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140109/6dcd2ea0/attachment.html 


More information about the Xorp-users mailing list