-
Notifications
You must be signed in to change notification settings - Fork 0
/
vpp-configs.cfg
123 lines (117 loc) · 6.98 KB
/
vpp-configs.cfg
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
d0c-c4-7a-de-da-56 (SM984)
--------------------------
create loop interface
create host-interface name vpp2host
set int state loop0 up
set int state host-vpp2host up
set int state TwentyFiveGigabitEthernet81/0/0 up
set int lldp TwentyFiveGigabitEthernet81/0/0
set int ip address host-vpp2host 10.150.30.1/24
set int ip address TwentyFiveGigabitEthernet81/0/0 2001:4958:1522:ffff:8000::10/67
set ip6 neighbor TwentyFiveGigabitEthernet81/0/0 fe80::f6cc:5500:d9c5:ca80 f4:cc:55:c5:ca:80
ip route add ::/0 via fe80::f6cc:5500:d9c5:ca80 TwentyFiveGigabitEthernet81/0/0
set sr encaps source addr 2001:4958:1522:ffff:8000::10
sr localsid address 2001:4958:1522:ffff:8000::f1 behavior end.dt4 0
sr localsid address 2001:4958:1522:ffff:8000::f2 behavior end.ad nh 2.2.2.1 oif tap1 iif tap0
sr localsid address 2001:4958:1522:ffff:8000::f3 behavior end.ad nh 1.1.1.1 oif tap0 iif tap1
sr policy add bsid b::999:10 next 2001:4958:1522:ffff:2000::f1 encap
sr policy add bsid b::999:20 next 2001:4958:1522:ffff:6000::f1 encap
sr policy add bsid b::999:40 next 2600:1f18:666e:c400:5714:eea0:cbdd:3603 encap
sr policy add bsid b::999:50 next 2001:4958:f8c::a21b:29ff:fefa:f1 encap
sr steer l3 10.150.10.0/24 via sr policy bsid b::999:10
sr steer l3 10.150.20.0/24 via sr policy bsid b::999:20
sr steer l3 10.150.40.0/24 via sr policy bsid b::999:40
sr steer l3 10.150.50.0/24 via sr policy bsid b::999:50
d0c-c4-7a-de-dc-24 (SM995)
--------------------------
create loop interface
create host-interface name vpp2host
set int state loop0 up
set int state host-vpp2host up
set int state TwentyFiveGigabitEthernet81/0/0 up
set int lldp TwentyFiveGigabitEthernet81/0/0
set int ip address host-vpp2host 10.150.20.1/24
set int ip address TwentyFiveGigabitEthernet81/0/0 2001:4958:1522:ffff:6000::10/67
set ip6 neighbor TwentyFiveGigabitEthernet81/0/0 fe80::f6cc:5500:d9c5:ca80 f4:cc:55:c5:ca:80
ip route add ::/0 via fe80::f6cc:5500:d9c5:ca80 TwentyFiveGigabitEthernet81/0/0
set sr encaps source addr 2001:4958:1522:ffff:6000::10
##### sr localsid address 2001:4958:1522:ffff:6000::a2 behavior end.dx2
sr localsid address 2001:4958:1522:ffff:6000::f1 behavior end.dt4 0
sr policy add bsid b::999:10 next 2001:4958:1522:ffff:2000::f1 encap
sr policy add bsid b::999:30 next 2001:4958:1522:ffff:8000::f1 encap
sr policy add bsid b::999:40 next 2600:1f18:666e:c400:5714:eea0:cbdd:3603 encap
sr policy add bsid b::999:50 next 2001:4958:f8c::a21b:29ff:fefa:f1 encap
sr policy add bsid b::999:f1 next 2001:4958:1522:ffff:8000::f2 next 2001:4958:f8c::a21b:29ff:fefa:f1 encap
sr policy add bsid b::999:f4 next 2001:4958:1522:ffff:8000::f3 next 2600:1f18:666e:c400:5714:eea0:cbdd:3603 encap
sr policy add bsid b::999:f2 next 2600:1f18:666e:c400:6c6f:2b12:57a2:f6a7 next 2001:4958:1522:ffff:6000::f1 enca
sr steer l3 10.150.10.0/24 via sr policy bsid b::999:10
sr steer l3 10.150.20.0/24 via sr policy bsid b::999:20
sr steer l3 10.150.30.0/24 via sr policy bsid b::999:30
sr steer l3 10.150.50.0/24 via sr policy bsid b::999:50
[email protected] (AWS)
---------------------------
create loop interface
create host-interface name vpp2host
set int state loop0 up
set int state host-vpp2host up
set int state VirtualFunctionEthernet0/6/0 up
set int state VirtualFunctionEthernet0/7/0 up
set int state VirtualFunctionEthernet0/8/0 up
set int ip address host-vpp2host 10.150.40.1/24
set int ip address VirtualFunctionEthernet0/6/0 2600:1f18:666e:c400:9876:843c:f39a:b92d/64
set int ip address VirtualFunctionEthernet0/7/0 10.150.8.5/24
set int ip address VirtualFunctionEthernet0/8/0 10.150.9.5/24
set ip6 neighbor VirtualFunctionEthernet0/6/0 fe80::1058:8cff:fe06:ac54 12:58:8c:06:ac:54
ip route add ::/0 via fe80::1058:8cff:fe06:ac54 VirtualFunctionEthernet0/6/0
set sr encaps source addr 2600:1f18:666e:c400:9876:843c:f39a:b92d
sr localsid address 2600:1f18:666e:c400:5714:eea0:cbdd:3603 behavior end.dt4 0
sr localsid address 2600:1f18:666e:c400:6c6f:2b12:57a2:f6a7 behavior end.ad nh 10.150.8.15 oif VirtualFunctionEthernet0/7/0 iif VirtualFunctionEthernet0/8/0
sr policy add bsid b::999:10 next 2001:4958:1522:ffff:2000::f1 encap
sr policy add bsid b::999:20 next 2001:4958:1522:ffff:6000::f1 encap
sr policy add bsid b::999:30 next 2001:4958:1522:ffff:8000::f1 encap
sr policy add bsid b::999:50 next 2001:4958:f8c::a21b:29ff:fefa:f1 encap
sr policy add bsid b::999:f1 next 2001:4958:1522:ffff:8000::f2 next 2001:4958:f8c::a21b:29ff:fefa:f1 encap
sr policy add bsid b::999:f2 next 2600:1f18:666e:c400:6c6f:2b12:57a2:f6a7 next 2001:4958:1522:ffff:6000::f1 encap
sr policy add bsid b::999:f4 next 2001:4958:1522:ffff:8000::f3 next 2001:4958:1522:ffff:6000::f1 encap
sr steer l3 10.150.10.0/24 via sr policy bsid b::999:10
sr steer l3 10.150.20.0/24 via sr policy bsid b::999:20
sr steer l3 10.150.30.0/24 via sr policy bsid b::999:30
sr steer l3 10.150.50.0/24 via sr policy bsid b::999:50
vpp-ucpe-1
----------
create loop interface
create host-interface name vpp2host
set int state loop0 up
set int state host-vpp2host up
set int state GigabitEthernet4/0/0 up
set int ip address host-vpp2host 10.150.10.1/24
set int ip address GigabitEthernet4/0/0 2650:a800:fffe::15/127
set int ip address loop0 2001:4958:1522:ffff:2000::1/128
set ip6 neighbor GigabitEthernet4/0/0 ffe80::f6cc:55ff:fec5:ca83 4:cc:55:c5:ca:83
ip route add ::/0 via fe80::f6cc:55ff:fec5:ca83 GigabitEthernet4/0/0
set sr encaps source addr 2001:4958:1522:ffff:2000::1
sr localsid address 2001:4958:1522:ffff:2000::f1 behavior end.dt4 0
sr policy add bsid b::999:20 next 2001:4958:1522:ffff:6000::f1 encap
sr policy add bsid b::999:30 next 2001:4958:1522:ffff:8000::f1 encap
sr policy add bsid b::999:40 next 2600:1f18:666e:c400:5714:eea0:cbdd:3603
sr policy add bsid b::999:50 next 2001:4958:f8c::a21b:29ff:fefa:f1 encap
sr policy add bsid b::999:f1 next 2001:4958:1522:ffff:8000::f2 next 2001:4958:f8c::a21b:29ff:fefa:f1 encap
sr policy add bsid b::999:f2 next 2001:4958:1522:ffff:8000::f2 next 2600:1f18:666e:c400:6c6f:2b12:57a2:f6a7 next 2600:1f18:666e:c400:5714:eea0:cbdd:3603 encap
sr steer l3 10.150.20.0/24 via sr policy bsid b::999:20
sr steer l3 10.150.30.0/24 via sr policy bsid b::999:30
sr steer l3 10.150.40.0/24 via sr policy bsid b::999:40
sr steer l3 10.150.50.0/24 via sr policy bsid b::999:50
vpp-ucpe-3
----------
set sr encaps source addr 2001:4958:f8c::a21b:29ff:fefa:10
sr localsid address 2001:4958:f8c::a21b:29ff:fefa:f1 behavior end.dt4 0
sr policy add bsid b::999:10 next 2001:4958:1522:ffff:2000::f1 encap
sr policy add bsid b::999:20 next 2001:4958:1522:ffff:6000::f1 encap
sr policy add bsid b::999:30 next 2001:4958:1522:ffff:8000::f1 encap
sr policy add bsid b::999:40 next 2600:1f18:666e:c400:5714:eea0:cbdd:3603 encap
sr policy add bsid b::999:f1 next 2600:1f18:666e:c400:6c6f:2b12:57a2:f6a7 next 2600:1f18:666e:c400:5714:eea0:cbdd:3603 encap
sr policy add bsid b::999:f3 next 2001:4958:1522:ffff:8000::f3 next 2001:4958:1522:ffff:6000::f1 encap
sr steer l3 10.150.10.0/24 via sr policy bsid c::999:10
sr steer l3 10.150.20.0/24 via sr policy bsid c::999:20
sr steer l3 10.150.30.0/24 via sr policy bsid c::999:30
sr steer l3 10.150.40.0/24 via sr policy bsid c::999:40