1 | version 8.2R1.7; |
---|
2 | system { |
---|
3 | host-name gateway1; |
---|
4 | domain-name ent2.com; |
---|
5 | domain-search ent2.com; |
---|
6 | time-zone Europe/Paris; |
---|
7 | root-authentication { |
---|
8 | encrypted-password "$1$wn7d2FVT$GfXKfK5Cfr3OumGJWm6j.1"; |
---|
9 | } |
---|
10 | name-server { |
---|
11 | 10.40.2.31; |
---|
12 | 2001:db8:4:441::31; |
---|
13 | } |
---|
14 | login { |
---|
15 | user telnet { |
---|
16 | full-name "root via telnet"; |
---|
17 | uid 100; |
---|
18 | class super-user; |
---|
19 | authentication { |
---|
20 | encrypted-password "$1$0xekmMef$PccF3OiUuLNHOzA94TxNB0"; |
---|
21 | } |
---|
22 | } |
---|
23 | } |
---|
24 | services { |
---|
25 | ssh; |
---|
26 | telnet; |
---|
27 | web-management { |
---|
28 | http { |
---|
29 | interface fe-0/0/1.0; |
---|
30 | } |
---|
31 | } |
---|
32 | } |
---|
33 | syslog { |
---|
34 | user * { |
---|
35 | any emergency; |
---|
36 | } |
---|
37 | file messages { |
---|
38 | any any; |
---|
39 | authorization info; |
---|
40 | } |
---|
41 | file interactive-commands { |
---|
42 | interactive-commands any; |
---|
43 | } |
---|
44 | } |
---|
45 | } |
---|
46 | interfaces { |
---|
47 | fe-0/0/0 { |
---|
48 | vlan-tagging; |
---|
49 | unit 0 { |
---|
50 | vlan-id 442; |
---|
51 | family inet { |
---|
52 | address 10.40.30.1/30; |
---|
53 | } |
---|
54 | family inet6 { |
---|
55 | address 2001:db8:4:442::1/64; |
---|
56 | } |
---|
57 | } |
---|
58 | } |
---|
59 | fe-0/0/1 { |
---|
60 | vlan-tagging; |
---|
61 | unit 0 { |
---|
62 | vlan-id 444; |
---|
63 | family inet { |
---|
64 | address 10.40.254.2/29; |
---|
65 | } |
---|
66 | family inet6 { |
---|
67 | address 2001:db8:4:444::2/64; |
---|
68 | } |
---|
69 | } |
---|
70 | } |
---|
71 | lo0 { |
---|
72 | unit 0 { |
---|
73 | family inet { |
---|
74 | address 127.0.0.1/32; |
---|
75 | } |
---|
76 | family inet6 { |
---|
77 | address ::1/128; |
---|
78 | } |
---|
79 | } |
---|
80 | } |
---|
81 | } |
---|
82 | snmp { |
---|
83 | community public { |
---|
84 | authorization read-only; |
---|
85 | } |
---|
86 | } |
---|
87 | routing-options { |
---|
88 | rib inet6.0 { |
---|
89 | static { |
---|
90 | defaults { |
---|
91 | metric 10; |
---|
92 | preference 10; |
---|
93 | } |
---|
94 | route ::/0 { |
---|
95 | next-hop 2001:db8:4:442::2; |
---|
96 | retain; |
---|
97 | readvertise; |
---|
98 | } |
---|
99 | route 2001:db8:4:445::/64 { |
---|
100 | next-hop 2001:db8:4:444::1; |
---|
101 | retain; |
---|
102 | readvertise; |
---|
103 | } |
---|
104 | route 2001:db8:4:441::/64 { |
---|
105 | next-hop 2001:db8:4:442::2; |
---|
106 | retain; |
---|
107 | readvertise; |
---|
108 | } |
---|
109 | } |
---|
110 | } |
---|
111 | static { |
---|
112 | route 10.40.1.0/24 next-hop 10.40.254.1; |
---|
113 | route 0.0.0.0/0 next-hop 10.40.30.2; |
---|
114 | } |
---|
115 | router-id 10.40.254.2; |
---|
116 | autonomous-system 65004; |
---|
117 | } |
---|
118 | protocols { |
---|
119 | bgp { |
---|
120 | group AS3-IPv6 { |
---|
121 | type external; |
---|
122 | export lan; |
---|
123 | peer-as 65003; |
---|
124 | neighbor 2001:db8:3:340::5 { |
---|
125 | multihop; |
---|
126 | } |
---|
127 | } |
---|
128 | } |
---|
129 | ospf { |
---|
130 | export lan; |
---|
131 | area 0.0.0.0 { |
---|
132 | interface fe-0/0/0.0; |
---|
133 | } |
---|
134 | } |
---|
135 | } |
---|
136 | policy-options { |
---|
137 | policy-statement lan { |
---|
138 | term 0 { |
---|
139 | from { |
---|
140 | protocol static; |
---|
141 | route-filter ::/0 exact; |
---|
142 | } |
---|
143 | then reject; |
---|
144 | } |
---|
145 | term 1 { |
---|
146 | from protocol static; |
---|
147 | then accept; |
---|
148 | } |
---|
149 | } |
---|
150 | } |
---|
151 | |
---|