aboutsummaryrefslogtreecommitdiffstats
path: root/CCNP/ROUTE/BGP/GNS3Vault/Advanced/BGPAdvanced_configs/R4.cfg
blob: 4c62ee10d2d220383212a1129ca922fa3cbe862f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
! 
!
!
!
!
interface Loopback0
 ip address 4.4.4.4 255.255.255.0
!
interface FastEthernet0/0
 ip address 192.168.24.4 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.34.4 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet2/0
 ip address 192.168.45.4 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet3/0
 ip address 192.168.46.4 255.255.255.0
 duplex auto
 speed auto
!
router ospf 4
 log-adjacency-changes
 network 4.4.4.0 0.0.0.255 area 0
 network 192.168.45.0 0.0.0.255 area 0
!
router bgp 10
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 300
 bgp confederation peers 20 
 redistribute connected
 redistribute static
 neighbor 2.2.2.2 remote-as 100
 neighbor 2.2.2.2 ebgp-multihop 2
 neighbor 2.2.2.2 update-source Loopback0
 neighbor 2.2.2.2 route-map R1-L0-Through-R2-in in
 neighbor 2.2.2.2 route-map R1-L0-Through-R2-out out
 neighbor 3.3.3.3 remote-as 100
 neighbor 3.3.3.3 ebgp-multihop 2
 neighbor 3.3.3.3 update-source Loopback0
 neighbor 3.3.3.3 route-map R1-L1-Through-R3-in in
 neighbor 3.3.3.3 route-map R1-L1-Through-R3-out out
 neighbor 5.5.5.5 remote-as 10
 neighbor 5.5.5.5 update-source Loopback0
 neighbor 5.5.5.5 next-hop-self
 neighbor 6.6.6.6 remote-as 200
 neighbor 6.6.6.6 ebgp-multihop 2
 neighbor 6.6.6.6 update-source Loopback0
 no auto-summary
!
ip http server
no ip http secure-server
ip route 2.2.2.0 255.255.255.0 192.168.24.2
ip route 3.3.3.0 255.255.255.0 192.168.34.3
ip route 6.6.6.0 255.255.255.0 192.168.46.6
!
!
!
!
ip access-list extended ACL-R1-L0
 permit ip 1.1.1.0 0.0.0.255 host 255.255.255.0
ip access-list extended ACL-R1-L1
 permit ip host 172.16.1.0 host 255.255.255.0
!
route-map R1-L0-Through-R2-in permit 10
 match ip address ACL-R1-L0
 set local-preference 420
!
route-map R1-L0-Through-R2-in permit 20
!
route-map R1-L1-Through-R3-in permit 10
 match ip address ACL-R1-L1
 set weight 430
!
route-map R1-L1-Through-R3-in permit 20
!
route-map R1-L0-Through-R2-out permit 10
 match ip address ACL-R4-L0
 set metric 240
!
route-map R1-L0-Through-R2-out permit 20
!
route-map R1-L1-Through-R3-out permit 10
 match ip address ACL-R4-L0
 set metric 340
!
route-map R1-L1-Through-R3-out permit 20
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
!
end