Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Router r22 - before BGP setup
- r22# show ip route
- Codes: K - kernel route, C - connected, S - static, R - RIP,
- O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,
- > - selected route, * - FIB route
- O>* 10.0.1.0/24 [110/20] via 172.16.12.10, eth1, 00:19:00
- C>* 127.0.0.0/8 is directly connected, lo
- C>* 172.16.12.4/30 is directly connected, eth2
- O 172.16.12.8/30 [110/10] is directly connected, eth1, 00:19:10
- C>* 172.16.12.8/30 is directly connected, eth1
- -----------------------------------------------------------------
- r22# write terminal
- Building configuration...
- Current configuration:
- !
- !
- interface eth1
- !
- interface eth2
- !
- interface lo
- !
- router ospf
- network 172.16.12.8/30 area 0.0.0.0
- !
- ip forwarding
- !
- line vty
- !
- end
- -----------------------------------------------------------------
- AFTER BGP
- -----------------------------------------------------------------
- r22# show ip route
- Codes: K - kernel route, C - connected, S - static, R - RIP,
- O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,
- > - selected route, * - FIB route
- B>* 10.0.0.0/24 [20/100] via 172.16.12.5, eth2, 00:01:21
- O>* 10.0.1.0/24 [110/20] via 172.16.12.10, eth1, 00:25:01
- C>* 127.0.0.0/8 is directly connected, lo
- C>* 172.16.12.4/30 is directly connected, eth2
- O 172.16.12.8/30 [110/10] is directly connected, eth1, 00:25:11
- C>* 172.16.12.8/30 is directly connected, eth1
- -----------------------------------------------------------------
- r22# show ip ospf database
- OSPF Router with ID (172.16.12.9)
- Router Link States (Area 0.0.0.0)
- Link ID ADV Router Age Seq# CkSum Link count
- 172.16.12.9 172.16.12.9 407 0x80000005 0x38c5 1
- 172.16.12.10 172.16.12.10 437 0x80000006 0xd7fc 2
- Net Link States (Area 0.0.0.0)
- Link ID ADV Router Age Seq# CkSum
- 172.16.12.10 172.16.12.10 887 0x80000002 0x31e0
- -----------------------------------------------------------------
- r22# write terminal
- Building configuration...
- Current configuration:
- !
- !
- interface eth1
- !
- interface eth2
- !
- interface lo
- !
- router bgp 22
- bgp router-id 172.16.12.9
- redistribute ospf metric 100
- neighbor 172.16.12.5 remote-as 11
- !
- address-family ipv6
- exit-address-family
- exit
- !
- router ospf
- network 172.16.12.8/30 area 0.0.0.0
- !
- ip forwarding
- !
- line vty
- !
- end
- -----------------------------------------------------------------
- r22# show bgp summary
- IPv4 Unicast Summary:
- ---------------------
- BGP router identifier 172.16.12.9, local AS number 22
- RIB entries 3, using 336 bytes of memory
- Peers 1, using 9088 bytes of memory
- Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
- 172.16.12.5 4 11 15 21 0 0 0 00:12:51 1
- Total number of neighbors 1
- Total num. Established sessions 1
- Total num. of routes received 1
- IPv4 Multicast Summary:
- -----------------------
- No IPv4 neighbor is configured
- IPv4 VPN Summary:
- -----------------
- No IPv4 neighbor is configured
- ....
- -----------------------------------------------------------------
- Router r21 - after BGP setup
- r21# show ip route
- Codes: K - kernel route, C - connected, S - static, R - RIP,
- O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,
- > - selected route, * - FIB route
- O>* 10.0.0.0/24 [110/20] via 172.16.12.1, eth1, 00:23:49
- B>* 10.0.1.0/24 [20/100] via 172.16.12.6, eth2, 00:00:13
- C>* 127.0.0.0/8 is directly connected, lo
- O 172.16.12.0/30 [110/10] is directly connected, eth1, 00:24:39
- C>* 172.16.12.0/30 is directly connected, eth1
- C>* 172.16.12.4/30 is directly connected, eth2
- bgp router-id 172.16.12.5
- redistribute ospf metric 100
- neighbor 172.16.12.6 remote-as 22
- !
- address-family ipv6
- exit-address-family
- exit
- !
- router ospf
- network 172.16.12.0/30 area 0.0.0.0
- -----------------------------------------------------------------
- r21# show bgp summary
- IPv4 Unicast Summary:
- ---------------------
- BGP router identifier 172.16.12.5, local AS number 11
- RIB entries 3, using 336 bytes of memory
- Peers 1, using 9088 bytes of memory
- Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
- 172.16.12.6 4 22 14 15 0 0 0 00:10:34 1
- Total number of neighbors 1
- Total num. Established sessions 1
- Total num. of routes received 1
- IPv4 Multicast Summary:
- -----------------------
- No IPv4 neighbor is configured
- IPv4 VPN Summary:
- -----------------
- No IPv4 neighbor is configured
- ....
- -----------------------------------------------------------------
- r11# write terminal
- Building configuration...
- Current configuration:
- !
- !
- interface eth1
- !
- interface eth2
- !
- interface lo
- !
- router ospf
- network 10.0.0.0/24 area 0.0.0.0
- network 172.16.12.0/30 area 0.0.0.0
- !
- ip forwarding
- !
- line vty
- !
- end
- -----------------------------------------------------------------
- r11# show ip route
- Codes: K - kernel route, C - connected, S - static, R - RIP,
- O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,
- > - selected route, * - FIB route
- O 10.0.0.0/24 [110/10] is directly connected, eth2, 00:34:16
- C>* 10.0.0.0/24 is directly connected, eth2
- C>* 127.0.0.0/8 is directly connected, lo
- O 172.16.12.0/30 [110/10] is directly connected, eth1, 00:33:34
- C>* 172.16.12.0/30 is directly connected, eth1
- -----------------------------------------------------------------
- r11# show ip ospf database
- OSPF Router with ID (172.16.12.1)
- Router Link States (Area 0.0.0.0)
- Link ID ADV Router Age Seq# CkSum Link count
- 172.16.12.1 172.16.12.1 533 0x80000007 0xc136 2
- 172.16.12.5 172.16.12.5 543 0x80000004 0xc74e 1
- Net Link States (Area 0.0.0.0)
- Link ID ADV Router Age Seq# CkSum
- 172.16.12.2 172.16.12.5 223 0x80000002 0x0923
- -----------------------------------------------------------------
- r12# show ip route
- Codes: K - kernel route, C - connected, S - static, R - RIP,
- O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,
- > - selected route, * - FIB route
- O 10.0.1.0/24 [110/10] is directly connected, eth1, 00:33:24
- C>* 10.0.1.0/24 is directly connected, eth1
- C>* 127.0.0.0/8 is directly connected, lo
- O 172.16.12.8/30 [110/10] is directly connected, eth2, 00:33:23
- C>* 172.16.12.8/30 is directly connected, eth2
- -----------------------------------------------------------------
- r12# write terminal
- Building configuration...
- Current configuration:
- !
- !
- interface eth1
- !
- interface eth2
- !
- interface lo
- !
- router ospf
- network 10.0.1.0/24 area 0.0.0.0
- network 172.16.12.8/30 area 0.0.0.0
- !
- ip forwarding
- !
- line vty
- !
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement