-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathjunos-qfx.config
95 lines (92 loc) · 2.06 KB
/
junos-qfx.config
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
# BGP Session Culling Example - Juniper Junos QFX
# Culling type: Involuntary BGP Session Teardown
> show configuration firewall family ethernet-switching filter cull
term cull-v4-ingress {
from {
ip-version {
ipv4 {
source-port 179;
ip-source-address {
192.0.2.0/24;
}
ip-destination-address {
192.0.2.0/24;
}
ip-protocol tcp;
}
}
}
then discard;
}
term cull-v4-egress {
from {
ip-version {
ipv4 {
destination-port 179;
ip-source-address {
192.0.2.0/24;
}
ip-destination-address {
192.0.2.0/24;
}
ip-protocol tcp;
}
}
}
then discard;
}
term cull-v6-ingress {
from {
ip-version {
ipv6 {
next-header tcp;
source-port 179;
ip6-source-address {
2001:db8:2::/64;
}
ip6-destination-address {
2001:db8:2::/64;
}
}
}
}
then discard;
}
term cull-v6-egress {
from {
ip-version {
ipv6 {
next-header tcp;
destination-port 179;
ip6-source-address {
2001:db8:2::/64;
}
ip6-destination-address {
2001:db8:2::/64;
}
}
}
}
then discard;
}
term rest {
then accept;
}
/* cull bgp sessions across a single port */
> show configuration interfaces xe-0/0/46
description "IXP Participant Affected by Maintenance"
unit 0 {
family ethernet-switching {
filter {
input cull;
}
}
}
/* cull sessions passing through the whole device */
> show vlans public-ixp
description "IXP vlan";
forwarding-options {
filter {
input cull;
}
}