forked from FRRouting/frr
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request FRRouting#17369 from louis-6wind/bgp_vpnv4_route_l…
…eak_basic tests: add bgp_vpnv4_route_leak_basic
- Loading branch information
Showing
3 changed files
with
609 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
int dummy0 | ||
ip address 10.0.4.1/24 | ||
no shut | ||
! | ||
int dummy1 | ||
ip address 10.0.0.1/24 | ||
no shut | ||
! | ||
int dummy2 | ||
ip address 10.0.1.1/24 | ||
no shut | ||
! | ||
int dummy3 | ||
ip address 10.0.2.1/24 | ||
no shut | ||
! | ||
int dummy4 | ||
ip address 10.0.3.1/24 | ||
no shut | ||
! | ||
int EVA | ||
no shut | ||
! | ||
int DONNA | ||
no shut | ||
! | ||
ip router-id 10.0.4.1 | ||
! | ||
router bgp 99 | ||
no bgp ebgp-requires-policy | ||
address-family ipv4 unicast | ||
redistribute connected | ||
rd vpn export 10.0.4.1:1 | ||
rt vpn export 10.0.4.1:1 | ||
rt vpn import 10.0.4.1:101 | ||
export vpn | ||
import vpn | ||
! | ||
! | ||
router bgp 99 vrf DONNA | ||
no bgp ebgp-requires-policy | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export 101 | ||
rd vpn export 10.0.4.1:1 | ||
rt vpn export 10.0.4.1:101 | ||
rt vpn import 10.0.4.1:1 10.0.4.1:102 10.0.4.1:103 | ||
export vpn | ||
import vpn | ||
! | ||
! | ||
router bgp 99 vrf EVA | ||
no bgp ebgp-requires-policy | ||
address-family ipv4 unicast | ||
redistribute connected | ||
label vpn export 102 | ||
rd vpn export 10.0.4.1:1 | ||
rt vpn export 10.0.4.1:102 | ||
rt vpn import 10.0.4.1:101 10.0.4.1:103 | ||
export vpn | ||
import vpn | ||
! | ||
! | ||
router bgp 99 vrf ZITA | ||
no bgp ebgp-requires-policy | ||
no bgp network import-check | ||
address-family ipv4 unicast | ||
network 172.16.101.0/24 | ||
label vpn export 103 | ||
rd vpn export 10.0.4.1:1 | ||
rt vpn export 10.0.4.1:103 | ||
export vpn | ||
import vpn | ||
! | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
ip link add DONNA type vrf table 1001 | ||
ip link add EVA type vrf table 1002 | ||
|
||
ip link add dummy0 type dummy # vrf default | ||
ip link add dummy1 type dummy | ||
ip link add dummy2 type dummy | ||
ip link add dummy3 type dummy | ||
ip link add dummy4 type dummy | ||
|
||
ip link set dummy1 master DONNA | ||
ip link set dummy2 master EVA | ||
ip link set dummy3 master DONNA | ||
ip link set dummy4 master EVA | ||
|
||
|
Oops, something went wrong.