Re: BGP 2 ISIS

From: huang gang (bgv@ggv.com.cn)
Date: Tue Aug 05 2003 - 02:09:43 GMT-3


hi,
    try it!
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fiprrp_r/bgp_r/1rfbgp1.htm#1221038
bgp redistribute-internal
To allow the redistribution of iBGP routes into an interior gateway protocol such as IS-IS or OSPF, use the bgp redistribute-internal command in router configuration mode. To remove the bgp redistribute-internal command from the configuration file and restore the system to its default condition where the software does not allow the redistribution of iBGP routes into Interior Gateway Protocols (IGPs), use the no form of this command.

huangg

----- Original Message -----
From: "Charles T. Alexander" <charles.t.alexander@verizon.net>
To: <ccielab@groupstudy.com>
Sent: Tuesday, August 05, 2003 1:59 AM
Subject: BGP 2 ISIS

> Having difficulty in distributing bgp to isis.
>
> r5 connected to r7 Trying to redistribute the 172.16.X.X.
>
> First is route and bgp table followed by config for r5
> Next route and config for r7
>
> r5#b
> BGP table version is 37, local router ID is 150.50.5.5
> Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight Path
> *>i172.16.0.0/24 150.50.10.1 100 0 8888 500 i
> *>i172.16.1.0/24 150.50.10.1 100 0 8888 500 i
> *>i172.16.2.0/24 150.50.10.1 100 0 8888 500 i
> *>i172.16.3.0/24 150.50.10.1 100 0 8888 500 i
> *> 193.168.10.0 150.50.8.8 0 0 800 i
> *> 193.168.11.0 150.50.8.8 0 0 800 i
> r5#bs
> BGP router identifier 150.50.5.5, local AS number 200
> BGP table version is 37, main routing table version 37
> 6 network entries and 6 paths using 798 bytes of memory
> 2 BGP path attribute entries using 104 bytes of memory
> 2 BGP AS-PATH entries using 48 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 activity 34/196 prefixes, 44/38 paths, scan interval 15 secs
>
> Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
> State/PfxRcd
>
> 150.50.2.2 4 200 1168 1180 37 0 0
> 04:49:42 4
> 150.50.8.8 4 800 275 278 37 0 0
> 00:10:00 2
> r5#i
> Codes: C - connected, S - static, I - IGRP, 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, E - EGP
> i - IS-IS, 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 150.50.201.7 to network 0.0.0.0
>
> B 193.168.11.0/24 [20/0] via 150.50.8.8, 00:10:07
> 192.168.10.0/26 is subnetted, 1 subnets
> O IA 192.168.10.0 [110/1832] via 150.50.100.6, 19:42:03, Serial1/0
> 172.16.0.0/24 is subnetted, 4 subnets
> B 172.16.0.0 [200/0] via 150.50.10.1, 01:04:22
> B 172.16.1.0 [200/0] via 150.50.10.1, 01:04:22
> B 172.16.2.0 [200/0] via 150.50.10.1, 01:04:22
> B 172.16.3.0 [200/0] via 150.50.10.1, 01:04:22
> B 193.168.10.0/24 [20/0] via 150.50.8.8, 00:10:07
> O E2 192.168.4.0/24 [110/400] via 150.50.100.2, 19:42:04, Serial1/0
> 10.0.0.0/24 is subnetted, 2 subnets
> i ia 10.1.2.0 [109/183] via 150.50.201.7, Ethernet0/0
> i ia 10.1.1.0 [109/183] via 150.50.201.7, Ethernet0/0
> O E2 192.168.1.0/24 [110/400] via 150.50.100.2, 19:42:05, Serial1/0
> O E2 192.168.2.0/24 [110/400] via 150.50.100.2, 19:42:05, Serial1/0
> 150.50.0.0/16 is variably subnetted, 19 subnets, 3 masks
> O E2 150.50.200.0/24 [110/300] via 150.50.100.2, 19:42:05, Serial1/0
> C 150.50.201.0/24 is directly connected, Ethernet0/0
> O IA 150.50.40.0/24 [110/270] via 150.50.100.4, 19:42:05, Serial1/0
> i ia 150.50.8.8/32 [109/158] via 150.50.201.7, Ethernet0/0
> i L1 150.50.7.7/32 [109/17] via 150.50.201.7, Ethernet0/0
> O E2 150.50.6.6/32 [110/400] via 150.50.100.6, 05:02:54, Serial1/0
> O IA 150.50.9.9/32 [110/1823] via 150.50.100.6, 19:42:05, Serial1/0
> O IA 150.50.1.1/32 [110/271] via 150.50.100.2, 19:42:05, Serial1/0
> O 150.50.4.4/32 [110/261] via 150.50.100.4, 19:42:05, Serial1/0
> O 150.50.2.2/32 [110/261] via 150.50.100.2, 19:42:05, Serial1/0
> C 150.50.5.5/32 is directly connected, Loopback0
> O IA 150.50.10.0/24 [110/270] via 150.50.100.2, 19:42:05, Serial1/0
> O E2 150.50.101.1/32 [110/400] via 150.50.100.6, 00:10:25, Serial1/0
> C 150.50.100.0/24 is directly connected, Serial1/0
> i L1 150.50.101.0/30 [109/20] via 150.50.201.7, Ethernet0/0
> O E2 150.50.101.2/32 [110/400] via 150.50.100.6, 00:10:25, Serial1/0
> C 150.50.101.5/32 is directly connected, BRI0/0
> C 150.50.101.4/30 is directly connected, BRI0/0
> O IA 150.50.71.0/30 [110/1822] via 150.50.100.6, 19:42:07, Serial1/0
> O E2 192.168.3.0/24 [110/400] via 150.50.100.2, 19:42:06, Serial1/0
> i*L1 0.0.0.0/0 [109/10] via 150.50.201.7, Ethernet0/0
> r5#r
> Building configuration...
>
> Current configuration:
> !
> version 12.1
> service timestamps debug uptime
> service timestamps log uptime
> no service password-encryption
> !
> hostname r5
> !
> logging buffered 10000 debugging
> enable password radnor
> !
> username r2 password 0 ctasta
> !
> !
> !
> !
> ip subnet-zero
> no ip domain-lookup
> !
> lane client flush
> isdn switch-type basic-ni
> cns event-service server
> !
> !
> !
> !
> !
> interface Loopback0
> ip address 150.50.5.5 255.255.255.255
> !
> interface BRI0/0
> ip address 150.50.101.6 255.255.255.252
> encapsulation ppp
> ip ospf cost 9999
> dialer idle-timeout 90
> dialer map ip 150.50.101.5 name r2 broadcast 4081111111
> dialer load-threshold 1 outbound
> dialer-group 1
> isdn switch-type basic-ni
> isdn spid1 40822222221
> isdn spid2 40822222222
> random-detect
> ppp multilink
> !
> interface Ethernet0/0
> ip address 150.50.201.5 255.255.255.0
> ip router isis
> !
> interface TokenRing0/0
> no ip address
> shutdown
> ring-speed 16
> !
> interface Serial1/0
> bandwidth 384
> ip address 150.50.100.5 255.255.255.0
> encapsulation frame-relay
> ip ospf priority 0
> no fair-queue
> frame-relay map ip 150.50.100.2 501 broadcast
> frame-relay map ip 150.50.100.4 501 broadcast
> frame-relay map ip 150.50.100.5 501
> frame-relay map ip 150.50.100.6 501 broadcast
> no frame-relay inverse-arp
> frame-relay lmi-type ansi
> !
> interface Serial1/1
> no ip address
> shutdown
> !
> interface Serial1/2
> no ip address
> shutdown
> !
> interface Serial1/3
> no ip address
> shutdown
> !
> router ospf 1
> router-id 150.50.5.5
> redistribute connected subnets
> redistribute isis level-1 metric 33 subnets route-map i2o
> network 150.50.5.5 0.0.0.0 area 0
> network 150.50.100.0 0.0.0.255 area 0
> network 150.50.101.4 0.0.0.3 area 0
> !
> router isis
> redistribute connected metric 30 route-map c2i level-1
> redistribute ospf 1 metric 30 route-map o2i level-1
> redistribute bgp 200 metric 30 route-map b2i level-1
> distance 109 0.0.0.0 255.255.255.255
> net 49.0007.5555.5555.5555.00
> is-type level-1
> !
> router bgp 200
> no synchronization
> neighbor 150.50.2.2 remote-as 200
> neighbor 150.50.2.2 update-source Loopback0
> neighbor 150.50.8.8 remote-as 800
> neighbor 150.50.8.8 ebgp-multihop 5
> neighbor 150.50.8.8 update-source Loopback0
> no auto-summary
> !
> ip classless
> no ip http server
> !
> access-list 11 permit 150.50.1.1
> access-list 11 permit 150.50.2.2
> access-list 11 permit 150.50.4.4
> access-list 11 permit 150.50.5.5
> access-list 11 permit 150.50.9.9
> access-list 11 permit 192.168.1.0 0.0.0.255
> access-list 11 permit 192.168.2.0 0.0.0.255
> access-list 11 permit 192.168.3.0 0.0.0.255
> access-list 11 permit 192.168.4.0 0.0.0.255
> access-list 11 permit 150.50.200.0 0.0.0.255
> access-list 11 permit 150.50.10.0 0.0.0.255
> access-list 11 permit 150.50.101.4 0.0.0.3
> access-list 11 permit 150.50.100.0 0.0.0.255
> access-list 11 permit 150.50.40.0 0.0.0.255
> access-list 11 permit 150.50.71.0 0.0.0.3
> access-list 11 permit 192.168.10.0 0.0.0.63
> access-list 12 permit 150.50.5.5
> access-list 12 permit 150.50.101.4 0.0.0.3
> access-list 12 permit 150.50.100.0 0.0.0.255
> access-list 21 permit 150.50.7.7
> access-list 21 permit 150.50.8.8
> access-list 21 permit 150.50.201.0 0.0.0.255
> access-list 21 permit 150.50.101.0 0.0.0.3
> access-list 21 permit 10.1.1.0 0.0.0.255
> access-list 21 permit 10.1.2.0 0.0.0.255
> access-list 31 permit 172.16.0.0 0.0.3.255
> dialer-list 1 protocol ip permit
> route-map o2i permit 10
> match ip address 11
> !
> route-map i2o permit 10
> match ip address 21
> !
> route-map c2i permit 10
> match ip address 12
> !
> route-map b2i permit 10
> match ip address 31
> !
> !
> alias exec i show ip route
> alias exec r show run
> alias exec c config t
> alias exec u undebug all
> alias exec b show ip bgp
> alias exec bs show ip bgp sum
> alias exec s show ip int brief
> !
> line con 0
> exec-timeout 0 0
> logging synchronous
> transport input none
> escape-character 27
> line aux 0
> line vty 0 4
> exec-timeout 0 0
> password bp
> login
> !
> end
>
> r5#
>
>
> r7#i
> Codes: C - connected, S - static, I - IGRP, 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, E - EGP
> i - IS-IS, 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
>
> 192.168.10.0/26 is subnetted, 1 subnets
> i L1 192.168.10.0 [115/40] via 150.50.201.5, Ethernet0
> i L1 192.168.4.0/24 [115/40] via 150.50.201.5, Ethernet0
> 10.0.0.0/24 is subnetted, 2 subnets
> i L2 10.1.2.0 [115/45] via 150.50.101.2, Serial0
> i L2 10.1.1.0 [115/45] via 150.50.101.2, Serial0
> i L1 192.168.1.0/24 [115/40] via 150.50.201.5, Ethernet0
> i L1 192.168.2.0/24 [115/40] via 150.50.201.5, Ethernet0
> 150.50.0.0/16 is variably subnetted, 18 subnets, 3 masks
> i L1 150.50.200.0/24 [115/40] via 150.50.201.5, Ethernet0
> C 150.50.201.0/24 is directly connected, Ethernet0
> i L1 150.50.40.0/24 [115/40] via 150.50.201.5, Ethernet0
> i L1 150.50.5.5/32 [115/40] via 150.50.201.5, Ethernet0
> i L1 150.50.2.2/32 [115/40] via 150.50.201.5, Ethernet0
> i L1 150.50.4.4/32 [115/40] via 150.50.201.5, Ethernet0
> i L1 150.50.1.1/32 [115/40] via 150.50.201.5, Ethernet0
> i L1 150.50.9.9/32 [115/40] via 150.50.201.5, Ethernet0
> i L2 150.50.6.6/32 [115/25] via 150.50.201.6, Ethernet0
> i L2 150.50.8.8/32 [115/20] via 150.50.101.2, Serial0
> C 150.50.7.7/32 is directly connected, Loopback0
> i L1 150.50.10.0/24 [115/40] via 150.50.201.5, Ethernet0
> i L1 150.50.100.0/24 [115/40] via 150.50.201.5, Ethernet0
> C 150.50.101.0/30 is directly connected, Serial0
> C 150.50.101.2/32 is directly connected, Serial0
> i L1 150.50.101.5/32 [115/40] via 150.50.201.5, Ethernet0
> i L1 150.50.101.4/30 [115/40] via 150.50.201.5, Ethernet0
> i L1 150.50.71.0/30 [115/40] via 150.50.201.5, Ethernet0
> i L1 192.168.3.0/24 [115/40] via 150.50.201.5, Ethernet0
> S 193.168.10.0/23 [1/0] via 150.50.101.2
> r7#r
> Building configuration...
>
> Current configuration : 1558 bytes
> !
> version 12.2
> service timestamps debug uptime
> service timestamps log uptime
> no service password-encryption
> !
> hostname r7
> !
> logging buffered 10000 debugging
> enable password radnor
> !
> ip subnet-zero
> no ip domain-lookup
> !
> !
> !
> !
> interface Loopback0
> ip address 150.50.7.7 255.255.255.255
> !
> interface Ethernet0
> ip address 150.50.201.7 255.255.255.0
> ip router isis
> no ip route-cache
> no ip mroute-cache
> !
> interface Serial0
> bandwidth 64
> ip address 150.50.101.1 255.255.255.252
> ip router isis
> encapsulation ppp
> no ip route-cache
> no ip mroute-cache
> clockrate 64000
> ppp quality 85
> !
> interface Serial1
> no ip address
> no ip route-cache
> no ip mroute-cache
> shutdown
> !
> router isis
> redistribute connected metric 7 route-map c2i level-1-2
> redistribute isis ip level-2 into level-1 distribute-list 111
> net 49.0007.7777.7777.7777.00
> !
> ip classless
> ip route 193.168.10.0 255.255.254.0 150.50.101.2
> no ip http server
> ip pim bidir-enable
> !
> access-list 1 permit 150.50.7.7
> access-list 111 permit ip host 150.50.8.8 any
> access-list 111 permit ip 10.1.1.0 0.0.0.255 any
> access-list 111 permit ip 10.1.2.0 0.0.0.255 any
> route-map c2i permit 10
> match ip address 1
> !
> !
> alias exec i show ip route
> alias exec r show run
> alias exec c config t
> alias exec u undebug all
> alias exec b show ip bgp
> alias exec bs show ip bgp sum
> alias exec s show ip int brief
> !
> line con 0
> exec-timeout 0 0
> logging synchronous
> escape-character 27
> line 1 8
> flush-at-activation
> transport input all
> line aux 0
> transport input all
> line vty 0 4
> exec-timeout 0 0
> password bp
> login
> !
> end
>
> r7#
>
>
> _______________________________________________________________________
> You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Tue Sep 02 2003 - 18:53:53 GMT-3