Dear all,
I have a problem with bgp and ospf, anybody help me?
Following is my configuration,
[router1(2xx.xxx.4.1)]-----[ethernet switch]-----[(2xx.xxx.4.22)rotuer2]
the problem is I setup bgp between router1 and router2,
but bgp state is stay "idle" so I insert network statement to ospf routing,
than it change state to "active" then bgp connection workting.
router1's basic status and configuraiton
-----begin
router1#ping 2xx.xxx.4.22
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2xx.xxx.4.22, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
router1#sh ip ro 2xx.xxx.4.22
Routing entry for 2xx.xxx.4.0/27
Known via "connected", distance 0, metric 0 (connected, via interface)
Redistributing via ospf 9xxx
Routing Descriptor Blocks:
* directly connected, via GigabitEthernet2/0
Route metric is 0, traffic share count is 1
router1#sh ip arp 2xx.xxx.4.22
Protocol Address Age (min) Hardware Addr Type Interface
Internet 2xx.xxx.4.22 61 00b0.4a68.6480 ARPA GigabitEthernet2/0
router1#sh ip int b
Interface IP-Address OK? Method Status Protocol
Ethernet0 unassigned YES unset administratively down down
GigabitEthernet2/0 2xx.xxx.4.1 YES manual up up
GigabitEthernet4/0 2xx.xxx.166.74 YES NVRAM up up
GigabitEthernet5/0 2xx.xxx.166.10 YES NVRAM up up
!!interface configuration
interface GigabitEthernet2/0
ip address 2xx.xxx.4.1 255.255.255.224
no ip directed-broadcast
ip route-cache flow
no negotiation auto
no cdp enable
!!bgp configuration>>>
neighbor 2xx.xxx.4.22 remote-as 4xxx
neighbor 2xx.xxx.4.22 description now
neighbor 2xx.xxx.4.22 update-source GigabitEthernet2/0
!!ospf configuration>>>
router ospf 9xxx
redistribute connected metric 1 metric-type 1 subnets
network 2xx.xxx.166.0 0.0.0.63 area 0
network 2xx.xxx.166.64 0.0.0.63 area 0
-----end
-----begin router2 config and status
interface GigabitEthernet4/0
ip address 2xx.xxx.4.22 255.255.255.224
no ip redirects
no ip directed-broadcast
load-interval 30
no negotiation auto
router bgp 4xxx
no synchronization
neighbor 2xx.xxx.4.1 remote-as 9xxx
and status>>>
router2#sh ip route 211.2 110.4.0
Routing entry for 211.110.4.0/27, 1 known subnets
Attached (1 connections)
C 211.110.4.0 is directly connected, GigabitEthernet4/0
-----end
before I add "211.110.4.0/27" to ospf network.
-----begin
router1#sh ip bgp sum
2xx.xxx.4.22 4 4xxx 0 0 0 0 0 never Idle
2xx.xxx.4.26 4 3xxx 4134 3722 11753450 0 0 2d13h 198
router1# sh ip bgp ne 2xx.xxx.4.22
BGP neighbor is 2xx.xxx.4.22, remote AS 4xxx, external link
Description: now
Index 12, Offset 1, Mask 0x10
BGP version 4, remote router ID 0.0.0.0
BGP state = Idle, table version = 0
Last read 00:00:01, last send never
Hold time 180, keepalive interval 60 seconds
Neighbor NLRI negotiation:
Configured for unicast routes only
Minimum time between advertisement runs is 30 seconds
Received 0 messages, 0 notifications, 0 in queue
Sent 0 messages, 0 notifications, 0 in queue
Prefix advertised 0, suppressed 0, withdrawn 0
Route refresh request: received 0, sent 0
Inbound path policy configured
Outbound path policy configured
Route map for incoming advertisements is nowcom
Route map for outgoing advertisements is thrunet
Connections established 0; dropped 0
Last reset never
Number of unicast/multicast prefixes received 0/0
External BGP neighbor not directly connected.
No active TCP connection
-----end
after I add "211.110.4.0/27" to ospf network.
-----begin
router ospf 9xxx
redistribute connected metric 1 metric-type 1 subnets
network 2xx.xxx.66.0 0.0.0.63 area 0
network 2xx.xxx.66.64 0.0.0.63 area 0
network 2xx.xxx.4.0 0.0.0.31 area 0
router1#sh ip ro 2xx.xxx.4.22
Routing entry for 2xx.xxx.4.0/27
Known via "connected", distance 0, metric 0 (connected, via interface)
Redistributing via ospf 9277
Routing Descriptor Blocks:
* directly connected, via GigabitEthernet2/0
Route metric is 0, traffic share count is 1
-----end
status was changed to
-----begin
2xx.xxx.4.22 4 4xxx 5 17 11756500 0 0 00:00:55 6
2xx.xxx.4.26 4 3xxx 4144 3731 11756536 0 0 2d13h 198
router1#sh ip bgp ne 2xx.xxx.4.22
BGP neighbor is 2xx.xxx.4.22, remote AS 4xxx, external link
Description: now
Index 12, Offset 1, Mask 0x10
BGP version 4, remote router ID 2xx.xxx.xxx.xxx
BGP state = Established, table version = 11756809, up for 00:01:24
Last read 00:00:23, last send 00:00:21
Hold time 180, keepalive interval 60 seconds
Neighbor NLRI negotiation:
Configured for unicast routes only
Peer negotiated unicast routes only
Exchanging unicast routes only
Received route refresh capability from peer
Minimum time between advertisement runs is 30 seconds
Received 6 messages, 0 notifications, 0 in queue
Sent 18 messages, 0 notifications, 0 in queue
Prefix advertised 47, suppressed 0, withdrawn 0
Route refresh request: received 0, sent 0
Inbound path policy configured
Outbound path policy configured
Route map for incoming advertisements is nowcom
Route map for outgoing advertisements is thrunet
Connections established 1; dropped 0
Last reset never
Number of unicast/multicast prefixes received 6/0
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Local host: 2xx.xxx.4.1, Local port: 23908
Foreign host: 2xx.xxx.4.22, Foreign port: 179
Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes)
Event Timers (current time is 0xE53A9DEC):
Timer Starts Wakeups Next
Retrans 6 0 0x0
TimeWait 0 0 0x0
AckHold 5 4 0x0
SendWnd 0 0 0x0
KeepAlive 0 0 0x0
GiveUp 0 0 0x0
PmtuAger 0 0 0x0
DeadWait 0 0 0x0
iss: 1682743120 snduna: 1682744101 sndnxt: 1682744101 sndwnd: 16072
irs: 3962771998 rcvnxt: 3962772222 rcvwnd: 16161 delrcvwnd: 223
SRTT: 615 ms, RTTO: 4260 ms, RTV: 1515 ms, KRTT: 0 ms
minRTT: 0 ms, maxRTT: 312 ms, ACK hold: 200 ms
Flags: higher precedence, nagle
Datagrams (max data segment is 536 bytes):
Rcvd: 11 (out of order: 0), with data: 5, total data bytes: 223
Sent: 12 (retransmit: 0), with data: 6, total data bytes: 980
-----end
TIA
-mansu kim
This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:12:14 EDT