[Xorp-hackers] route is break ,when one of link break.

wxh585 43026437 at qq.com
Thu Jun 30 06:04:45 PDT 2011


xorp router ======switch------cisco router
 when one of link is breakage,link online is not "ping",
 cisco router configure:
 interface FastEthernet0/0
 no ip address
 duplex auto
 speed 100
!
interface FastEthernet0/0.1
 encapsulation dot1Q 101
 ip address 192.168.3.1 255.255.255.252
!
interface FastEthernet0/0.2
 encapsulation dot1Q 102
 ip address 192.168.3.5 255.255.255.252
!
interface FastEthernet0/1
 ip address 192.168.6.1 255.255.255.0
 duplex auto
 speed 100
!
router ospf 878
 router-id 192.168.6.1
 log-adjacency-changes
 network 192.168.3.0 0.0.0.7 area 0.0.0.0
 network 192.168.6.0 0.0.0.255 area 0.0.0.0
!
  
 before the link breakage.
 $ ifconfig
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:10:18:14:55:17
        inet 192.168.3.6 netmask 0xfffffffc broadcast 192.168.3.7
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        ether 00:03:47:e2:9f:83
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        ether 00:03:47:de:d2:75
        inet 192.168.3.2 netmask 0xfffffffc broadcast 192.168.3.3
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
        inet6 ::1 prefixlen 128 
        inet 127.0.0.1 netmask 0xff000000 
$ 
$ ping 192.168.6.1
PING 192.168.6.1 (192.168.6.1): 56 data bytes
64 bytes from 192.168.6.1: icmp_seq=0 ttl=255 time=1.453 ms
64 bytes from 192.168.6.1: icmp_seq=1 ttl=255 time=1.305 ms
^C
--- 192.168.6.1 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 1.305/1.379/1.453/0.074 ms
$ ping 192.168.6.1
PING 192.168.6.1 (192.168.6.1): 56 data bytes
64 bytes from 192.168.6.1: icmp_seq=0 ttl=255 time=1.331 ms
64 bytes from 192.168.6.1: icmp_seq=1 ttl=255 time=1.330 ms
64 bytes from 192.168.6.1: icmp_seq=2 ttl=255 time=1.340 ms
64 bytes from 192.168.6.1: icmp_seq=3 ttl=255 time=1.268 ms
64 bytes from 192.168.6.1: icmp_seq=4 ttl=255 time=1.344 ms
^C
--- 192.168.6.1 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 1.268/1.323/1.344/0.028 ms
$ ping 192.168.3.2
PING 192.168.3.2 (192.168.3.2): 56 data bytes
64 bytes from 192.168.3.2: icmp_seq=0 ttl=64 time=0.056 ms
64 bytes from 192.168.3.2: icmp_seq=1 ttl=64 time=0.016 ms
64 bytes from 192.168.3.2: icmp_seq=2 ttl=64 time=0.020 ms
64 bytes from 192.168.3.2: icmp_seq=3 ttl=64 time=0.015 ms
64 bytes from 192.168.3.2: icmp_seq=4 ttl=64 time=0.015 ms
^C
--- 192.168.3.2 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.015/0.024/0.056/0.016 ms
$ ping 192.168.3.6
PING 192.168.3.6 (192.168.3.6): 56 data bytes
64 bytes from 192.168.3.6: icmp_seq=0 ttl=64 time=0.054 ms
64 bytes from 192.168.3.6: icmp_seq=1 ttl=64 time=0.016 ms
64 bytes from 192.168.3.6: icmp_seq=2 ttl=64 time=0.018 ms
64 bytes from 192.168.3.6: icmp_seq=3 ttl=64 time=0.017 ms
64 bytes from 192.168.3.6: icmp_seq=4 ttl=64 time=0.014 ms
64 bytes from 192.168.3.6: icmp_seq=5 ttl=64 time=0.013 ms
^C
--- 192.168.3.6 ping statistics ---
6 packets transmitted, 6 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.013/0.022/0.054/0.014 ms
$ 
$ uname -a
FreeBSD r.d 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Mon Apr  4 10:34:12 UTC 2011     root at r.d:/usr/obj/usr/src/sys/GENERIC2  i386
$ xorpsh
Welcome to haizz router on r.d
admin at r.d> show ospf4 database 
   OSPF link state database, Area 0.0.0.0
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Router  *192.168.1.1      192.168.1.1      0x80000041   264  0x2  0x3b2f  48
Router   192.168.6.1      192.168.6.1      0x80000025   270  0x22 0xf3eb  60
Network  192.168.3.1      192.168.6.1      0x80000001   277  0x22 0x8af8  32
Network  192.168.3.5      192.168.6.1      0x80000001   275  0x22 0x621d  32
ASExt-2 *192.168.1.0      192.168.1.1      0x80000001   274  0x2  0xdef   36
ASExt-2 *192.168.3.0      192.168.1.1      0x80000001   274  0x2  0x5837  36
ASExt-2 *192.168.3.4      192.168.1.1      0x80000001   274  0x2  0x681f  36
admin at r.d> show ospf4 neighbor 
  Address         Interface             State      ID              Pri  Dead
