-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-bb6.sh
executable file
·173 lines (173 loc) · 4.02 KB
/
config-bb6.sh
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
#!/usr/bin/env bash
FastCli -p 15 -c "configure
prompt %H.%D{%H:%M:%S}%P
alias agents bash ls -lrt /var/log/agents/
alias c bash clear
alias core bash ls -lrt /var/core/
alias d show interfaces description | grep -v 'not\|down'
alias log bash sudo tail -f /var/log/messages | grep -v -i xcvr
alias m show run section monitor
alias qt bash ls -lrt /var/log/qt/
alias senz show interface counter error | nz
alias shmc show int | awk '/^[A-Z]/ { intf = \$1 } /, address is/ { print intf, \$6 }'
alias snz show interface counter | nz
alias spd show port-channel %1 detail all
alias sqnz show interface counter queue | nz
alias srnz show interface counter rate | nz
alias top show proc top
!
no schedule tech-support
!
transceiver qsfp default-mode 4x10G
!
hostname bb6
!
spanning-tree mode mstp
!
aaa authorization exec default local
!
username vagrant privilege 15 role network-admin secret vagrant
!
vrf definition tenant-a
!
vrf definition tenant-b
!
interface Ethernet1
no switchport
ip address 46.0.0.6/24
isis enable sr_instance
isis network point-to-point
!
interface Ethernet2
no switchport
ip address 46.0.1.6/24
isis enable sr_instance
isis network point-to-point
!
interface Ethernet3
no switchport
ip address 56.0.0.6/24
isis enable sr_instance
isis network point-to-point
!
interface Ethernet4
no switchport
ip address 10.10.10.2/24
isis enable sr_instance
isis network point-to-point
isis metric maximum
!
interface Loopback0
ip address 6.6.6.6/32
isis enable sr_instance
node-segment ipv4 index 6
!
interface Loopback1
ip address 6.6.6.66/32
!
interface Loopback2
description test loopback in tenant-a
vrf forwarding tenant-a
ip address 192.168.168.253/32
!
interface Loopback200
ip address 6.6.6.200/32
isis enable sr_instance
!
interface Management1
ip address 10.0.2.15/24
!
ip routing
ip routing vrf tenant-b
ip routing vrf tenant-a
!
ip prefix-list Controller-LAN
seq 10 permit 10.10.10.0/24
!
ip prefix-list LDP-FECs
seq 1 permit 2.2.2.200/32
seq 2 permit 1.1.1.200/32
seq 3 permit 3.3.3.200/32
seq 4 permit 4.4.4.200/32
seq 5 permit 5.5.5.200/32
seq 6 permit 6.6.6.200/32
!
ip prefix-list Lo2
seq 10 permit 6.6.6.67/32
!
ip prefix-list MATCH-ALL
seq 10 permit 0.0.0.0/0 le 32
!
ip prefix-list default
seq 10 permit 0.0.0.0/0
!
mpls ip
!
mpls ldp
router-id 6.6.6.6
transport-address interface Loopback200
fec filter prefix-list LDP-FECs
no shutdown
!
mpls label range isis-sr 800000 4096
!
route-map PROXY-SID-Lo2 permit 10
match ip address prefix-list lo2
set community 11:66
set segment-index 67
!
route-map PROXY-SID-Lo2 permit 20
match ip address prefix-list MATCH-ALL
!
route-map Redistribute-Statics permit 1
match ip address prefix-list Controller-LAN
set metric 240
!
route-map SET-LOCAL-PREF permit 1
set local-preference 150
set distance 5
!
route-map SR-NODE-LABEL permit 10
description node label index for BB6-lo1
set segment-index 66
!
route-map default_only permit 10
match ip address prefix-list default
!
router bgp 64512
router-id 6.6.6.6
maximum-paths 128
neighbor 1.1.1.1 remote-as 64512
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 send-community extended
neighbor 1.1.1.1 maximum-routes 12000
neighbor 10.10.10.10 remote-as 64512
neighbor 10.10.10.10 update-source Loopback0
neighbor 10.10.10.10 maximum-routes 12000
!
address-family ipv4 labeled-unicast
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 next-hop-self source-interface Loopback0
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 route-map SET-LOCAL-PREF in
network 6.6.6.66/32 route-map SR-NODE-LABEL
!
router isis sr_instance
net 49.0001.0006.0006.0006.00
is-type level-2
log-adjacency-changes
redistribute static route-map Redistribute-Statics
!
address-family ipv4 unicast
!
segment-routing mpls
router-id 6.6.6.6
no shutdown
!
management api http-commands
no shutdown
protocol http
no shutdown
!
end
copy running-config startup-config"