Sei sulla pagina 1di 20

GHCs-Computer:~ root# telnet 10.0.1.113 2001 Trying 10.0.1.113... Connected to 10.0.1.113. Escape character is '^]'.

Connected to Dynamips VM "R2" (ID 1, type c2600) - Console port Router>en Router#sh int descr Interface Fa0/0 Se0/0 Fa0/1 Se0/1 Router#sh ip int br Interface ocol FastEthernet0/0 Serial0/0 FastEthernet0/1 Serial0/1

Status up up admin down admin down IP-Address 192.168.21.1 192.168.11.2 unassigned unassigned

Protocol Description up up down down OK? Method Status YES manual up YES manual up Prot up up

YES unset administratively down down YES unset administratively down down

Router# Router# Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname AS200 AS200(config)#end AS200# *Mar 1 01:01:18.399: %SYS-5-CONFIG_I: Configured from console by console AS200# AS200#sh run Building configuration... Current configuration : 643 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname AS200 ! boot-start-marker boot-end-marker ! ! memory-size iomem 15 no aaa new-model ip subnet-zero ! ! ! ip cef ! !

! ! ! ! ! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.21.1 255.255.255.0 duplex auto speed auto ! interface Serial0/0 ip address 192.168.11.2 255.255.255.0 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown ! ip http server ip classless ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end AS200#sh ip bgp summ % BGP not active AS200#conf t Enter configuration commands, one per line. End with CNTL/Z. AS200(config)#router bgp 200 AS200(config-router)#nei AS200(config-router)#neighbor 192.168.11.1 remote AS200(config-router)#neighbor 192.168.11.1 remote-as ? <1-65535> AS of remote neighbor

AS200(config-router)#neighbor 192.168.11.1 remote-as 100 AS200(config-router)#end AS200# AS200# *Mar 1 01:04:05.407: %SYS-5-CONFIG_I: Configured from console by console AS200# AS200#sh ip bgp summ BGP router identifier 192.168.21.1, local AS number 200 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.11.1 4 100 0 0 0 0 0 never Idle AS200#sh ip bgp summ BGP router identifier 192.168.21.1, local AS number 200 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.11.1 4 100 0 0 0 0 0 never Active AS200#sh ip bgp summ BGP router identifier 192.168.21.1, local AS number 200 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.11.1 4 100 0 0 0 0 0 never Active AS200#sh ip bgp summ BGP router identifier 192.168.21.1, local AS number 200 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.11.1 4 100 0 0 0 0 0 never Active AS200#sh ip bgp summ BGP router identifier 192.168.21.1, local AS number 200 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.11.1 4 100 0 0 0 0 0 never Active AS200#sh ip bgp summ BGP router identifier 192.168.21.1, local AS number 200 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.11.1 4 100 0 0 0 0 0 never Active AS200#sh ip bgp summ BGP router identifier 192.168.21.1, local AS number 200 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.11.1 4 100 0 0 0 0 0 never Active AS200# *Mar 1 01:11:48.211: %BGP-5-ADJCHANGE: neighbor 192.168.11.1 Up AS200# AS200#sh run Building configuration... Current configuration : 760 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption

! hostname AS200 ! boot-start-marker boot-end-marker ! ! memory-size iomem 15 no aaa new-model ip subnet-zero ! ! ! ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.21.1 255.255.255.0 duplex auto speed auto ! interface Serial0/0 ip address 192.168.11.2 255.255.255.0 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown ! router bgp 200 no synchronization bgp log-neighbor-changes neighbor 192.168.11.1 remote-as 100 no auto-summary ! ip http server ip classless ! ! ! !

! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! AS200#wr Building configuration... [OK] AS200#sh ip bgp summ BGP router identifier 192.168.21.1, local AS number 200 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.11.1 4 100 18 18 1 0 0 00:14:19 0 AS200#sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set C 192.168.11.0/24 is directly connected, Serial0/0 C 192.168.21.0/24 is directly connected, FastEthernet0/0 AS200# AS200#conf t Enter configuration commands, one per line. End with CNTL/Z. AS200(config)#router bgp 200 AS200(config-router)#netwo AS200(config-router)#network 192.168.21.0 mas AS200(config-router)#network 192.168.21.0 mask 255.255.255.0 ? backdoor Specify a BGP backdoor route nlri Specify nlri type for network route-map Route-map to modify the attributes <cr> AS200(config-router)#network 192.168.21.0 mask 255.255.255.0 AS200(config-router)#end AS200# AS200# *Mar 1 01:36:44.347: %SYS-5-CONFIG_I: Configured from console by console AS200#sh run Building configuration... Current configuration : 782 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname AS200

! boot-start-marker boot-end-marker ! ! memory-size iomem 15 no aaa new-model ip subnet-zero ! ! ! ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.21.1 255.255.255.0 duplex auto speed auto ! interface Serial0/0 ip address 192.168.11.2 255.255.255.0 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown ! router bgp 200 no synchronization bgp log-neighbor-changes network 192.168.21.0 neighbor 192.168.11.1 remote-as 100 no auto-summary ! ip http server ip classless ! ! ! ! !

! ! ! AS200#sh ip bgp summ BGP router identifier 192.168.21.1, local AS number 200 BGP table version is 2, main routing table version 2 1 network entries using 101 bytes of memory 1 path entries using 48 bytes of memory 1 BGP path attribute entries using 60 bytes of memory 0 BGP route-map cache entries using 0 bytes of memory 0 BGP filter-list cache entries using 0 bytes of memory BGP using 209 total bytes of memory BGP activity 1/0 prefixes, 1/0 paths, scan interval 60 secs Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.11.1 4 100 29 30 2 0 0 00:25:50 0 AS200# AS200# AS200# AS200# AS200# AS200#sh ip bgp neig 192.168.11.1 adve AS200#sh ip bgp neig 192.168.11.1 advertised-routes BGP table version is 2, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network *> 192.168.21.0 AS200# AS200# AS200# AS200# AS200# AS200# AS200# Next Hop 0.0.0.0 Metric LocPrf Weight Path 0 32768 i

AS200 con0 is now available

Press RETURN to get started.

AS200> AS200> AS200> AS200> AS200> AS200>en AS200#conf t Enter configuration commands, one per line. End with CNTL/Z. AS200(config)#ip route 0.0.0.0 0.0.0.0 seri AS200(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0 AS200(config)#end AS200# *Mar 1 01:54:09.359: %SYS-5-CONFIG_I: Configured from console by console AS200# AS200#sh ip int br Interface IP-Address OK? Method Status ocol FastEthernet0/0 192.168.21.1 YES manual up Serial0/0 FastEthernet0/1 Serial0/1 192.168.11.2 unassigned unassigned YES manual up

Prot up up

YES unset administratively down down YES unset administratively down down

AS200# AS200# AS200# AS200#conf t Enter configuration commands, one per line. End with CNTL/Z. AS200(config)#int lo AS200(config)#int loopback 10 AS200(config-if)#ip add AS200(config-if)#ip address 10.200.0.0 255.255.255.0 Bad mask /24 for address 10.200.0.0 AS200(config-if)#ip address 10.200.0.1 255.255.255.0 AS200(config-if)#exit AS200(config)#int loopback 20 AS200(config-if)#ip address 10.200.20.1 255.255.255.0

