-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-tor-switch.cfg
24 lines (22 loc) · 1.19 KB
/
sample-tor-switch.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
#QFX switches
set interfaces ge-0/0/4 mtu 9216
set interfaces ge-0/0/4 unit 0 family ethernet-switching interface-mode access
set interfaces ge-0/0/4 unit 0 family ethernet-switching vlan members SERVERS
set interfaces irb mtu 9216
set interfaces irb unit 1 family inet mtu 9000
set interfaces irb unit 1 family inet address 10.1.1.1/24
set interfaces lo0 unit 0 family inet address 10.1.1.4/32
set routing-options router-id 10.1.1.4
set routing-options autonomous-system 60001
set protocols bgp graceful-restart
set protocols bgp group CONTRAIL import CONTRAIL_IN_POLICY
set protocols bgp group CONTRAIL export CONTRAIL_OUT_POLICY
set protocols bgp group CONTRAIL peer-as 64520
set protocols bgp group CONTRAIL multipath multiple-as
set protocols bgp group CONTRAIL allow 10.1.7.1/24
set policy-options policy-statement CONTRAIL_IN_POLICY term EXABGP from route-filter 10.1.3.0/22 prefix-length-range /32-/32
set policy-options policy-statement CONTRAIL_IN_POLICY term EXABGP then accept
set policy-options policy-statement CONTRAIL_IN_POLICY term REJECT then reject
set policy-options policy-statement CONTRAIL_OUT_POLICY term REJECT_ALL then reject
set vlans SERVERS vlan-id 1
set vlans SERVERS l3-interface irb.1