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