1 | version 8.2R1.7; |
---|
2 | system { |
---|
3 | host-name gateway2; |
---|
4 | domain-name ent2.com; |
---|
5 | domain-search ent2.com; |
---|
6 | time-zone Europe/Paris; |
---|
7 | root-authentication { |
---|
8 | encrypted-password "$1$V1S5BP9J$AxMXkZXYl6oxEHvB9L7gX/"; |
---|
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$1fzmWH6i$wpCnNZ5j9CRMpljtZ1sE01"; |
---|
21 | } |
---|
22 | } |
---|
23 | } |
---|
24 | services { |
---|
25 | telnet; |
---|
26 | web-management { |
---|
27 | http { |
---|
28 | interface fe-0/0/1.0; |
---|
29 | } |
---|
30 | } |
---|
31 | } |
---|
32 | syslog { |
---|
33 | user * { |
---|
34 | any emergency; |
---|
35 | } |
---|
36 | file messages { |
---|
37 | any any; |
---|
38 | authorization info; |
---|
39 | } |
---|
40 | file interactive-commands { |
---|
41 | interactive-commands any; |
---|
42 | } |
---|
43 | } |
---|
44 | } |
---|
45 | interfaces { |
---|
46 | fe-0/0/0 { |
---|
47 | vlan-tagging; |
---|
48 | unit 0 { |
---|
49 | vlan-id 443; |
---|
50 | family inet { |
---|
51 | address 10.40.30.5/30; |
---|
52 | } |
---|
53 | family inet6 { |
---|
54 | address 2001:db8:4:443::1/64; |
---|
55 | } |
---|
56 | } |
---|
57 | } |
---|
58 | fe-0/0/1 { |
---|
59 | vlan-tagging; |
---|
60 | unit 0 { |
---|
61 | vlan-id 444; |
---|
62 | family inet { |
---|
63 | address 10.40.254.3/29; |
---|
64 | } |
---|
65 | family inet6 { |
---|
66 | address 2001:db8:4:444::3/64; |
---|
67 | } |
---|
68 | } |
---|
69 | } |
---|
70 | lo0 { |
---|
71 | unit 0 { |
---|
72 | family inet { |
---|
73 | address 127.0.0.1/32; |
---|
74 | } |
---|
75 | family inet6 { |
---|
76 | address ::1/128; |
---|
77 | } |
---|
78 | } |
---|
79 | } |
---|
80 | } |
---|
81 | snmp { |
---|
82 | community public { |
---|
83 | authorization read-only; |
---|
84 | } |
---|
85 | } |
---|
86 | routing-options { |
---|
87 | rib inet6.0 { |
---|
88 | static { |
---|
89 | defaults { |
---|
90 | metric 10; |
---|
91 | preference 10; |
---|
92 | } |
---|
93 | route ::/0 { |
---|
94 | next-hop 2001:db8:4:443::2; |
---|
95 | retain; |
---|
96 | readvertise; |
---|
97 | } |
---|
98 | route 2001:db8:4:445::/64 { |
---|
99 | next-hop 2001:db8:4:444::1; |
---|
100 | retain; |
---|
101 | readvertise; |
---|
102 | } |
---|
103 | } |
---|
104 | } |
---|
105 | static { |
---|
106 | route 10.40.1.0/24 next-hop 10.40.254.1; |
---|
107 | route 0.0.0.0/0 next-hop 10.40.30.6; |
---|
108 | } |
---|
109 | } |
---|
110 | protocols { |
---|
111 | ospf { |
---|
112 | export lan; |
---|
113 | area 0.0.0.0 { |
---|
114 | interface fe-0/0/0.0; |
---|
115 | } |
---|
116 | } |
---|
117 | } |
---|
118 | policy-options { |
---|
119 | policy-statement lan { |
---|
120 | term 1 { |
---|
121 | from protocol static; |
---|
122 | then accept; |
---|
123 | } |
---|
124 | } |
---|
125 | } |
---|
126 | |
---|