bng.conf 4.14 KB
Newer Older
Marcel Wiget's avatar
Marcel Wiget committed
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
system {
    configuration-database {
        max-db-size 2572864;
    }
    services {
        dhcp-local-server {
            pool-match-order {
                ip-address-first;
            }
            group local {
                interface ge-0/0/0.0;
                interface ps0.0;
            }
        }
        subscriber-management {
            enable;
        }
    }
    processes {
        general-authentication-service {
            traceoptions {
                file auth.log;
                flag all;
            }
        }
        dhcp-service {
            traceoptions {
                file dhcprelay.log size 100000000;
                level all;
                flag all;
            }
        }
    }
    ddos-protection {
        global {
            disable-routing-engine;
        }
    }
}
dynamic-profiles {
    PROF-QINQ {
        interfaces {
            "$junos-interface-ifd-name" {
                unit "$junos-interface-unit" {
                    no-traps;
                    vlan-tags outer "$junos-stacked-vlan-id" inner "$junos-vlan-id";
                    family inet {
                        unnumbered-address lo0.0 preferred-source-address 172.20.0.1;
                    }
                }
            }
        }
    }
}
chassis {
    pseudowire-service {
        device-count 1024;
    }
    fpc 0 {
        pic 0 {
            tunnel-services {
                bandwidth 10g;
            }
        }
    }
    network-services enhanced-ip;
}
access-profile local;
interfaces {
    ge-0/0/0 {
        description "diret attached subscribers";
        flexible-vlan-tagging;
        auto-configure {
            stacked-vlan-ranges {
                dynamic-profile PROF-QINQ {
                    accept [ inet pppoe ];
                    ranges {
                        1-4094,1-4094;
                    }
                    access-profile local;
                }
            }
            remove-when-no-subscribers;
        }
    }
    ge-0/0/1 {
        description "mpls interface";
        unit 0 {
            family inet {
                address 10.10.0.10/24;
            }
            family mpls;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 10.10.10.10/32 {
                    primary;
                }
                address 172.20.0.1/32 {
                    preferred;
                }
            }
            family mpls;
        }
    }
    ps0 {
        anchor-point {
            lt-0/0/0;
        }
        flexible-vlan-tagging;
        auto-configure {
            stacked-vlan-ranges {
                dynamic-profile PROF-QINQ {
                    accept [ inet pppoe ];
                    ranges {
                        any,any;
                    }
                }
                access-profile local;
            }
            remove-when-no-subscribers;
        }
        mtu 1530;
        no-gratuitous-arp-request;
        unit 0 {
            encapsulation ethernet-ccc;
        }
    }
}
protocols {
    l2iw;
    mpls {
        interface all;
        interface fxp0.0 {
            disable;
        }
        interface lo0.0;
    }
    ospf {
        area 0.0.0.0 {
            interface all;
            interface lo0.0 {
                passive;
            }
            interface fxp0.0 {
                disable;
            }
        }
    }
    ldp {
        interface all;
        interface fxp0.0 {
            disable;
        }
    }
    l2circuit {
        neighbor 10.10.10.11 {
            interface ps0.0 {
                virtual-circuit-id 10;
                no-control-word;
                ignore-encapsulation-mismatch;
                ignore-mtu-mismatch;
            }
        }
    }
}
access {
    profile local {
        authentication-order none;
    }
    address-assignment {
        pool 1 {
            family inet {
                network 172.20.0.0/8;
                range Sub-range-0 {
                    low 172.20.0.1;
                    high 172.20.255.255;
                }
                dhcp-attributes {
                    maximum-lease-time 25200;
                }
            }
        }
    }
}
188
apply-groups openjnpr-container-vmx;