192.168.3.1      fxp1/fxp1              Full      192.168.6.1        1    38
192.168.3.5      bge0/bge0              Full      192.168.6.1        1    39
admin at r.d> 
admin at 55# show 
    protocols {
        ospf4 {
            router-id: 192.168.1.1
            area 0.0.0.0 {
                area-range 192.168.3.0/29 {
                }
                area-range 192.168.1.0/24 {
                }
                interface eth2 {
                    vif eth2 {
                        address 192.168.3.2 {
                        }
                    }
                }
                interface eth4 {
                    vif eth2 {
                        address 192.168.3.6 {
                        }
                    }
                }
            }
        }
    }
    policy {
        policy-statement a1 {
            term a1 {
                from {
                    protocol: "connected"
                }
            }
        }
    }
    interfaces {
        interface eth2 {
            vif eth2 {
                address 192.168.3.2 {
                    prefix-length: 30
                }
            }
        }
        interface eth4 {
            vif eth4 {
                address 192.168.3.6 {
                    prefix-length: 30
                }
            }
        }
        interface eth3 {
            vif eth3 {
                address 192.168.1.1 {
                    prefix-length: 24
                }
            }
        }
    }
 [edit]
 all port is alive
  
  
 after one of link breakage.
 $ ifconfig
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:10:18:14:55:17
        inet 192.168.3.6 netmask 0xfffffffc broadcast 192.168.3.7
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        ether 00:03:47:e2:9f:83
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        ether 00:03:47:de:d2:75
        inet 192.168.3.2 netmask 0xfffffffc broadcast 192.168.3.3
        media: Ethernet autoselect (none)
        status: no carrier          ------------------------------------break
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
        inet6 ::1 prefixlen 128 
        inet 127.0.0.1 netmask 0xff000000 
$ ping 192.168.3.6
PING 192.168.3.6 (192.168.3.6): 56 data bytes
ping: sendto: No route to host-------------------------break
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
^C
--- 192.168.3.6 ping statistics ---
5 packets transmitted, 0 packets received, 100.0% packet loss
$ ping 192.168.3.5
PING 192.168.3.5 (192.168.3.5): 56 data bytes
ping: sendto: No route to host-----------------------break
ping: sendto: No route to host
ping: sendto: No route to host
$ ping 192.168.3.2
PING 192.168.3.2 (192.168.3.2): 56 data bytes
64 bytes from 192.168.3.2: icmp_seq=0 ttl=64 time=0.025 ms
64 bytes from 192.168.3.2: icmp_seq=1 ttl=64 time=0.017 ms
^C
--- 192.168.3.2 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.017/0.021/0.025/0.004 ms
$ ping 192.168.6.1
PING 192.168.6.1 (192.168.6.1): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
^C
--- 192.168.6.1 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
$ vty
Welcome to haizz router on r.d
admin at r.d> show ospf4 neighbor 
  Address         Interface             State      ID              Pri  Dead
192.168.3.5      bge0/bge0              Exchange  192.168.6.1        1    35
admin at r.d> show ospf4 database 
   OSPF link state database, Area 0.0.0.0
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Router  *192.168.1.1      192.168.1.1      0x80000045    88  0x2  0x1ea9  36
Router   192.168.6.1      192.168.6.1      0x80000026    91  0x22 0xb999  60
Network  192.168.3.1      192.168.6.1      0x80000001   458  0x22 0x8af8  32
ASExt-2 *192.168.1.0      192.168.1.1      0x80000001   456  0x2  0xdef   36
ASExt-2 *192.168.3.4      192.168.1.1      0x80000001    90  0x2  0x681f  36
admin at r.d>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20110630/82ac7a6f/attachment-0001.html 


More information about the Xorp-hackers mailing list