2025-02-05 10:03:58 +01:00
|
|
|
!
|
|
|
|
int r1-eth0
|
|
|
|
ip address 192.168.1.1/24
|
|
|
|
!
|
|
|
|
router bgp 65001
|
|
|
|
no bgp ebgp-requires-policy
|
2025-02-05 10:17:20 +01:00
|
|
|
no bgp network import-check
|
2025-02-05 10:03:58 +01:00
|
|
|
neighbor 192.168.1.2 remote-as external
|
|
|
|
neighbor 192.168.1.2 timers 1 3
|
|
|
|
neighbor 192.168.1.2 timers connect 1
|
|
|
|
neighbor 192.168.1.2 oad
|
|
|
|
neighbor 192.168.1.4 remote-as external
|
|
|
|
neighbor 192.168.1.4 timers 1 3
|
|
|
|
neighbor 192.168.1.4 timers connect 1
|
|
|
|
address-family ipv4 unicast
|
2025-02-05 10:17:20 +01:00
|
|
|
network 10.10.10.1/32 route-map local
|
2025-02-05 10:03:58 +01:00
|
|
|
neighbor 192.168.1.4 route-map r4 in
|
|
|
|
exit-address-family
|
|
|
|
!
|
|
|
|
route-map r4 permit 10
|
|
|
|
set local-preference 123
|
|
|
|
set metric 123
|
2025-02-05 10:17:20 +01:00
|
|
|
!
|
|
|
|
route-map local permit 10
|
|
|
|
set community no-export
|
|
|
|
!
|