From: MADMAN (dmadlan@xxxxxxxxx)
Date: Thu Mar 21 2002 - 11:33:32 GMT-3
Only because Huy has disabled auto summerization
Dave
Tshon wrote:
>
> So, the point here is this.
>
> BGP will not advertise a route unless that route is exactly in its
> routing table.
>
> You'll notice that when you didn't have a mask, BGP assumes the Default mask
>
> 12.12.0.0 255.0.0.0 it then looks in its table for a 12.0.0.0 network,
> and since
> it is not found, it doesn't advertise it.
>
> But once you gave the appropriate mask the router found it in the
> routing table
> and advertised it.
>
> network 12.12.0.0 255.255.0.0
>
> S 12.12.0.0 is directly connected, Null0
>
> Huy Luu wrote:
>
> >My config
> >
> >
> >
> >R5---------R6
> >R5 has static route to 12.12.0.0 to next hop null 0.
> >R5 learned 137.20.30.0/24 through OSPF
> >
> >
> >R5#sho run
> >Building configuration...
> >
> >Current configuration : 2465 bytes
> >!
> >version 12.1
> >service timestamps debug uptime
> >service timestamps log uptime
> >no service password-encryption
> >service udp-small-servers
> >service tcp-small-servers
> >!
> >hostname R5
> >!
> >no logging console
> >no logging monitor
> >!
> >!
> >!
> >!
> >!
> >ip subnet-zero
> >no ip domain-lookup
> >!
> >appletalk routing
> >ipx routing 0060.5cf4.721f
> >!
> >!
> >!
> >interface Loopback0
> > no ip address
> > no ip route-cache
> > no ip mroute-cache
> >!
> >interface Loopback10
> > ip address 1.1.1.1 255.255.255.0
> >!
> >interface Ethernet0
> > ip address 137.20.50.1 255.255.255.0
> > no ip route-cache
> > ip ospf cost 1
> > ip ospf priority 255
> > no ip mroute-cache
> > appletalk cable-range 600-600 600.19
> > appletalk zone R5E0
> > ipx network 510
> > ipx network 590 encapsulation SAP secondary
> >!
> >interface Serial0
> > ip address 137.20.101.5 255.255.255.0
> > no ip route-cache
> > ip ospf network point-to-multipoint
> > no ip mroute-cache
> > appletalk cable-range 300-300 300.109
> > appletalk zone R1S02
> > ipx input-sap-filter 1000
> > ipx network 230
> > custom-queue-list 1
> >!
> >interface Serial1
> > no ip address
> > no ip route-cache
> > no ip mroute-cache
> > shutdown
> >!
> >router ospf 100
> > log-adjacency-changes
> > redistribute static
> > network 137.20.101.0 0.0.0.255 area 0
> >!
> >router bgp 2
> > no synchronization
> > bgp log-neighbor-changes
> > network 12.12.0.0 mask 255.255.0.0
> > network 137.20.30.0 mask 255.255.255.0
> > neighbor 137.20.50.7 remote-as 3
> > neighbor 137.20.50.7 soft-reconfiguration inbound
> > no auto-summary
> >!
> >ip classless
> >ip route 12.12.0.0 255.255.0.0 Null0
> >no ip http server
> >ip ospf name-lookup
> >!
> >!
> >ip prefix-list ALL seq 5 permit 0.0.0.0/0 le 32
> >!
> >ip prefix-list NORIP seq 5 permit 192.168.100.0/24
> >!
> >ip prefix-list RIPROUTE seq 5 permit 192.168.100.0/24
> >access-list 2 deny 200.200.0.0 0.0.255.255
> >access-list 2 permit any
> >access-list 19 permit any
> >access-list 20 permit 192.168.100.0 0.0.0.255
> >access-list 35 permit 192.168.1.0 0.0.254.0
> >access-list 120 permit ip 192.168.100.0 0.0.0.255 any
> >access-list 1000 permit 320 4 Fileservers
> >access-list 1000 permit 320 4 Fileserver
> >queue-list 1 protocol ip 1 tcp telnet
> >queue-list 1 protocol ip 2
> >queue-list 1 protocol ipx 3
> >queue-list 1 default 4
> >route-map NORIP deny 10
> > match ip address 120
> >!
> >route-map NORIP deny 15
> > match ip address 35
> >!
> >route-map NORIP permit 20
> > match ip address 19
> >!
> >!
> >!
> >!
> >ipx router eigrp 2
> > network 230
> >!
> >!
> >!
> >alias exec sixr sho ipx route
> >alias exec sixb sho ipx interface brief
> >!
> >line con 0
> >line aux 0
> > transport input all
> >line vty 0 4
> > password cisco
> > no login
> >!
> >end
> >
> >R5 is advertising both networks with the mask specified
> >R5#sho ip bgp neigh 137.20.50.7 ad
> >BGP table version is 50, local router ID is 137.20.101.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
> >*> 12.12.0.0/16 0.0.0.0 0 32768 i
> >*> 137.20.30.0/24 137.20.101.3 65 32768 i
> >
> >
> >R5#sho ip route
> >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
> >
> > 1.0.0.0/24 is subnetted, 1 subnets
> >C 1.1.1.0 is directly connected, Loopback10
> > 137.20.0.0/16 is variably subnetted, 6 subnets, 2 masks
> >O IA 137.20.30.0/24 [110/65] via 137.20.101.3, 00:18:48, Serial0
> >O IA 137.20.3.0/24 [110/65] via 137.20.101.3, 00:18:48, Serial0
> >C 137.20.50.0/24 is directly connected, Ethernet0
> >C 137.20.101.0/24 is directly connected, Serial0
> >O IA 137.20.103.0/24 [110/74] via 137.20.101.3, 00:18:48, Serial0
> >O 137.20.101.3/32 [110/64] via 137.20.101.3, 00:18:49, Serial0
> > 12.0.0.0/16 is subnetted, 1 subnets
> >S 12.12.0.0 is directly connected, Null0
> >
> >
> >
> >Now I use the network statement without the mask option
> >R5#sho run
> >Building configuration...
> >
> >Current configuration : 2429 bytes
> >!
> >version 12.1
> >service timestamps debug uptime
> >service timestamps log uptime
> >no service password-encryption
> >service udp-small-servers
> >service tcp-small-servers
> >!
> >hostname R5
> >!
> >no logging console
> >no logging monitor
> >!
> >!
> >!
> >!
> >!
> >ip subnet-zero
> >no ip domain-lookup
> >!
> >appletalk routing
> >ipx routing 0060.5cf4.721f
> >!
> >!
> >!
> >interface Loopback0
> > no ip address
> > no ip route-cache
> > no ip mroute-cache
> >!
> >interface Loopback10
> > ip address 1.1.1.1 255.255.255.0
> >!
> >interface Ethernet0
> > ip address 137.20.50.1 255.255.255.0
> > no ip route-cache
> > ip ospf cost 1
> > ip ospf priority 255
> > no ip mroute-cache
> > appletalk cable-range 600-600 600.19
> > appletalk zone R5E0
> > ipx network 510
> > ipx network 590 encapsulation SAP secondary
> >!
> >interface Serial0
> > ip address 137.20.101.5 255.255.255.0
> > no ip route-cache
> > ip ospf network point-to-multipoint
> > no ip mroute-cache
> > appletalk cable-range 300-300 300.109
> > appletalk zone R1S02
> > ipx input-sap-filter 1000
> > ipx network 230
> > custom-queue-list 1
> >!
> >interface Serial1
> > no ip address
> > no ip route-cache
> > no ip mroute-cache
> > shutdown
> >!
> >router ospf 100
> > log-adjacency-changes
> > redistribute static
> > network 137.20.101.0 0.0.0.255 area 0
> >!
> >router bgp 2
> > no synchronization
> > bgp log-neighbor-changes
> > network 1.1.1.0
> > network 12.12.0.0
> > network 137.20.30.0
> > network 137.20.103.0
> > neighbor 137.20.50.7 remote-as 3
> > neighbor 137.20.50.7 soft-reconfiguration inbound
> > no auto-summary
> >!
> >
> >
> >R5#sho ip bgp
> >NONE
> >R5#sho ip bgp neigh 137.20.50.7 ad
> >NONE
> >
> >R5#sho ip route
> >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
> >
> > 1.0.0.0/24 is subnetted, 1 subnets
> >C 1.1.1.0 is directly connected, Loopback10
> > 137.20.0.0/16 is variably subnetted, 6 subnets, 2 masks
> >O IA 137.20.30.0/24 [110/65] via 137.20.101.3, 00:21:57, Serial0
> >O IA 137.20.3.0/24 [110/65] via 137.20.101.3, 00:21:57, Serial0
> >C 137.20.50.0/24 is directly connected, Ethernet0
> >C 137.20.101.0/24 is directly connected, Serial0
> >O IA 137.20.103.0/24 [110/74] via 137.20.101.3, 00:21:57, Serial0
> >O 137.20.101.3/32 [110/64] via 137.20.101.3, 00:21:58, Serial0
> > 12.0.0.0/16 is subnetted, 1 subnets
> >S 12.12.0.0 is directly connected, Null0
> >
> >
> >
> > Tshon
> > <tshon@netzero To: Huy Luu <hluu@veroxity.com>
> > .net> cc: ccielab@groupstudy.com, Lab
Candidate <labccie@yahoo.com>,
> > nobody@groupstudy.com
> > 03/20/02 03:19 Subject: Re: BGP routes don't s
how up in BGP table
> > PM
> >
> >
> >
> >
> >
> >
> >Why don't you repaste the configs and the routing tables now, for the
> >archives. So that people
> >can later refence what you did before and what you did after.
> >
> >Huy Luu wrote:
> > I got it to work, by adding the additional mask command.
> > But I'm still confuse. First I used the network 1.1.1.0, which did
> > not
> > work. I also added no sync and no auto-summary, which did not work.
> > I
> > thought that if I use the network command to advertise a network, and
> > if I
> > have a valid route to a subnet of that network, it should advertise
> > the
> > network and auto summarize at the classful boundary. In this example
> > the
> > router should summarize and advertise 1.0.0.0/8 if I use the network
> > statement 1.1.1.0, but it did not.
> >
> >
> >
> >
> > Tshon
> >
> > <tshon@netzero To: Lab Candidate
> > <labccie@yahoo.com>
> >
> > .net> cc:
> > ccielab@groupstudy.com
> > Sent by: Subject: Re: BGP routes
> > don't show up in BGP table
> > nobody@groupst
> >
> > udy.com
> >
> >
> >
> > 03/20/02 02:31
> >
> > PM
> >
> > Please respond
> >
> > to Tshon
> >
> >
> >
> >
> >
> >
> >
> > You will only advertis networks you can reach. You don't have a
> > network
> > 1.1.1.1 in your routing table.
> > You don't have a network 2.2.2.2 in your routing table. Try Network
> > 1.1.1.0 and 2.2.2.0.
> >
> > Tshon
> >
> > Lab Candidate wrote:
> >
> > Here is a basic BGP setup with r1 and r2:
> > r1 AS100 r2 AS200
> > s0----------------s0
> > lo0 1.1.1.1 lo0 2.2.2.2
> > I am advertising both r1's and r2's loopbacks lo0 by putting
> > under a
> > network statement.
> > but somehow they never showed up in the other's BGP table. What
> > am I doing
> > wrong?
> > here is the configs and output from both r1 and r2:
> >
> > r1#
> > 1d00h: BGP: 192.168.1.2 went from Idle to Active
> > 1d00h: BGP: 192.168.1.2 open active, delay 15324ms
> > 1d00h: BGP: 192.168.1.2 open active, local address 192.168.1.1
> > 1d00h: BGP: scanning routing tables
> > 1d00h: BGP: nettable_scan: invalidate local path for 1.0.0.0/8
> > 1d00h: BGP: nettable_scan: invalidate sourced path for 1.0.0.0/8
> > 1d00h: BGP: no valid path for 1.0.0.0/8
> > 1d00h: BGP: nettable_walker 1.0.0.0/8 no best path
> >
> > r1#sh ip ro
> > 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, * -
> > candidate
> > default
> > U - per-user static route, o - ODR
> >
> > Gateway of last resort is not set
> >
> > 1.0.0.0/24 is subnetted, 1 subnets
> > C 1.1.1.0 is directly connected, Loopback0
> > C 192.168.1.0/24 is directly connected, Serial0
> >
> > r1#sh ip bgp
> > {blank}
> > r1#
> >
> > r1#sh run
> > Building configuration...
> >
> > Current configuration:
> > !
> > version 12.0
> > service timestamps debug uptime
> > service timestamps log uptime
> > no service password-encryption
> > !
> > hostname r1
> > !
> > !
> > ip subnet-zero
> > !
> > !
> > !
> > interface Loopback0
> > ip address 1.1.1.1 255.255.255.0
> > no ip directed-broadcast
> > !
> > interface Ethernet0
> > no ip address
> > no ip directed-broadcast
> > shutdown
> > !
> > interface Serial0
> > ip address 192.168.1.1 255.255.255.0
> > no ip directed-broadcast
> > clockrate 64000
> > !
> > interface Serial1
> > no ip address
> > no ip directed-broadcast
> > shutdown
> > !
> > router bgp 100
> > network 1.1.1.1
> > neighbor 192.168
> > .1.2 remote-as 200
> > !
> > ip classless
> > !
> > !
> > line con 0
> > exec-timeout 0 0
> > logging synchronous
> > transport input none
> > line aux 0
> > line vty 0 4
> > !
> > end
> >
> > r1#
> > r1#sh ip bgp nei
> > BGP neighbor is 192.168.1.2, remote AS 200, external link
> > Index 1, Offset 0, Mask 0x2
> > BGP version 4, remote router ID 2.2.2.2
> > BGP state = Established, table version = 25, up for 00:03:02
> > Last read 00:00:03, hold time is 180, keepalive interval is 60
> > seconds
> > Minimum time between advertisement runs is 30 seconds
> > Received 6 messages, 0 notifications, 0 in queue
> > Sent 6 messages, 0 notifications, 0 in queue
> > Prefix advertised 0, suppressed 0, withdrawn 0
> > Connections established 1; dropped 0
> > Last reset never
> > 0 accepted prefixes consume 0 bytes
> > 0 history paths consume 0 bytes
> > Connection state is ESTAB, I/O status: 1, unread input bytes: 0
> > Local host: 192.168.1.1, Local port: 11000
> > Foreign host: 192.168.1.2, Foreign port: 179
> >
> >
> > Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0
> > bytes)
> >
> > Event Timers (current time is 0x545E3C0):
> > Timer Starts Wakeups Next
> > Retrans 19 12 0x0
> > TimeWait 0 0 0x0
> > AckHold 6 2 0x0
> > SendWnd 0 0 0x0
> > KeepAlive 0 0 0x0
> > GiveUp 0 0 0x0
> > PmtuAger 0 0 0x0
> > DeadWait 0 0 0x0
> >
> > iss: 278568032 snduna: 278568157 sndnxt: 278568157
> > sndwnd: 16260
> > irs: 2897909981 rcvnxt: 2897910106 rcvwnd: 16260
> > delrcvwnd: 124
> >
> > SRTT: 614 ms, RTTO: 4262 ms, RTV: 1517 ms, KRTT: 0 ms
> > minRTT: 24 ms, maxRTT: 300 ms, ACK hold: 200 ms
> > Flags: higher precedence, nagle
> >
> > Datagrams (max data segment is 1460 bytes):
> > Rcvd: 11 (out of order: 0), with
> > data: 6, total data bytes: 124
> > Sent: 10 (retransmit: 12), with data: 6, total data bytes: 124
> > r1#
> >
> > =================== r2 config and debug =================
> > r2#sh run
> > Building configuration...
> >
> > Current configuration:
> > !
> > version 12.0
> > service timestamps debug uptime
> > service timestamps log uptime
> > no service password-encryption
> > !
> > hostname r2
> > !
> > !
> > ip subnet-zero
> > !
> > !
> > !
> > interface Loopback0
> > ip address 2.2.2.2 255.255.255.0
> > no ip directed-broadcast
> > !
> > interface Ethernet0
> > no ip address
> > no ip directed-broadcast
> > shutdown
> > !
> > interface Serial0
> > ip address 192.168.1.2 255.255.255.0
> > no ip directed-broadcast
> > !
> > interface Serial1
> > no ip address
> > no ip directed-broadcast
> > shutdown
> > !
> > router bgp 200
> > network 2.2.2.2
> > neighbor 192.168.1.1 remote-as 100
> > !
> > ip classless
> > !
> > !
> > line con 0
> > transport input none
> > line aux 0
> > line vty 0 4
> > !
> > end
> >
> > r2#
> > r2#sh ip
> > int b
> > Interface IP-Address OK? Method Status
> > Protocol
> > Ethernet0 unassigned YES unset
> > administratively down
> > down
> > Loopback0 2.2.2.2 YES manual up
> > up
> >
> > Serial0 192.168.1.2 YES manual up
> > up
> >
> > Serial1 unassigned YES unset
> > administratively down
> > down
> > r2#sh ip ro
> > 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, * -
> > candidate
> > default
> > U - per-user static route, o - ODR
> >
> > Gateway of last resort is not set
> >
> > 2.0.0.0/24 is subnetted, 1 subnets
> > C 2.2.2.0 is directly connected, Loopback0
> > C 192.168.1.0/24 is directly connected, Serial0
> >
> > r2#sh ip bgp
> > {blank}
> > r2#
> >
> > r2#sh ip bgp nei
> > r2#sh ip bgp neighbors
> > BGP neighbor is 192.168.1.1, remote AS 100, external link
> > Index 1, Offset 0, Mask 0x2
> > BGP version 4, remote router ID 1.1.1.1
> > BGP state = Established, table version = 23, up for 00:00:17
> > Last read 00:00:16, hold time is 180, keepalive interval is 60
> > seconds
> > Minimum time between advertisement runs is 30 seconds
> > Received 3 messages, 0 notifications, 0 in queue
> > Sent 3 messages, 0 notifications, 0 in queue
> > Prefix advertised 0, suppressed 0, withdrawn 0
> > Connections established 1; dropped 0
> > Last reset never
> > 0 accepted prefixes consume 0 bytes
> > 0 history paths consume 0 bytes
> > Conne
> > ction state is ESTAB, I/O status: 1, unread input bytes: 0
> > Local host: 192.168.1.2, Local port: 179
> > Foreign host: 192.168.1.1, Foreign port: 11000
> >
> > Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0
> > bytes)
> >
> > Event Timers (current time is 0xF02CC):
> > Timer Starts Wakeups Next
> > Retrans 4 0 0x0
> > TimeWait 0 0 0x0
> > AckHold 3 2 0x0
> > SendWnd 0 0 0x0
> >
> > KeepAlive 0 0 0x0
> > GiveUp 0 0 0x0
> > PmtuAger 0 0 0x0
> > DeadWait 0 0 0x0
> >
> > iss: 2897909981 snduna: 2897910049 sndnxt: 2897910049
> > sndwnd: 16317
> > irs: 278568032 rcvnxt: 278568100 rcvwnd: 16317
> > delrcvwnd: 67
> >
> > SRTT: 710 ms, RTTO: 4442 ms, RTV: 1511 ms, KRTT: 0 ms
> > minRTT: 16 ms, m
> > axRTT: 300 ms, ACK hold: 200 ms
> > Flags: passive open, nagle, gen tcbs
> >
> > Datagrams (max data segment is 1460 bytes):
> > Rcvd: 6 (out of order: 0), with data: 3, total data bytes: 67
> > Sent: 6 (retransmit: 0), with data: 3, total data bytes: 67
> > r2#sh ip bgp neighbors ?
> > A.B.C.D Neighbor to display information about
> > <cr>
> >
> >
> >
> >
> >
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:57:16 GMT-3