R1#sh ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP (Auto-RP)
This system is an RP-mapping agent
Group(s) 224.0.0.0/4
RP 1.1.1.1 (?), v2v1
Info source: 1.1.1.1 (?), elected via Auto-RP
Uptime: 00:00:05, expires: 00:02:51
R1# ]
R1(config)#ip pim send-r
R1(config)#ip pim send-rp-ann
R1(config)#ip pim send-rp-announce lo0
% Incomplete command.
R1(config)#ip pim send-rp-announce lo0 sco 255
R1(config)#ip pim send
R1(config)#ip pim send-rp-dis
R1(config)#ip pim send-rp-discovery sco 255
R1(config)#exit
R1#sh i
PIM Group-to-RP Mappings
Group(s) 224.0.0.0/4
RP 1.1.1.1 (?), v2v1
Info source: 12.12.12.1 (?), elected via Auto-RP
Uptime: 00:03:20, expires: 00:02:34
R2#
R2
PIM Group-to-RP Mappings
Group(s) 224.0.0.0/4
RP 1.1.1.1 (?), v2v1
Info source: 12.12.12.1 (?), elected via Auto-RP
Uptime: 00:03:20, expires: 00:02:34
R2#
Rabu, 07 Desember 2011
Multicast Lab2: Sparse Mode-Static RP
konfig R2
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip pim sparse-mode
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
ip pim sparse-mode
ip ospf 1 area 0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
ip pim sparse-mode
ip ospf 1 area 0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
ip pim rp-address 2.2.2.2
!
!
!
!
!
Konfig R3
!
ip multicast-routing
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip pim sparse-mode
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
ip pim sparse-mode
ip ospf 1 area 0
duplex auto
speed auto
!
!
router ospf 1
log-adjacency-changes
!
no ip http secure-server
ip pim rp-address 2.2.2.2
R1#show ip pim int
Address Interface Ver/ Nbr Query DR DR
Mode Count Intvl Prior
12.12.12.1 FastEthernet0/0 v2/S 1 30 1 12.12.12.2
1.1.1.1 Loopback0 v2/S 0 30 1 1.1.1.1
R1#
R1#sh ip pim rp mapping
PIM Group-to-RP Mappings
Group(s): 224.0.0.0/4, Static
RP: 2.2.2.2
R1#
utgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 239.0.0.1), 00:47:15/00:02:59, RP 2.2.2.2, flags: SJCL
Incoming interface: FastEthernet0/0, RPF nbr 12.12.12.2
Outgoing interface list:
Loopback0, Forward/Sparse, 00:47:15/00:02:59
(*, 239.0.0.2), 00:47:15/00:02:54, RP 2.2.2.2, flags: SJCL
Incoming interface: FastEthernet0/0, RPF nbr 12.12.12.2
Outgoing interface list:
Loopback0, Forward/Sparse, 00:47:15/00:02:54
(*, 224.0.1.40), 00:57:03/00:02:59, RP 2.2.2.2, flags: SJPCL
Incoming interface: FastEthernet0/0, RPF nbr 12.12.12.2
Outgoing interface list: Null
R2#sh ip pim int
Address Interface Ver/ Nbr Query DR DR
Mode Count Intvl Prior
12.12.12.2 FastEthernet0/0 v2/S 1 30 1 12.12.12.2
23.23.23.2 FastEthernet0/1 v2/S 1 30 1 23.23.23.3
2.2.2.2 Loopback0 v2/S 0 30 1 2.2.2.2
R2#
R3#ping 239.0.0.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.0.0.1, timeout is 2 seconds:
Reply to request 0 from 12.12.12.1, 60 ms
Reply to request 0 from 12.12.12.1, 60 ms
R3#sh ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 239.0.0.1), 00:00:26/stopped, RP 2.2.2.2, flags: SPF
Incoming interface: FastEthernet0/0, RPF nbr 23.23.23.2
Outgoing interface list: Null
(3.3.3.3, 239.0.0.1), 00:00:26/00:03:10, flags: FT
Incoming interface: Loopback0, RPF nbr 0.0.0.0, Registering
Outgoing interface list:
FastEthernet0/0, Forward/Sparse, 00:00:26/00:03:03
(23.23.23.3, 239.0.0.1), 00:00:26/00:02:40, flags: PFT
Incoming interface: FastEthernet0/0, RPF nbr 0.0.0.0
Outgoing interface list: Null
(*, 224.0.1.40), 00:58:48/00:02:28, RP 2.2.2.2, flags: SJPCL
Incoming interface: FastEthernet0/0, RPF nbr 23.23.23.2
Outgoing interface list: Null
R3#
R1#
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip pim sparse-mode
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
ip pim sparse-mode
ip ospf 1 area 0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
ip pim sparse-mode
ip ospf 1 area 0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
ip pim rp-address 2.2.2.2
!
!
!
!
!
Konfig R3
!
ip multicast-routing
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip pim sparse-mode
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
ip pim sparse-mode
ip ospf 1 area 0
duplex auto
speed auto
!
!
router ospf 1
log-adjacency-changes
!
no ip http secure-server
ip pim rp-address 2.2.2.2
R1#show ip pim int
Address Interface Ver/ Nbr Query DR DR
Mode Count Intvl Prior
12.12.12.1 FastEthernet0/0 v2/S 1 30 1 12.12.12.2
1.1.1.1 Loopback0 v2/S 0 30 1 1.1.1.1
R1#
R1#sh ip pim rp mapping
PIM Group-to-RP Mappings
Group(s): 224.0.0.0/4, Static
RP: 2.2.2.2
R1#
utgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 239.0.0.1), 00:47:15/00:02:59, RP 2.2.2.2, flags: SJCL
Incoming interface: FastEthernet0/0, RPF nbr 12.12.12.2
Outgoing interface list:
Loopback0, Forward/Sparse, 00:47:15/00:02:59
(*, 239.0.0.2), 00:47:15/00:02:54, RP 2.2.2.2, flags: SJCL
Incoming interface: FastEthernet0/0, RPF nbr 12.12.12.2
Outgoing interface list:
Loopback0, Forward/Sparse, 00:47:15/00:02:54
(*, 224.0.1.40), 00:57:03/00:02:59, RP 2.2.2.2, flags: SJPCL
Incoming interface: FastEthernet0/0, RPF nbr 12.12.12.2
Outgoing interface list: Null
R2#sh ip pim int
Address Interface Ver/ Nbr Query DR DR
Mode Count Intvl Prior
12.12.12.2 FastEthernet0/0 v2/S 1 30 1 12.12.12.2
23.23.23.2 FastEthernet0/1 v2/S 1 30 1 23.23.23.3
2.2.2.2 Loopback0 v2/S 0 30 1 2.2.2.2
R2#
R3#ping 239.0.0.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.0.0.1, timeout is 2 seconds:
Reply to request 0 from 12.12.12.1, 60 ms
Reply to request 0 from 12.12.12.1, 60 ms
R3#sh ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 239.0.0.1), 00:00:26/stopped, RP 2.2.2.2, flags: SPF
Incoming interface: FastEthernet0/0, RPF nbr 23.23.23.2
Outgoing interface list: Null
(3.3.3.3, 239.0.0.1), 00:00:26/00:03:10, flags: FT
Incoming interface: Loopback0, RPF nbr 0.0.0.0, Registering
Outgoing interface list:
FastEthernet0/0, Forward/Sparse, 00:00:26/00:03:03
(23.23.23.3, 239.0.0.1), 00:00:26/00:02:40, flags: PFT
Incoming interface: FastEthernet0/0, RPF nbr 0.0.0.0
Outgoing interface list: Null
(*, 224.0.1.40), 00:58:48/00:02:28, RP 2.2.2.2, flags: SJPCL
Incoming interface: FastEthernet0/0, RPF nbr 23.23.23.2
Outgoing interface list: Null
R3#
R1#
Multicast Lab 1: Dense Mode
konfig R1
!
ip multicast-routing
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip pim dense-mode
ip igmp join-group 239.0.0.1
ip igmp join-group 239.0.0.2
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
ip pim dense-mode
ip ospf 1 area 0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
Konfig R2
ip multicast-routing
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip pim dense-mode
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
ip pim dense-mode
ip ospf 1 area 0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
ip pim dense-mode
ip ospf 1 area 0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
!
konfig R3
!
!
ip multicast-routing
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip pim dense-mode
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
ip pim dense-mode
ip ospf 1 area 0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
!
R3#ping 239.0.0.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.0.0.1, timeout is 2 seconds:
Reply to request 0 from 12.12.12.1, 72 ms
Reply to request 0 from 12.12.12.1, 76 ms
R3#ping 239.0.0.2
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.0.0.2, timeout is 2 seconds:
Reply to request 0 from 12.12.12.1, 44 ms
Reply to request 0 from 12.12.12.1, 48 ms
R3#
!
ip multicast-routing
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip pim dense-mode
ip igmp join-group 239.0.0.1
ip igmp join-group 239.0.0.2
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
ip pim dense-mode
ip ospf 1 area 0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
Konfig R2
ip multicast-routing
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip pim dense-mode
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
ip pim dense-mode
ip ospf 1 area 0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
ip pim dense-mode
ip ospf 1 area 0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
!
konfig R3
!
!
ip multicast-routing
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip pim dense-mode
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
ip pim dense-mode
ip ospf 1 area 0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
!
R3#ping 239.0.0.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.0.0.1, timeout is 2 seconds:
Reply to request 0 from 12.12.12.1, 72 ms
Reply to request 0 from 12.12.12.1, 76 ms
R3#ping 239.0.0.2
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.0.0.2, timeout is 2 seconds:
Reply to request 0 from 12.12.12.1, 44 ms
Reply to request 0 from 12.12.12.1, 48 ms
R3#
Lab 5: MPLS VPN- PE CE EIGRP Routing
konfig PE1
hostname PE1
!
!
ip vrf BCA.KIRI
rd 65000:2
route-target export 65000:2
route-target import 65000:2
!
ip vrf BRI.KIRI
rd 65000:1
route-target export 65000:1
route-target import 65000:1
!
!
interface Loopback0
ip address 10.10.10.1 255.255.255.255
!
interface FastEthernet0/0
ip vrf forwarding BRI.KIRI
ip address 192.168.0.1 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
ip vrf forwarding BCA.KIRI
ip address 192.168.0.1 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.10.1 255.255.255.252
speed 100
full-duplex
mpls ip
!
router eigrp 65000
auto-summary
!
address-family ipv4 vrf BRI.KIRI
redistribute bgp 65000 metric 1 1 1 1 1
network 192.168.0.0
auto-summary
autonomous-system 100
exit-address-family
!
router ospf 1
log-adjacency-changes
network 10.10.10.1 0.0.0.0 area 0
network 192.168.10.1 0.0.0.0 area 0
!
router bgp 65000
bgp log-neighbor-changes
neighbor 10.10.10.2 remote-as 65000
neighbor 10.10.10.2 update-source Loopback0
!
address-family ipv4
no neighbor 10.10.10.2 activate
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor 10.10.10.2 activate
neighbor 10.10.10.2 send-community extended
exit-address-family
!
address-family ipv4 vrf BRI.KIRI
redistribute connected
redistribute static
redistribute eigrp 100
no synchronization
exit-address-family
!
address-family ipv4 vrf BCA.KIRI
no synchronization
exit-address-family
!
ip forward-protocol nd
ip route vrf BRI.KIRI 10.0.0.1 255.255.255.255 192.168.0.2
!
!
konfig PE2
!
ip vrf BCA.KANAN
rd 65000:2
route-target export 65000:2
route-target import 65000:2
!
ip vrf BRI.KANAN
rd 65000:1
route-target export 65000:1
route-target import 65000:1
!
!
!
interface Loopback0
ip address 10.10.10.2 255.255.255.255
!
interface FastEthernet0/0
ip vrf forwarding BCA.KANAN
ip address 192.168.0.5 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
ip vrf forwarding BRI.KANAN
ip address 192.168.1.5 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.20.2 255.255.255.252
speed 100
full-duplex
mpls ip
!
router eigrp 65000
auto-summary
!
address-family ipv4 vrf BRI.KANAN
redistribute bgp 65000 metric 1 1 1 1 1
network 192.168.0.0
network 192.168.1.0
auto-summary
autonomous-system 100
exit-address-family
!
router ospf 1
log-adjacency-changes
network 10.10.10.2 0.0.0.0 area 0
network 192.168.20.2 0.0.0.0 area 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.10.10.1 remote-as 65000
neighbor 10.10.10.1 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 10.10.10.1 activate
neighbor 10.10.10.1 send-community extended
exit-address-family
!
address-family ipv4 vrf BRI.KANAN
redistribute connected
redistribute static
redistribute eigrp 100
no synchronization
exit-address-family
!
address-family ipv4 vrf BCA.KANAN
no synchronization
exit-address-family
!
ip forward-protocol nd
ip route vrf BRI.KANAN 10.0.0.2 255.255.255.255 192.168.1.6
!
!
end
PE1#show mpls ldp nei
Peer LDP Ident: 10.10.10.10:0; Local LDP Ident 10.10.10.1:0
TCP connection: 10.10.10.10.26892 - 10.10.10.1.646
State: Oper; Msgs sent/rcvd: 17/17; Downstream
Up time: 00:08:24
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.168.10.2
Addresses bound to peer LDP Ident:
192.168.10.2 10.10.10.10 192.168.20.1
PE1#
P#show mpls ldp nei
Peer LDP Ident: 10.10.10.2:0; Local LDP Ident 10.10.10.10:0
TCP connection: 10.10.10.2.646 - 10.10.10.10.11833
State: Oper; Msgs sent/rcvd: 18/18; Downstream
Up time: 00:09:13
LDP discovery sources:
FastEthernet0/1, Src IP addr: 192.168.20.2
Addresses bound to peer LDP Ident:
192.168.20.2 10.10.10.2
Peer LDP Ident: 10.10.10.1:0; Local LDP Ident 10.10.10.10:0
TCP connection: 10.10.10.1.646 - 10.10.10.10.26892
State: Oper; Msgs sent/rcvd: 18/18; Downstream
Up time: 00:09:13
LDP discovery sources:
FastEthernet0/0, Src IP addr: 192.168.10.1
Addresses bound to peer LDP Ident:
192.168.10.1 10.10.10.1
P#
PE2#show mpls ldp nei
Peer LDP Ident: 10.10.10.10:0; Local LDP Ident 10.10.10.2:0
TCP connection: 10.10.10.10.11833 - 10.10.10.2.646
State: Oper; Msgs sent/rcvd: 19/19; Downstream
Up time: 00:10:02
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.168.20.1
Addresses bound to peer LDP Ident:
192.168.10.2 10.10.10.10 192.168.20.1
PE2#
CE- BRI-1
Gateway of last resort is 192.168.0.1 to network 0.0.0.0
10.0.0.0/32 is subnetted, 2 subnets
D EX 10.0.0.2 [170/2560025856] via 192.168.0.1, 00:14:58, FastEthernet0/0
C 10.0.0.1 is directly connected, Loopback0
192.168.0.0/30 is subnetted, 1 subnets
C 192.168.0.0 is directly connected, FastEthernet0/0
192.168.1.0/30 is subnetted, 1 subnets
D EX 192.168.1.4
[170/2560025856] via 192.168.0.1, 00:14:58, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 192.168.0.1
CE-BRI-1#
CE-BRI-2
10.0.0.0/32 is subnetted, 2 subnets
C 10.0.0.2 is directly connected, Loopback0
D EX 10.0.0.1 [170/2560025856] via 192.168.1.5, 00:00:59, FastEthernet0/0
192.168.0.0/30 is subnetted, 1 subnets
D 192.168.0.0 [90/307200] via 192.168.1.5, 00:00:59, FastEthernet0/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 192.168.1.5
CE-BRI-2#
CE-BRI-1#ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
CE-BRI-1#ping 10.0.0.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/63/80 ms
CE-BRI-1#tracer 10.0.0.2
Type escape sequence to abort.
Tracing the route to 10.0.0.2
1 192.168.0.1 4 msec 8 msec 24 msec
2 192.168.10.2 [MPLS: Labels 16/19 Exp 0] 52 msec 44 msec 68 msec
3 192.168.1.5 [MPLS: Label 19 Exp 0] 44 msec 28 msec 24 msec
4 192.168.1.6 40 msec 36 msec *
CE-BRI-1#
CE-BRI-2#
CE-BRI-2#ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/53/100 ms
CE-BRI-2#tracer 10.0.0.1
Type escape sequence to abort.
Tracing the route to 10.0.0.1
1 192.168.1.5 28 msec 12 msec 16 msec
2 192.168.20.1 [MPLS: Labels 17/19 Exp 0] 40 msec 36 msec 68 msec
3 192.168.0.1 [MPLS: Label 19 Exp 0] 40 msec 48 msec 52 msec
4 192.168.0.2 48 msec 24 msec *
CE-BRI-2#
Lab 2: MPLS VPN
PE1#show mpls ldp nei
Peer LDP Ident: 10.10.10.10:0; Local LDP Ident 10.10.10.1:0
TCP connection: 10.10.10.10.26892 - 10.10.10.1.646
State: Oper; Msgs sent/rcvd: 17/17; Downstream
Up time: 00:08:24
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.168.10.2
Addresses bound to peer LDP Ident:
192.168.10.2 10.10.10.10 192.168.20.1
PE1#
P#show mpls ldp nei
Peer LDP Ident: 10.10.10.2:0; Local LDP Ident 10.10.10.10:0
TCP connection: 10.10.10.2.646 - 10.10.10.10.11833
State: Oper; Msgs sent/rcvd: 18/18; Downstream
Up time: 00:09:13
LDP discovery sources:
FastEthernet0/1, Src IP addr: 192.168.20.2
Addresses bound to peer LDP Ident:
192.168.20.2 10.10.10.2
Peer LDP Ident: 10.10.10.1:0; Local LDP Ident 10.10.10.10:0
TCP connection: 10.10.10.1.646 - 10.10.10.10.26892
State: Oper; Msgs sent/rcvd: 18/18; Downstream
Up time: 00:09:13
LDP discovery sources:
FastEthernet0/0, Src IP addr: 192.168.10.1
Addresses bound to peer LDP Ident:
192.168.10.1 10.10.10.1
P#
PE2#show mpls ldp nei
Peer LDP Ident: 10.10.10.10:0; Local LDP Ident 10.10.10.2:0
TCP connection: 10.10.10.10.11833 - 10.10.10.2.646
State: Oper; Msgs sent/rcvd: 19/19; Downstream
Up time: 00:10:02
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.168.20.1
Addresses bound to peer LDP Ident:
192.168.10.2 10.10.10.10 192.168.20.1
PE2#
CE- BRI-1
Gateway of last resort is 192.168.0.1 to network 0.0.0.0
10.0.0.0/32 is subnetted, 2 subnets
D EX 10.0.0.2 [170/2560025856] via 192.168.0.1, 00:14:58, FastEthernet0/0
C 10.0.0.1 is directly connected, Loopback0
192.168.0.0/30 is subnetted, 1 subnets
C 192.168.0.0 is directly connected, FastEthernet0/0
192.168.1.0/30 is subnetted, 1 subnets
D EX 192.168.1.4
[170/2560025856] via 192.168.0.1, 00:14:58, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 192.168.0.1
CE-BRI-1#
CE-BRI-2
10.0.0.0/32 is subnetted, 2 subnets
C 10.0.0.2 is directly connected, Loopback0
D EX 10.0.0.1 [170/2560025856] via 192.168.1.5, 00:00:59, FastEthernet0/0
192.168.0.0/30 is subnetted, 1 subnets
D 192.168.0.0 [90/307200] via 192.168.1.5, 00:00:59, FastEthernet0/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 192.168.1.5
CE-BRI-2#
Peer LDP Ident: 10.10.10.10:0; Local LDP Ident 10.10.10.1:0
TCP connection: 10.10.10.10.26892 - 10.10.10.1.646
State: Oper; Msgs sent/rcvd: 17/17; Downstream
Up time: 00:08:24
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.168.10.2
Addresses bound to peer LDP Ident:
192.168.10.2 10.10.10.10 192.168.20.1
PE1#
P#show mpls ldp nei
Peer LDP Ident: 10.10.10.2:0; Local LDP Ident 10.10.10.10:0
TCP connection: 10.10.10.2.646 - 10.10.10.10.11833
State: Oper; Msgs sent/rcvd: 18/18; Downstream
Up time: 00:09:13
LDP discovery sources:
FastEthernet0/1, Src IP addr: 192.168.20.2
Addresses bound to peer LDP Ident:
192.168.20.2 10.10.10.2
Peer LDP Ident: 10.10.10.1:0; Local LDP Ident 10.10.10.10:0
TCP connection: 10.10.10.1.646 - 10.10.10.10.26892
State: Oper; Msgs sent/rcvd: 18/18; Downstream
Up time: 00:09:13
LDP discovery sources:
FastEthernet0/0, Src IP addr: 192.168.10.1
Addresses bound to peer LDP Ident:
192.168.10.1 10.10.10.1
P#
PE2#show mpls ldp nei
Peer LDP Ident: 10.10.10.10:0; Local LDP Ident 10.10.10.2:0
TCP connection: 10.10.10.10.11833 - 10.10.10.2.646
State: Oper; Msgs sent/rcvd: 19/19; Downstream
Up time: 00:10:02
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.168.20.1
Addresses bound to peer LDP Ident:
192.168.10.2 10.10.10.10 192.168.20.1
PE2#
CE- BRI-1
Gateway of last resort is 192.168.0.1 to network 0.0.0.0
10.0.0.0/32 is subnetted, 2 subnets
D EX 10.0.0.2 [170/2560025856] via 192.168.0.1, 00:14:58, FastEthernet0/0
C 10.0.0.1 is directly connected, Loopback0
192.168.0.0/30 is subnetted, 1 subnets
C 192.168.0.0 is directly connected, FastEthernet0/0
192.168.1.0/30 is subnetted, 1 subnets
D EX 192.168.1.4
[170/2560025856] via 192.168.0.1, 00:14:58, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 192.168.0.1
CE-BRI-1#
CE-BRI-2
10.0.0.0/32 is subnetted, 2 subnets
C 10.0.0.2 is directly connected, Loopback0
D EX 10.0.0.1 [170/2560025856] via 192.168.1.5, 00:00:59, FastEthernet0/0
192.168.0.0/30 is subnetted, 1 subnets
D 192.168.0.0 [90/307200] via 192.168.1.5, 00:00:59, FastEthernet0/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 192.168.1.5
CE-BRI-2#
Lab 1: MPLS backbone
Konfig PE2
!
interface Loopback0
ip address 10.10.10.2 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.20.2 255.255.255.252
mpls ip
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.10.10.2 0.0.0.0 area 0
network 192.168.20.2 0.0.0.0 area 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.10.10.1 remote-as 65000
neighbor 10.10.10.1 update-source Loopback0
no auto-summary
!
PE2(config)#do show mpls forw
Local Outgoing Prefix Bytes tag Outgoing Next Hop
tag tag or VC or Tunnel Id switched interface
16 Untagged 192.168.10.0/30 0 Se1/0 point2point
17 Untagged 192.168.10.0/24 0 Se1/0 point2point
18 Untagged 10.10.10.1/32 0 Se1/0 point2point
PE2(config)#
PE1
interface Loopback0
ip address 10.10.10.1 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.10.1 255.255.255.0
mpls ip
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.10.10.1 0.0.0.0 area 0
network 192.168.10.1 0.0.0.0 area 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.10.10.2 remote-as 65000
neighbor 10.10.10.2 update-source Loopback0
no auto-summary
!
*Mar 1 00:18:58.559: %SYS-5-CONFIG_I: Configured from console by consolempls for
Local Outgoing Prefix Bytes tag Outgoing Next Hop
tag tag or VC or Tunnel Id switched interface
16 Untagged 192.168.10.0/30 0 Se1/0 point2point
17 Untagged 192.168.20.0/30 0 Se1/0 point2point
18 Untagged 10.10.10.2/32 0 Se1/0 point2point
PE1#
P#show
*Mar 1 00:19:24.743: %SYS-5-CONFIG_I: Configured from console by consolempls fror
Local Outgoing Prefix Bytes tag Outgoing Next Hop
tag tag or VC or Tunnel Id switched interface
16 Untagged 192.168.10.0/24 0 Se1/0 point2point
17 Untagged 10.10.10.2/32 0 Se1/1 point2point
18 Untagged 10.10.10.1/32 0 Se1/0 point2point
P#
!
interface Loopback0
ip address 10.10.10.2 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.20.2 255.255.255.252
mpls ip
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.10.10.2 0.0.0.0 area 0
network 192.168.20.2 0.0.0.0 area 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.10.10.1 remote-as 65000
neighbor 10.10.10.1 update-source Loopback0
no auto-summary
!
!
interface Loopback0
ip address 10.10.10.2 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.20.2 255.255.255.252
mpls ip
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.10.10.2 0.0.0.0 area 0
network 192.168.20.2 0.0.0.0 area 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.10.10.1 remote-as 65000
neighbor 10.10.10.1 update-source Loopback0
no auto-summary
!
PE2(config)#do show mpls forw
Local Outgoing Prefix Bytes tag Outgoing Next Hop
tag tag or VC or Tunnel Id switched interface
16 Untagged 192.168.10.0/30 0 Se1/0 point2point
17 Untagged 192.168.10.0/24 0 Se1/0 point2point
18 Untagged 10.10.10.1/32 0 Se1/0 point2point
PE2(config)#
PE1
interface Loopback0
ip address 10.10.10.1 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.10.1 255.255.255.0
mpls ip
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.10.10.1 0.0.0.0 area 0
network 192.168.10.1 0.0.0.0 area 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.10.10.2 remote-as 65000
neighbor 10.10.10.2 update-source Loopback0
no auto-summary
!
*Mar 1 00:18:58.559: %SYS-5-CONFIG_I: Configured from console by consolempls for
Local Outgoing Prefix Bytes tag Outgoing Next Hop
tag tag or VC or Tunnel Id switched interface
16 Untagged 192.168.10.0/30 0 Se1/0 point2point
17 Untagged 192.168.20.0/30 0 Se1/0 point2point
18 Untagged 10.10.10.2/32 0 Se1/0 point2point
PE1#
P#show
*Mar 1 00:19:24.743: %SYS-5-CONFIG_I: Configured from console by consolempls fror
Local Outgoing Prefix Bytes tag Outgoing Next Hop
tag tag or VC or Tunnel Id switched interface
16 Untagged 192.168.10.0/24 0 Se1/0 point2point
17 Untagged 10.10.10.2/32 0 Se1/1 point2point
18 Untagged 10.10.10.1/32 0 Se1/0 point2point
P#
!
interface Loopback0
ip address 10.10.10.2 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.20.2 255.255.255.252
mpls ip
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.10.10.2 0.0.0.0 area 0
network 192.168.20.2 0.0.0.0 area 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.10.10.1 remote-as 65000
neighbor 10.10.10.1 update-source Loopback0
no auto-summary
!
Selasa, 06 Desember 2011
Lab 21 - BGP mindah Jalur - Local Preference
R1(config)#route
R1(config)#route-ma
R1(config)#route-map LOC_PREF permit 10
R1(config-route-map)#set loca
R1(config-route-map)#set local-preference 200
R1(config-route-map)#router bgp 1
R1(config-router)#nei 12.12.12.2 route
R1(config-router)#nei 12.12.12.2 route-map LOC_PREF in
R1(config-router)#do clear ip bgp *
R1(config-router)#
*Mar 1 00:40:41.311: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Down User reset
*Mar 1 00:40:41.315: %BGP-5-ADJCHANGE: neighbor 13.13.13.3 Down User reset
*Mar 1 00:40:42.063: %BGP-5-ADJCHANGE: neighbor 13.13.13.3 Up
*Mar 1 00:40:42.319: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Up
R1(config-router)#exit
R1(config)#^Z
R1#
*Mar 1 00:40:49.363: %SYS-5-CONFIG_I: Configured from console by console
R1#ping 3.3.3.3 so 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
.....
Success rate is 0 percent (0/5)
R1#ping 3.3.3.3 so 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/48/72 ms
R1#trace 3.3.3.3 so 1.1.1.1
Type escape sequence to abort.
Tracing the route to 3.3.3.3
1 12.12.12.2 36 msec 52 msec 12 msec
2 23.23.23.3 4 msec * 32 msec
R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 3.3.3.3/32 12.12.12.2 200 0 23 i
* 13.13.13.3 200 0 23 i
R1#sh ip bgp 3.3.3.
% Incomplete command.
R1#sh ip bgp 3.3.3.3
BGP routing table entry for 3.3.3.3/32, version 2
Paths: (2 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
1
23
12.12.12.2 from 12.12.12.2 (23.23.23.2)
Origin IGP, localpref 200, valid, external, best
23
13.13.13.3 from 13.13.13.3 (3.3.3.3)
Origin IGP, metric 200, localpref 100, valid, external
R1#
R1(config)#route-ma
R1(config)#route-map LOC_PREF permit 10
R1(config-route-map)#set loca
R1(config-route-map)#set local-preference 200
R1(config-route-map)#router bgp 1
R1(config-router)#nei 12.12.12.2 route
R1(config-router)#nei 12.12.12.2 route-map LOC_PREF in
R1(config-router)#do clear ip bgp *
R1(config-router)#
*Mar 1 00:40:41.311: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Down User reset
*Mar 1 00:40:41.315: %BGP-5-ADJCHANGE: neighbor 13.13.13.3 Down User reset
*Mar 1 00:40:42.063: %BGP-5-ADJCHANGE: neighbor 13.13.13.3 Up
*Mar 1 00:40:42.319: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Up
R1(config-router)#exit
R1(config)#^Z
R1#
*Mar 1 00:40:49.363: %SYS-5-CONFIG_I: Configured from console by console
R1#ping 3.3.3.3 so 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
.....
Success rate is 0 percent (0/5)
R1#ping 3.3.3.3 so 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/48/72 ms
R1#trace 3.3.3.3 so 1.1.1.1
Type escape sequence to abort.
Tracing the route to 3.3.3.3
1 12.12.12.2 36 msec 52 msec 12 msec
2 23.23.23.3 4 msec * 32 msec
R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 3.3.3.3/32 12.12.12.2 200 0 23 i
* 13.13.13.3 200 0 23 i
R1#sh ip bgp 3.3.3.
% Incomplete command.
R1#sh ip bgp 3.3.3.3
BGP routing table entry for 3.3.3.3/32, version 2
Paths: (2 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
1
23
12.12.12.2 from 12.12.12.2 (23.23.23.2)
Origin IGP, localpref 200, valid, external, best
23
13.13.13.3 from 13.13.13.3 (3.3.3.3)
Origin IGP, metric 200, localpref 100, valid, external
R1#
lab 20: BGP mindah Jalur- Weight
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#route-map WEIGHT permit 10
R1(config-route-map)#set wi
R1(config-route-map)#set wei
R1(config-route-map)#set weight 100
R1(config-route-map)#router bgp 1
R1(config-router)#nei 12.12.12.2 rout
R1(config-router)#nei 12.12.12.2 route-map WEIGHT in
R1(config-router)#do clear ip bgp *
R1(config-router)#
*Mar 1 00:36:54.591: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Down User reset
*Mar 1 00:36:54.595: %BGP-5-ADJCHANGE: neighbor 13.13.13.3 Down User reset
R1(config-router)#
*Mar 1 00:36:55.659: %BGP-5-ADJCHANGE: neighbor 13.13.13.3 Up
*Mar 1 00:36:55.823: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Up
R1(config-router)#
R1#ping 3.3.3.3 source 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/60/72 ms
R1#trace 3.3.3.3 source 1.1.1.1
Type escape sequence to abort.
Tracing the route to 3.3.3.3
1 12.12.12.2 28 msec 56 msec 40 msec
2 23.23.23.3 52 msec * 16 msec
R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 3.3.3.3/32 12.12.12.2 100 23 i
* 13.13.13.3 200 0 23 i
R1#sh ip bgp 3.3.3.3
BGP routing table entry for 3.3.3.3/32, version 2
Paths: (2 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
1
23
12.12.12.2 from 12.12.12.2 (23.23.23.2)
Origin IGP, localpref 100, weight 100, valid, external, best
23
13.13.13.3 from 13.13.13.3 (3.3.3.3)
Origin IGP, metric 200, localpref 100, valid, external
R1#
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#route-map WEIGHT permit 10
R1(config-route-map)#set wi
R1(config-route-map)#set wei
R1(config-route-map)#set weight 100
R1(config-route-map)#router bgp 1
R1(config-router)#nei 12.12.12.2 rout
R1(config-router)#nei 12.12.12.2 route-map WEIGHT in
R1(config-router)#do clear ip bgp *
R1(config-router)#
*Mar 1 00:36:54.591: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Down User reset
*Mar 1 00:36:54.595: %BGP-5-ADJCHANGE: neighbor 13.13.13.3 Down User reset
R1(config-router)#
*Mar 1 00:36:55.659: %BGP-5-ADJCHANGE: neighbor 13.13.13.3 Up
*Mar 1 00:36:55.823: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Up
R1(config-router)#
R1#ping 3.3.3.3 source 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/60/72 ms
R1#trace 3.3.3.3 source 1.1.1.1
Type escape sequence to abort.
Tracing the route to 3.3.3.3
1 12.12.12.2 28 msec 56 msec 40 msec
2 23.23.23.3 52 msec * 16 msec
R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 3.3.3.3/32 12.12.12.2 100 23 i
* 13.13.13.3 200 0 23 i
R1#sh ip bgp 3.3.3.3
BGP routing table entry for 3.3.3.3/32, version 2
Paths: (2 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
1
23
12.12.12.2 from 12.12.12.2 (23.23.23.2)
Origin IGP, localpref 100, weight 100, valid, external, best
23
13.13.13.3 from 13.13.13.3 (3.3.3.3)
Origin IGP, metric 200, localpref 100, valid, external
R1#
Hari ke - 4: BGP Mindah Jalur - AS path
R3(config-router)#
R3(config-router)#nei 13.13.13.1 route
R3(config-router)#nei 13.13.13.1 route-map MED Out
R3(config-router)#route-ma
R3(config-router)#route-ma AS
R3(config-route-map)#set as-ap
R3(config-route-map)#set as-pa
R3(config-route-map)#set as-path prepend 23 23 23 23
R3(config-route-map)#do clear ip bgp *
R3(config-route-map)#
R1#ping 3.3.3.3 sou 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/48/76 ms
R1#trace 3.3.3.3 sou 1.1.1.1
Type escape sequence to abort.
Tracing the route to 3.3.3.3
1 12.12.12.2 20 msec 56 msec 12 msec
2 23.23.23.3 48 msec * 40 msec
R1#show ip bgp
BGP table version is 12, local router ID is 1.1.1.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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 3.3.3.3/32 12.12.12.2 0 23 i
* 13.13.13.3 200 0 23 i
R1#
Hari ke - 4 : Lab 17: BGP Manipulasi Jalur
konfig R1
interface Serial0/2
ip address 12.12.12.1 255.255.255.0
clock rate 2000000
!
router eigrp 10
network 12.12.12.1 0.0.0.0
network 13.13.13.1 0.0.0.0
no auto-summary
!
router bgp 1
no synchronization
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
neighbor 12.12.12.2 remote-as 23
neighbor 13.13.13.3 remote-as 23
no auto-summary
R1#sh ip bgp 3.3.3.3
BGP routing table entry for 3.3.3.3/32, version 3
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
1
23
12.12.12.2 from 12.12.12.2 (23.23.23.2)
Origin IGP, localpref 100, valid, external
23
13.13.13.3 from 13.13.13.3 (3.3.3.3)
Origin IGP, metric 0, localpref 100, valid, external, best
R1#
R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
* 3.3.3.3/32 12.12.12.2 0 23 i
*> 13.13.13.3 0 0 23 i
R1#
Konfig R2
interface Serial0/2
ip address 12.12.12.2 255.255.255.0
clock rate 2000000
!
router eigrp 10
network 12.12.12.2 0.0.0.0
network 23.23.23.2 0.0.0.0
auto-summary
!
router bgp 23
no synchronization
bgp log-neighbor-changes
neighbor 12.12.12.1 remote-as 1
neighbor 23.23.23.3 remote-as 23
no auto-summary
!
konfig R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 13.13.13.3 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 23.23.23.3 255.255.255.0
duplex auto
speed auto
!
router eigrp 10
network 13.13.13.3 0.0.0.0
network 23.23.23.3 0.0.0.0
no auto-summary
!
router bgp 23
no synchronization
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
neighbor 13.13.13.1 remote-as 1
neighbor 23.23.23.2 remote-as 23
no auto-summary
!
ip forward-protocol nd
!
!
interface Serial0/2
ip address 12.12.12.1 255.255.255.0
clock rate 2000000
!
router eigrp 10
network 12.12.12.1 0.0.0.0
network 13.13.13.1 0.0.0.0
no auto-summary
!
router bgp 1
no synchronization
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
neighbor 12.12.12.2 remote-as 23
neighbor 13.13.13.3 remote-as 23
no auto-summary
R1#sh ip bgp 3.3.3.3
BGP routing table entry for 3.3.3.3/32, version 3
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
1
23
12.12.12.2 from 12.12.12.2 (23.23.23.2)
Origin IGP, localpref 100, valid, external
23
13.13.13.3 from 13.13.13.3 (3.3.3.3)
Origin IGP, metric 0, localpref 100, valid, external, best
R1#
R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
* 3.3.3.3/32 12.12.12.2 0 23 i
*> 13.13.13.3 0 0 23 i
R1#
Konfig R2
interface Serial0/2
ip address 12.12.12.2 255.255.255.0
clock rate 2000000
!
router eigrp 10
network 12.12.12.2 0.0.0.0
network 23.23.23.2 0.0.0.0
auto-summary
!
router bgp 23
no synchronization
bgp log-neighbor-changes
neighbor 12.12.12.1 remote-as 1
neighbor 23.23.23.3 remote-as 23
no auto-summary
!
konfig R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 13.13.13.3 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 23.23.23.3 255.255.255.0
duplex auto
speed auto
!
router eigrp 10
network 13.13.13.3 0.0.0.0
network 23.23.23.3 0.0.0.0
no auto-summary
!
router bgp 23
no synchronization
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
neighbor 13.13.13.1 remote-as 1
neighbor 23.23.23.2 remote-as 23
no auto-summary
!
ip forward-protocol nd
!
!
Hari ke 4: Lab 13: BGP Local AS
Konfig R1
R1(config)#do show run | sec router
router bgp 100
no synchronization
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
network 1.1.1.2 mask 255.255.255.255
network 1.1.1.3 mask 255.255.255.255
neighbor 12.12.12.2 remote-as 65000
no auto-summary
R1(config)#
!
Konfig R2
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
duplex auto
speed auto
!
router bgp 200
no synchronization
bgp log-neighbor-changes
neighbor 12.12.12.1 remote-as 100
neighbor 12.12.12.1 local-as 65000 no-prepend replace-as
neighbor 23.23.23.3 remote-as 300
neighbor 23.23.23.3 local-as 65000 no-prepend replace-as
no auto-summary
!
ip forward-protocol nd
!
!
no ip http s
konfig R3
router bgp 300
no synchronization
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
neighbor 23.23.23.2 remote-as 65000
no auto-summary
R3(config)#
Hari ke-4: Lab 12: BGP Aggregator
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface Loopback1
ip address 40.1.1.1 255.255.255.255
!
interface Loopback2
ip address 40.2.1.1 255.255.255.255
!
interface Loopback3
ip address 40.3.1.1 255.255.255.255
!
interface Loopback4
ip address 40.4.1.1 255.255.255.255
!
interface Loopback5
ip address 40.5.1.1 255.255.255.255
!
interface Loopback6
ip address 40.6.1.1 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 24.24.24.4 255.255.255.0
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
interface Serial0/2
no ip address
shutdown
clock rate 2000000
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 4
no synchronization
bgp log-neighbor-changes
network 4.4.4.4 mask 255.255.255.255
network 40.1.1.1 mask 255.255.255.255
network 40.2.1.1 mask 255.255.255.255
network 40.3.1.1 mask 255.255.255.255
network 40.4.1.1 mask 255.255.255.255
network 40.5.1.1 mask 255.255.255.255
network 40.6.1.1 mask 255.255.255.255
neighbor 24.24.24.2 remote-as 123
no auto-summary
!
ip forward-protocol nd
!
R1(config)#do show ip bgp
BGP table version is 11, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
*>i40.1.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.2.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.3.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.4.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.5.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.6.1.1/32 2.2.2.2 0 100 0 4 i
R1(config)#
R4(config)#router bgp 4
R4(config-router)#aggre
R4(config-router)#aggregate-address 40.0.0.0 255.248.0.0
R4(config-router)#
R1#show ip bgp
BGP table version is 12, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
*>i40.0.0.0/13 2.2.2.2 0 100 0 4 i
*>i40.1.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.2.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.3.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.4.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.5.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.6.1.1/32 2.2.2.2 0 100 0 4 i
R1#
R1#sh ip bgp 40.0.0.0
BGP routing table entry for 40.0.0.0/13, version 12
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
4, (aggregated by 4 4.4.4.4)
2.2.2.2 (metric 409600) from 2.2.2.2 (22.22.22.22)
Origin IGP, metric 0, localpref 100, valid, internal, atomic-aggregate, best
R1#
R4(config-router)#aggregate-address 40.0.0.0 255.248.0.0 summary-only
R4(config-router)#
R1#show ip bgp
BGP table version is 18, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
*>i40.0.0.0/13 2.2.2.2 0 100 0 4 i
R1#
konfig aggregate supress
R4(config)#access-list 1 permit host 40.2.1.1
R4(config)#acc
R4(config)#access-list 1 permit host 40.3.1.1
R4(config)#acc
R4(config)#access-list 1 permit
R4(config)#access-list 1 permit host 40.4.1.1
R4(config)#acc
R4(config)#access-list 1 deny any
R4(config)#route-
R4(config)#route-map BLOK
R4(config-route-map)#mat
R4(config-route-map)#match ip addr
R4(config-route-map)#match ip address 1
R4(config-route-map)#router bgp 4
R4(config-router)#aggre
R4(config-router)#aggregate-address 40.0.0.0 255.248.0.0 sup
R4(config-router)#aggregate-address 40.0.0.0 255.248.0.0 suppress-map
R4(config-router)#aggregate-address 40.0.0.0 255.248.0.0 suppress-map BLOK
R4(config-router)#
R4#sh ip bgp
*Mar 1 00:39:44.739: %SYS-5-CONFIG_I: Configured from console by console
BGP table version is 27, local router ID is 4.4.4.4
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
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 11.11.11.11/32 24.24.24.2 0 123 i
*> 22.22.22.22/32 24.24.24.2 0 0 123 i
*> 33.33.33.33/32 24.24.24.2 0 123 i
*> 40.0.0.0/13 0.0.0.0 32768 i
*> 40.1.1.1/32 0.0.0.0 0 32768 i
s> 40.2.1.1/32 0.0.0.0 0 32768 i
s> 40.3.1.1/32 0.0.0.0 0 32768 i
s> 40.4.1.1/32 0.0.0.0 0 32768 i
*> 40.5.1.1/32 0.0.0.0 0 32768 i
*> 40.6.1.1/32 0.0.0.0 0 32768 i
R4#
R1#sh ip bgp
BGP table version is 21, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
*>i40.0.0.0/13 2.2.2.2 0 100 0 4 i
*>i40.1.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.5.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.6.1.1/32 2.2.2.2 0 100 0 4 i
R1#
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface Loopback1
ip address 40.1.1.1 255.255.255.255
!
interface Loopback2
ip address 40.2.1.1 255.255.255.255
!
interface Loopback3
ip address 40.3.1.1 255.255.255.255
!
interface Loopback4
ip address 40.4.1.1 255.255.255.255
!
interface Loopback5
ip address 40.5.1.1 255.255.255.255
!
interface Loopback6
ip address 40.6.1.1 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 24.24.24.4 255.255.255.0
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
interface Serial0/2
no ip address
shutdown
clock rate 2000000
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 4
no synchronization
bgp log-neighbor-changes
network 4.4.4.4 mask 255.255.255.255
network 40.1.1.1 mask 255.255.255.255
network 40.2.1.1 mask 255.255.255.255
network 40.3.1.1 mask 255.255.255.255
network 40.4.1.1 mask 255.255.255.255
network 40.5.1.1 mask 255.255.255.255
network 40.6.1.1 mask 255.255.255.255
neighbor 24.24.24.2 remote-as 123
no auto-summary
!
ip forward-protocol nd
!
R1(config)#do show ip bgp
BGP table version is 11, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
*>i40.1.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.2.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.3.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.4.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.5.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.6.1.1/32 2.2.2.2 0 100 0 4 i
R1(config)#
R4(config)#router bgp 4
R4(config-router)#aggre
R4(config-router)#aggregate-address 40.0.0.0 255.248.0.0
R4(config-router)#
R1#show ip bgp
BGP table version is 12, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
*>i40.0.0.0/13 2.2.2.2 0 100 0 4 i
*>i40.1.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.2.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.3.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.4.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.5.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.6.1.1/32 2.2.2.2 0 100 0 4 i
R1#
R1#sh ip bgp 40.0.0.0
BGP routing table entry for 40.0.0.0/13, version 12
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
4, (aggregated by 4 4.4.4.4)
2.2.2.2 (metric 409600) from 2.2.2.2 (22.22.22.22)
Origin IGP, metric 0, localpref 100, valid, internal, atomic-aggregate, best
R1#
R4(config-router)#aggregate-address 40.0.0.0 255.248.0.0 summary-only
R4(config-router)#
R1#show ip bgp
BGP table version is 18, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
*>i40.0.0.0/13 2.2.2.2 0 100 0 4 i
R1#
konfig aggregate supress
R4(config)#access-list 1 permit host 40.2.1.1
R4(config)#acc
R4(config)#access-list 1 permit host 40.3.1.1
R4(config)#acc
R4(config)#access-list 1 permit
R4(config)#access-list 1 permit host 40.4.1.1
R4(config)#acc
R4(config)#access-list 1 deny any
R4(config)#route-
R4(config)#route-map BLOK
R4(config-route-map)#mat
R4(config-route-map)#match ip addr
R4(config-route-map)#match ip address 1
R4(config-route-map)#router bgp 4
R4(config-router)#aggre
R4(config-router)#aggregate-address 40.0.0.0 255.248.0.0 sup
R4(config-router)#aggregate-address 40.0.0.0 255.248.0.0 suppress-map
R4(config-router)#aggregate-address 40.0.0.0 255.248.0.0 suppress-map BLOK
R4(config-router)#
R4#sh ip bgp
*Mar 1 00:39:44.739: %SYS-5-CONFIG_I: Configured from console by console
BGP table version is 27, local router ID is 4.4.4.4
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
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 11.11.11.11/32 24.24.24.2 0 123 i
*> 22.22.22.22/32 24.24.24.2 0 0 123 i
*> 33.33.33.33/32 24.24.24.2 0 123 i
*> 40.0.0.0/13 0.0.0.0 32768 i
*> 40.1.1.1/32 0.0.0.0 0 32768 i
s> 40.2.1.1/32 0.0.0.0 0 32768 i
s> 40.3.1.1/32 0.0.0.0 0 32768 i
s> 40.4.1.1/32 0.0.0.0 0 32768 i
*> 40.5.1.1/32 0.0.0.0 0 32768 i
*> 40.6.1.1/32 0.0.0.0 0 32768 i
R4#
R1#sh ip bgp
BGP table version is 21, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
*>i40.0.0.0/13 2.2.2.2 0 100 0 4 i
*>i40.1.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.5.1.1/32 2.2.2.2 0 100 0 4 i
*>i40.6.1.1/32 2.2.2.2 0 100 0 4 i
R1#
Hari ke 4: Lab 11: BGP Peers Group
Konfig R1
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 11.11.11.11 mask 255.255.255.255
neighbor INTERNAL peer-group
neighbor INTERNAL remote-as 123
neighbor 2.2.2.2 peer-group INTERNAL
neighbor 3.3.3.3 peer-group INTERNAL
no auto-summary
!
konfig R2
router eigrp 1
network 2.2.2.2 0.0.0.0
network 12.12.12.2 0.0.0.0
network 23.23.23.2 0.0.0.0
auto-summary
router bgp 123
no synchronization
bgp log-neighbor-changes
network 22.22.22.22 mask 255.255.255.255
neighbor INTERNAL peer-group
neighbor INTERNAL remote-as 123
neighbor INTERNAL update-source Loopback0
neighbor INTERNAL next-hop-self
neighbor 1.1.1.1 peer-group INTERNAL
neighbor 3.3.3.3 peer-group INTERNAL
neighbor 24.24.24.4 remote-as 4
no auto-summary
R2#
konfig R3
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 33.33.33.33 mask 255.255.255.255
neighbor INTERNAL peer-group
neighbor INTERNAL remote-as 123
neighbor INTERNAL update-source Loopback0
neighbor 1.1.1.1 peer-group INTERNAL
neighbor 2.2.2.2 peer-group INTERNAL
no auto-summary
!
Hari ke - 4 : Lab 9: BGP Attribute (origin)
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
duplex auto
speed auto
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
neighbor 12.12.12.2 remote-as 200
no auto-summary
!
R1#show ip bgp
BGP table version is 6, local router ID is 1.1.1.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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 2.2.2.2/32 12.12.12.2 0 0 200 i
*> 3.3.3.3/32 12.12.12.2 0 200 i
*> 30.30.30.30/32 12.12.12.2 0 0 200 ?
*> 33.33.33.33/32 12.12.12.2 0 200 ?
R1#
R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Loopback1
ip address 33.33.33.33 255.255.255.255
!
interface Loopback2
ip address 30.30.30.30 255.255.255.255
!
interface Serial1/0
ip address 23.23.23.3 255.255.255.0
serial restart-delay 0
!
router rip
network 33.0.0.0
!
router bgp 200
no synchronization
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
redistribute rip
neighbor 23.23.23.2 remote-as 200
no auto-summary
!
ip forward-protocol nd
!
R3#show ip bgp
BGP table version is 6, local router ID is 33.33.33.33
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
* i1.1.1.1/32 12.12.12.1 0 100 0 100 i
*>i2.2.2.2/32 23.23.23.2 0 100 0 i
*> 3.3.3.3/32 0.0.0.0 0 32768 i
r>i30.30.30.30/32 23.23.23.2 0 100 0 ?
*> 33.33.33.33/32 0.0.0.0 0 32768 ?
R3#
R2
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
duplex auto
speed auto
!
interface Serial1/0
ip address 23.23.23.2 255.255.255.0
serial restart-delay 0
!
router bgp 200
no synchronization
bgp log-neighbor-changes
network 2.2.2.2 mask 255.255.255.255
redistribute static
neighbor 12.12.12.1 remote-as 100
neighbor 23.23.23.3 remote-as 200
no auto-summary
!
R2(config-router)#do show ip bgp
BGP table version is 6, local router ID is 2.2.2.2
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
*> 1.1.1.1/32 12.12.12.1 0 0 100 i
*> 2.2.2.2/32 0.0.0.0 0 32768 i
*>i3.3.3.3/32 23.23.23.3 0 100 0 i
*> 30.30.30.30/32 23.23.23.3 0 32768 ?
*>i33.33.33.33/32 23.23.23.3 0 100 0 ?
R2(config-router)#
Hari ke - 4 Lab 10: BGP Attribute (community )
konfig R4
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 24.24.24.4 255.255.255.0
clock rate 2000000
!
router bgp 4
no synchronization
bgp log-neighbor-changes
network 4.4.4.4 mask 255.255.255.255
neighbor 24.24.24.2 remote-as 123
no auto-summary
!
R4#sh ip bgp
BGP table version is 5, local router ID is 4.4.4.4
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
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 11.11.11.11/32 24.24.24.2 0 123 i
*> 22.22.22.22/32 24.24.24.2 0 0 123 i
*> 33.33.33.33/32 24.24.24.2 0 123 i
R4#
konfig R1
router eigrp 1
network 1.1.1.1 0.0.0.0
network 12.12.12.1 0.0.0.0
auto-summary
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 11.11.11.11 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 123
no auto-summary
!
ip forward-protocol nd
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Loopback1
ip address 11.11.11.11 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
duplex auto
speed auto
!
R1(config-router)#do sh ip bgp
BGP table version is 5, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
R1(config-router)#
Konfig R2
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Loopback1
ip address 22.22.22.22 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
duplex auto
speed auto
interface Serial0/0
ip address 24.24.24.2 255.255.255.0
clock rate 2000000
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
duplex auto
speed auto
!
router eigrp 1
network 2.2.2.2 0.0.0.0
network 12.12.12.2 0.0.0.0
network 23.23.23.2 0.0.0.0
auto-summary
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 22.22.22.22 mask 255.255.255.255
neighbor 1.1.1.1 remote-as 123
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 next-hop-self
neighbor 3.3.3.3 remote-as 123
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 route-reflector-client
neighbor 3.3.3.3 next-hop-self
neighbor 24.24.24.4 remote-as 4
no auto-summary
!
R2(config-router)#exit
R2(config)#do sh ip bgp
BGP table version is 5, local router ID is 22.22.22.22
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
*> 4.4.4.4/32 24.24.24.4 0 0 4 i
*>i11.11.11.11/32 1.1.1.1 0 100 0 i
*> 22.22.22.22/32 0.0.0.0 0 32768 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
R2(config)#
konfig R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Loopback1
ip address 33.33.33.33 255.255.255.255
!
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
duplex auto
speed auto
!
router eigrp 1
network 3.3.3.3 0.0.0.0
network 23.23.23.3 0.0.0.0
auto-summary
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 33.33.33.33 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 123
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!
R3(config)#exit
R3#sh ip route
*Mar 1 00:19:57.383: %SYS-5-CONFIG_I: Configured from console by console
R3#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
D 1.0.0.0/8 [90/435200] via 23.23.23.2, 00:10:14, FastEthernet0/0
D 2.0.0.0/8 [90/409600] via 23.23.23.2, 00:10:14, FastEthernet0/0
33.0.0.0/32 is subnetted, 1 subnets
C 33.33.33.33 is directly connected, Loopback1
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 3.3.3.3/32 is directly connected, Loopback0
D 3.0.0.0/8 is a summary, 00:10:10, Null0
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [200/0] via 2.2.2.2, 00:08:24
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, FastEthernet0/0
D 23.0.0.0/8 is a summary, 00:10:12, Null0
22.0.0.0/32 is subnetted, 1 subnets
B 22.22.22.22 [200/0] via 2.2.2.2, 00:09:30
11.0.0.0/32 is subnetted, 1 subnets
B 11.11.11.11 [200/0] via 1.1.1.1, 00:09:32
D 12.0.0.0/8 [90/307200] via 23.23.23.2, 00:10:18, FastEthernet0/0
R3#
R3#show ip bgp
BGP table version is 5, local router ID is 33.33.33.33
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*>i11.11.11.11/32 1.1.1.1 0 100 0 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*> 33.33.33.33/32 0.0.0.0 0 32768 i
R3#
SET community menjadi NO EXPORT
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 11.11.11.11 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 123
neighbor 2.2.2.2 send-community
neighbor 2.2.2.2 route-map NO-EXPORT out
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
access-list 1 permit 11.11.11.11
!
!
!
route-map NO-EXPORT permit 10
match ip address 1
set community no-export
!
R4#sh ip bgp
BGP table version is 6, local router ID is 4.4.4.4
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
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 22.22.22.22/32 24.24.24.2 0 0 123 i
*> 33.33.33.33/32 24.24.24.2 0 123 i
R4#
R2(config)#do sh ip bgp 11.11.11.11
BGP routing table entry for 11.11.11.11/32, version 6
Paths: (1 available, best #1, table Default-IP-Routing-Table, not advertised to EBGP peer)
Advertised to update-groups:
3
Local
1.1.1.1 (metric 409600) from 1.1.1.1 (11.11.11.11)
Origin IGP, metric 0, localpref 100, valid, internal, best
Community: no-export
R2(config)#
Set Community "no-advertise" di R3
router eigrp 1
network 3.3.3.3 0.0.0.0
network 23.23.23.3 0.0.0.0
auto-summary
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 33.33.33.33 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 123
neighbor 2.2.2.2 update-source Loopback0
neighbor 2.2.2.2 send-community
neighbor 2.2.2.2 route-map NO-ADVERTISE out
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
access-list 1 permit 33.33.33.33
route-map NO-ADVERTISE permit 10
match ip address 1
set community no-advertise
!
!
!
!
R4
Network Next Hop Metric LocPrf Weight Path
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 22.22.22.22/32 24.24.24.2 0 0 123 i
*> 33.33.33.33/32 24.24.24.2 0 123 i
R4#
R1#sh ip bgp
BGP table version is 6, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
R1#
Set Community menjadi Local-AS
R2#show ip bgp
BGP table version is 5, local router ID is 22.22.22.22
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
*> 4.4.4.4/32 24.24.24.4 0 0 4 i
*>i11.11.11.11/32 12.12.12.1 0 100 0 i
*> 22.22.22.22/32 0.0.0.0 0 32768 i
*> 33.33.33.33/32 23.23.23.3 0 100 0 (3) i
R2#
KOnfigurasi R2
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 1
network 2.2.2.2 0.0.0.0
network 12.12.12.2 0.0.0.0
network 23.23.23.2 0.0.0.0
auto-summary
!
router bgp 12
no synchronization
bgp log-neighbor-changes
bgp confederation identifier 123
bgp confederation peers 3
network 22.22.22.22 mask 255.255.255.255
neighbor 12.12.12.1 remote-as 12
neighbor 12.12.12.1 next-hop-self
neighbor 23.23.23.3 remote-as 3
neighbor 23.23.23.3 next-hop-self
neighbor 24.24.24.4 remote-as 4
no auto-summary
!
ip forward-protocol nd
!
konfigurasi R1
!
router bgp 12
no synchronization
bgp log-neighbor-changes
bgp confederation identifier 123
network 11.11.11.11 mask 255.255.255.255
neighbor 12.12.12.2 remote-as 12
neighbor 12.12.12.2 send-community
neighbor 12.12.12.2 route-map LOCAL-AS out
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
access-list 1 permit 11.11.11.11
access-list 2 permit 11.11.11.11
!
!
!
route-map NO-EXPORT permit 10
match ip address 1
set community no-export
!
route-map LOCAL-AS permit 10
match ip address 2
set community local-AS
Konfigurasi R3
router eigrp 1
network 3.3.3.3 0.0.0.0
network 23.23.23.3 0.0.0.0
auto-summary
!
router bgp 3
no synchronization
bgp log-neighbor-changes
bgp confederation identifier 123
bgp confederation peers 12
network 33.33.33.33 mask 255.255.255.255
neighbor 23.23.23.2 remote-as 12
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
access-list 1 permit 33.33.33.33
!
!
R2#sh ip bgp 11.11.11.11
BGP routing table entry for 11.11.11.11/32, version 3
Paths: (1 available, best #1, table Default-IP-Routing-Table, not advertised outside local AS)
Not advertised to any peer
Local
12.12.12.1 from 12.12.12.1 (11.11.11.11)
Origin IGP, metric 0, localpref 100, valid, confed-internal, best
Community: local-AS
R2#
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 24.24.24.4 255.255.255.0
clock rate 2000000
!
router bgp 4
no synchronization
bgp log-neighbor-changes
network 4.4.4.4 mask 255.255.255.255
neighbor 24.24.24.2 remote-as 123
no auto-summary
!
R4#sh ip bgp
BGP table version is 5, local router ID is 4.4.4.4
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
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 11.11.11.11/32 24.24.24.2 0 123 i
*> 22.22.22.22/32 24.24.24.2 0 0 123 i
*> 33.33.33.33/32 24.24.24.2 0 123 i
R4#
konfig R1
router eigrp 1
network 1.1.1.1 0.0.0.0
network 12.12.12.1 0.0.0.0
auto-summary
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 11.11.11.11 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 123
no auto-summary
!
ip forward-protocol nd
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Loopback1
ip address 11.11.11.11 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
duplex auto
speed auto
!
R1(config-router)#do sh ip bgp
BGP table version is 5, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
R1(config-router)#
Konfig R2
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Loopback1
ip address 22.22.22.22 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
duplex auto
speed auto
interface Serial0/0
ip address 24.24.24.2 255.255.255.0
clock rate 2000000
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
duplex auto
speed auto
!
router eigrp 1
network 2.2.2.2 0.0.0.0
network 12.12.12.2 0.0.0.0
network 23.23.23.2 0.0.0.0
auto-summary
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 22.22.22.22 mask 255.255.255.255
neighbor 1.1.1.1 remote-as 123
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 next-hop-self
neighbor 3.3.3.3 remote-as 123
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 route-reflector-client
neighbor 3.3.3.3 next-hop-self
neighbor 24.24.24.4 remote-as 4
no auto-summary
!
R2(config-router)#exit
R2(config)#do sh ip bgp
BGP table version is 5, local router ID is 22.22.22.22
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
*> 4.4.4.4/32 24.24.24.4 0 0 4 i
*>i11.11.11.11/32 1.1.1.1 0 100 0 i
*> 22.22.22.22/32 0.0.0.0 0 32768 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
R2(config)#
konfig R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Loopback1
ip address 33.33.33.33 255.255.255.255
!
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
duplex auto
speed auto
!
router eigrp 1
network 3.3.3.3 0.0.0.0
network 23.23.23.3 0.0.0.0
auto-summary
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 33.33.33.33 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 123
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!
R3(config)#exit
R3#sh ip route
*Mar 1 00:19:57.383: %SYS-5-CONFIG_I: Configured from console by console
R3#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
D 1.0.0.0/8 [90/435200] via 23.23.23.2, 00:10:14, FastEthernet0/0
D 2.0.0.0/8 [90/409600] via 23.23.23.2, 00:10:14, FastEthernet0/0
33.0.0.0/32 is subnetted, 1 subnets
C 33.33.33.33 is directly connected, Loopback1
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 3.3.3.3/32 is directly connected, Loopback0
D 3.0.0.0/8 is a summary, 00:10:10, Null0
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [200/0] via 2.2.2.2, 00:08:24
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, FastEthernet0/0
D 23.0.0.0/8 is a summary, 00:10:12, Null0
22.0.0.0/32 is subnetted, 1 subnets
B 22.22.22.22 [200/0] via 2.2.2.2, 00:09:30
11.0.0.0/32 is subnetted, 1 subnets
B 11.11.11.11 [200/0] via 1.1.1.1, 00:09:32
D 12.0.0.0/8 [90/307200] via 23.23.23.2, 00:10:18, FastEthernet0/0
R3#
R3#show ip bgp
BGP table version is 5, local router ID is 33.33.33.33
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*>i11.11.11.11/32 1.1.1.1 0 100 0 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*> 33.33.33.33/32 0.0.0.0 0 32768 i
R3#
SET community menjadi NO EXPORT
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 11.11.11.11 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 123
neighbor 2.2.2.2 send-community
neighbor 2.2.2.2 route-map NO-EXPORT out
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
access-list 1 permit 11.11.11.11
!
!
!
route-map NO-EXPORT permit 10
match ip address 1
set community no-export
!
R4#sh ip bgp
BGP table version is 6, local router ID is 4.4.4.4
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
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 22.22.22.22/32 24.24.24.2 0 0 123 i
*> 33.33.33.33/32 24.24.24.2 0 123 i
R4#
R2(config)#do sh ip bgp 11.11.11.11
BGP routing table entry for 11.11.11.11/32, version 6
Paths: (1 available, best #1, table Default-IP-Routing-Table, not advertised to EBGP peer)
Advertised to update-groups:
3
Local
1.1.1.1 (metric 409600) from 1.1.1.1 (11.11.11.11)
Origin IGP, metric 0, localpref 100, valid, internal, best
Community: no-export
R2(config)#
Set Community "no-advertise" di R3
router eigrp 1
network 3.3.3.3 0.0.0.0
network 23.23.23.3 0.0.0.0
auto-summary
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 33.33.33.33 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 123
neighbor 2.2.2.2 update-source Loopback0
neighbor 2.2.2.2 send-community
neighbor 2.2.2.2 route-map NO-ADVERTISE out
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
access-list 1 permit 33.33.33.33
route-map NO-ADVERTISE permit 10
match ip address 1
set community no-advertise
!
!
!
!
R4
Network Next Hop Metric LocPrf Weight Path
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 22.22.22.22/32 24.24.24.2 0 0 123 i
*> 33.33.33.33/32 24.24.24.2 0 123 i
R4#
R1#sh ip bgp
BGP table version is 6, local router ID is 11.11.11.11
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
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
R1#
Set Community menjadi Local-AS
R2#show ip bgp
BGP table version is 5, local router ID is 22.22.22.22
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
*> 4.4.4.4/32 24.24.24.4 0 0 4 i
*>i11.11.11.11/32 12.12.12.1 0 100 0 i
*> 22.22.22.22/32 0.0.0.0 0 32768 i
*> 33.33.33.33/32 23.23.23.3 0 100 0 (3) i
R2#
KOnfigurasi R2
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 1
network 2.2.2.2 0.0.0.0
network 12.12.12.2 0.0.0.0
network 23.23.23.2 0.0.0.0
auto-summary
!
router bgp 12
no synchronization
bgp log-neighbor-changes
bgp confederation identifier 123
bgp confederation peers 3
network 22.22.22.22 mask 255.255.255.255
neighbor 12.12.12.1 remote-as 12
neighbor 12.12.12.1 next-hop-self
neighbor 23.23.23.3 remote-as 3
neighbor 23.23.23.3 next-hop-self
neighbor 24.24.24.4 remote-as 4
no auto-summary
!
ip forward-protocol nd
!
konfigurasi R1
!
router bgp 12
no synchronization
bgp log-neighbor-changes
bgp confederation identifier 123
network 11.11.11.11 mask 255.255.255.255
neighbor 12.12.12.2 remote-as 12
neighbor 12.12.12.2 send-community
neighbor 12.12.12.2 route-map LOCAL-AS out
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
access-list 1 permit 11.11.11.11
access-list 2 permit 11.11.11.11
!
!
!
route-map NO-EXPORT permit 10
match ip address 1
set community no-export
!
route-map LOCAL-AS permit 10
match ip address 2
set community local-AS
Konfigurasi R3
router eigrp 1
network 3.3.3.3 0.0.0.0
network 23.23.23.3 0.0.0.0
auto-summary
!
router bgp 3
no synchronization
bgp log-neighbor-changes
bgp confederation identifier 123
bgp confederation peers 12
network 33.33.33.33 mask 255.255.255.255
neighbor 23.23.23.2 remote-as 12
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
access-list 1 permit 33.33.33.33
!
!
R2#sh ip bgp 11.11.11.11
BGP routing table entry for 11.11.11.11/32, version 3
Paths: (1 available, best #1, table Default-IP-Routing-Table, not advertised outside local AS)
Not advertised to any peer
Local
12.12.12.1 from 12.12.12.1 (11.11.11.11)
Origin IGP, metric 0, localpref 100, valid, confed-internal, best
Community: local-AS
R2#
Langganan:
Postingan (Atom)