AS200(config-if)#end AS200# AS200# AS200#sh *Mar 1 02:02:19.603: %SYS-5-CONFIG_I: Configured from console by consoleip rout e Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0 C C 192.168.11.0/24 is directly connected, Serial0/0 192.168.21.0/24 is directly connected, FastEthernet0/0 10.0.0.0/24 is subnetted, 2 subnets C 10.200.0.0 is directly connected, Loopback10 C 10.200.20.0 is directly connected, Loopback20 S* 0.0.0.0/0 is directly connected, Serial0/0 AS200# AS200# AS200#conf t Enter configuration commands, one per line. End with CNTL/Z. AS200(config)#rou AS200(config)#router bgp 200 AS200(config-router)#net AS200(config-router)#network 10.200.0.0 mask 255.255.255.0 AS200(config-router)#network 10.200.20.0 mask 255.255.255.0 AS200(config-router)#end AS200# *Mar 1 02:04:01.007: %SYS-5-CONFIG_I: Configured from console by console AS200# AS200# AS200#sh ip bgp nei AS200#sh ip bgp neighbors 192.168.11.1 adv AS200#sh ip bgp neighbors 192.168.11.1 advertised-routes BGP table version is 2, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 192.168.21.0 0.0.0.0 0 32768 i AS200#conf t Enter configuration commands, one per line. End with CNTL/Z. AS200(config)#no int loop 10 AS200(config)#no int loop *Mar 1 02:05:12.771: %LINK-5-CHANGED: Interface Loopback10, changed state to ad ministratively down20 AS200(config)# AS200(config)# *Mar 1 02:05:17.903: %LINK-5-CHANGED: Interface Loopback20, changed state to ad ministratively down AS200(config)# AS200(config)# AS200(config)# AS200(config)#ip route 10.200.10.0 255.255.255.0 nu

AS200(config)#ip route 10.200.10.0 255.255.255.0 null 0 AS200(config)#ip route 10.200.20.0 255.255.255.0 null 0 AS200(config)#end AS200# AS200# *Mar 1 02:05:42.815: %SYS-5-CONFIG_I: Configured from console by consolesh ip r oute Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0 C C 192.168.11.0/24 is directly connected, Serial0/0 192.168.21.0/24 is directly connected, FastEthernet0/0 10.0.0.0/24 is subnetted, 2 subnets S 10.200.10.0 is directly connected, Null0 S 10.200.20.0 is directly connected, Null0 S* 0.0.0.0/0 is directly connected, Serial0/0 AS200# AS200#sh ip bgp neighbors 192.168.11.1 advertised-routes BGP table version is 7, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.200.20.0/24 0.0.0.0 0 32768 i *> 192.168.21.0 0.0.0.0 0 32768 i AS200#sh ip bgp neighbors 192.168.11.1 advertised-routes BGP table version is 7, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.200.20.0/24 0.0.0.0 0 32768 i *> 192.168.21.0 0.0.0.0 0 32768 i AS200#sh ip bgp neighbors 192.168.11.1 advertised-routes BGP table version is 7, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.200.20.0/24 0.0.0.0 0 32768 i *> 192.168.21.0 0.0.0.0 0 32768 i AS200#sh ip bgp neighbors 192.168.11.1 advertised-routes BGP table version is 7, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network *> 10.200.20.0/24 *> 192.168.21.0 Next Hop 0.0.0.0 0.0.0.0 Metric LocPrf Weight Path 0 32768 i 0 32768 i

AS200#sh ip bgp neighbors 192.168.11.1 advertised-routes BGP table version is 7, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.200.20.0/24 0.0.0.0 0 32768 i *> 192.168.21.0 0.0.0.0 0 32768 i AS200#sh ip bgp neighbors 192.168.11.1 advertised-routes BGP table version is 7, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.200.20.0/24 0.0.0.0 0 32768 i *> 192.168.21.0 0.0.0.0 0 32768 i AS200#sh ip bgp BGP table version is 7, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop *> 10.200.20.0/24 0.0.0.0 *> 192.168.21.0 0.0.0.0 AS200#sh run Building configuration... Current configuration : 978 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname AS200 ! boot-start-marker boot-end-marker ! ! memory-size iomem 15 no aaa new-model ip subnet-zero ! ! ! ip cef ! ! ! ! ! ! ! ! ! ! Metric LocPrf Weight Path 0 32768 i 0 32768 i

! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.21.1 255.255.255.0 duplex auto speed auto ! interface Serial0/0 ip address 192.168.11.2 255.255.255.0 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown ! router bgp 200 no synchronization bgp log-neighbor-changes network 10.200.0.0 mask 255.255.255.0 network 10.200.20.0 mask 255.255.255.0 network 192.168.21.0 neighbor 192.168.11.1 remote-as 100 no auto-summary ! ip http server ip classless ip route 0.0.0.0 0.0.0.0 Serial0/0 ip route 10.200.10.0 255.255.255.0 Null0 ip route 10.200.20.0 255.255.255.0 Null0 ! ! ! AS200#conf t Enter configuration commands, one per line. End with CNTL/Z. AS200(config)#router bgp 200 AS200(config-router)#net AS200(config-router)#network 10.200.10.0 mas AS200(config-router)#network 10.200.10.0 mask 255.255.255.0 AS200(config-router)#end AS200#sh ip bgp *Mar 1 02:06:47.071: %SYS-5-CONFIG_I: Configured from console by console BGP table version is 7, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.200.20.0/24 0.0.0.0 0 32768 i *> 192.168.21.0 0.0.0.0 0 32768 i AS200#sh ip bgp neighbors 192.168.11.1 advertised-routes

BGP table version is 8, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.200.10.0/24 0.0.0.0 0 32768 i *> 10.200.20.0/24 0.0.0.0 0 32768 i *> 192.168.21.0 0.0.0.0 0 32768 i AS200# AS200# AS200# AS200# AS200#sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0 C C 192.168.11.0/24 is directly connected, Serial0/0 192.168.21.0/24 is directly connected, FastEthernet0/0 10.0.0.0/24 is subnetted, 2 subnets S 10.200.10.0 is directly connected, Null0 S 10.200.20.0 is directly connected, Null0 S* 0.0.0.0/0 is directly connected, Serial0/0 AS200# AS200# AS200# AS200# AS200# AS200# AS200# AS200# AS200# AS200#sh run Building configuration... Current configuration : 1018 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname AS200 ! boot-start-marker boot-end-marker ! ! memory-size iomem 15 no aaa new-model ip subnet-zero ! !

! ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.21.1 255.255.255.0 duplex auto speed auto ! interface Serial0/0 ip address 192.168.11.2 255.255.255.0 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown ! router bgp 200 no synchronization bgp log-neighbor-changes network 10.200.0.0 mask 255.255.255.0 network 10.200.10.0 mask 255.255.255.0 network 10.200.20.0 mask 255.255.255.0 network 192.168.21.0 neighbor 192.168.11.1 remote-as 100 no auto-summary ! ip http server ip classless ip route 0.0.0.0 0.0.0.0 Serial0/0 ip route 10.200.10.0 255.255.255.0 Null0 ip route 10.200.20.0 255.255.255.0 Null0 ! AS200# AS200# AS200#sh ip bgp neighbors 192.168.11.1 advertised-routes BGP table version is 8, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path *> 10.200.10.0/24 0.0.0.0 0 32768 i *> 10.200.20.0/24 0.0.0.0 0 32768 i *> 192.168.21.0 0.0.0.0 0 32768 i AS200# AS200#sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0 C C 192.168.11.0/24 is directly connected, Serial0/0 192.168.21.0/24 is directly connected, FastEthernet0/0 10.0.0.0/24 is subnetted, 2 subnets S 10.200.10.0 is directly connected, Null0 S 10.200.20.0 is directly connected, Null0 S* 0.0.0.0/0 is directly connected, Serial0/0 AS200# AS200#sh ip bgp neighbors 192.168.11.1 advertised-routes BGP table version is 8, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop *> 10.200.10.0/24 0.0.0.0 *> 10.200.20.0/24 0.0.0.0 *> 192.168.21.0 0.0.0.0 AS200#sh run Building configuration... Current configuration : 1018 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname AS200 ! boot-start-marker boot-end-marker ! ! memory-size iomem 15 no aaa new-model ip subnet-zero ! ! ! ip cef ! ! ! Metric LocPrf Weight Path 0 32768 i 0 32768 i 0 32768 i

! ! ! ! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.21.1 255.255.255.0 duplex auto speed auto ! interface Serial0/0 ip address 192.168.11.2 255.255.255.0 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown ! router bgp 200 no synchronization bgp log-neighbor-changes network 10.200.0.0 mask 255.255.255.0 network 10.200.10.0 mask 255.255.255.0 network 10.200.20.0 mask 255.255.255.0 network 192.168.21.0 neighbor 192.168.11.1 remote-as 100 no auto-summary ! ip http server AS200#wr Building configuration... [OK] AS200#

AS200 con0 is now available

Press RETURN to get started.

AS200> AS200> AS200> AS200> AS200>en AS200# AS200# AS200#sh ip rout Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0

C C

192.168.11.0/24 is directly connected, Serial0/0 192.168.21.0/24 is directly connected, FastEthernet0/0 10.0.0.0/24 is subnetted, 2 subnets S 10.200.10.0 is directly connected, Null0 S 10.200.20.0 is directly connected, Null0 S* 0.0.0.0/0 is directly connected, Serial0/0 AS200# AS200# AS200#conf t Enter configuration commands, one per line. End with CNTL/Z. AS200(config)#ip pref AS200(config)#ip prefix-list mis-redes ? deny Specify packets to reject description Prefix-list specific description permit Specify packets to forward seq sequence number of an entry AS200(config)#ip prefix-list mis-redes permi AS200(config)#ip prefix-list mis-redes permit ? A.B.C.D IP prefix <network>/<length>, e.g., 35.0.0.0/8 AS200(config)#ip prefix-list mis-redes permit 192.168.21.0/24 ? ge Minimum prefix length to be matched le Maximum prefix length to be matched <cr> AS200(config)#ip prefix-list mis-redes permit 192.168.21.0/24 AS200(config)# AS200(config)#router bgp 200 AS200(config-router)#nei AS200(config-router)#neighbor 192.168.11.1 pre AS200(config-router)#neighbor 192.168.11.1 prefix-list mis-redes ? in Filter incoming updates out Filter outgoing updates AS200(config-router)#neighbor 192.168.11.1 prefix-list mis-redes out AS200(config-router)#end AS200# *Mar 1 02:24:15.623: %SYS-5-CONFIG_I: Configured from console by console AS200# AS200#sh ip bgp nei AS200#sh ip bgp neighbors 192.168.11.1 adv BGP table version is 8, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.200.10.0/24 0.0.0.0 0 32768 i *> 10.200.20.0/24 0.0.0.0 0 32768 i *> 192.168.21.0 0.0.0.0 0 32768 i AS200#sh ip bgp neighbors 192.168.11.1 adv BGP table version is 8, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network *> 10.200.10.0/24 *> 10.200.20.0/24 Next Hop 0.0.0.0 0.0.0.0 Metric LocPrf Weight Path 0 32768 i 0 32768 i

*> 192.168.21.0 0.0.0.0 0 32768 i AS200#sh ip bgp neighbors 192.168.11.1 adv BGP table version is 8, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network *> 10.200.10.0/24 *> 10.200.20.0/24 *> 192.168.21.0 AS200#clear ip bgp <cr> Next Hop Metric LocPrf Weight Path 0.0.0.0 0 32768 i 0.0.0.0 0 32768 i 0.0.0.0 0 32768 i 192.168.11.1 soft out ?

AS200#clear ip bgp 192.168.11.1 soft out AS200# AS200#sh ip bgp neighbors 192.168.11.1 adv BGP table version is 8, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 192.168.21.0 0.0.0.0 0 32768 i AS200#sh ip bgp BGP table version is 8, local router ID is 192.168.21.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop *> 10.200.10.0/24 0.0.0.0 *> 10.200.20.0/24 0.0.0.0 *> 192.168.21.0 0.0.0.0 AS200# AS200#wr Building configuration... [OK] AS200# Metric LocPrf Weight Path 0 32768 i 0 32768 i 0 32768 i

AS200 con0 is now available

Press RETURN to get started.

telnet> c Connection closed. GHCs-Computer:~ root#

Potrebbero piacerti anche