VLAN1能上网,但VLAN2不能上网。VLAN2的电脑能ping通外网,已设DNS,也能ping通。VLAN2就是上不了网。要如何设置?
1.#
2. version 7.1.064, Release 0707P19
3.#
4. sysname H3C
5.#
6. clock timezone Lisbon add 00:00:00
7. clock protocol none
8.#
9. dialer-group 1 rule ip permit
10. dialer-group 2 rule ip permit
11. dialer-group 3 rule ip permit
12.#
13. dhcp enable
14. dhcp server always-broadcast
15.#
16. dns proxy enable
17.#
18. password-recovery enable
19.#
20.vlan 1
21.#
22.vlan 2
23.#
24.dhcp server ip-pool Vlan-interface2
25. gateway-list 172.16.1.1
26. network 172.16.1.0 mask 255.255.255.0
27. address range 172.16.1.100 172.16.1.200
28. dns-list 202.96.128.86 202.96.128.166
29.#
30.dhcp server ip-pool lan1
31. gateway-list 172.16.0.1
32. network 172.16.0.0 mask 255.255.255.0
33. address range 172.16.0.100 172.16.0.200
34. dns-list 202.96.128.86 202.96.128.166
35.#
36.controller Cellular0/0
37.#
38.interface Dialer0
39. bandwidth 100000
40. ppp chap password cipher $c$3$EKDsmMa+tuNGk8yzQU5kkw3oTtCGy9fbq0kj
41. ppp chap user 07580220804@163.gd
42. ppp ipcp dns admit-any
43. ppp ipcp dns request
44. ppp pap local-user 07580220804@163.gd password cipher $c$3$4Em3EMM5mZokH4des5uQw1XzDLqi0oJOqNMb
45. dialer bundle enable
46. dialer-group 1
47. dialer timer idle 0
48. dialer timer autodial 5
49. ip address ppp-negotiate
50. nat outbound
51.#
52.interface Dialer1
53. bandwidth 100000
54. ppp chap password cipher $c$3$3mGMEUzpyD3vWDTmwxyeIRo74kVdW90Un+Bk
55. ppp chap user zqLAN7732283@163.gd
56. ppp ipcp dns admit-any
57. ppp ipcp dns request
58. ppp pap local-user zqLAN7732283@163.gd password cipher $c$3$0HJ4L/HxZyKKbhdLI4Kvmvr4WfTut0e2BG+z
59. dialer bundle enable
60. dialer-group 2
61. dialer timer idle 0
62. dialer timer autodial 5
63. ip address ppp-negotiate
64. nat outbound
65.#
66.interface Dialer2
67. bandwidth 100000
68. ppp chap password cipher $c$3$GmH/3inP7MWm/QwPgV44XKW5RZwXbPLdB1z4
69. ppp chap user 07580038105@163.gd
70. ppp ipcp dns admit-any
71. ppp ipcp dns request
72. ppp pap local-user 07580038105@163.gd password cipher $c$3$cBdxJhVDjWsrmjgc/rqrpX09f6plTv095QWn
73. dialer bundle enable
74. dialer-group 3
75. dialer timer idle 0
76. dialer timer autodial 5
77. ip address ppp-negotiate
78. nat outbound
79.#
80.interface NULL0
81.#
82.interface Vlan-interface1
83. ip address 172.16.0.1 255.255.255.0
84. tcp mss 1280
85.#
86.interface Vlan-interface2
87. ip address 172.16.1.1 255.255.255.0
88.#
89.interface GigabitEthernet0/0
90. port link-mode route
91. description Multiple_Line
92. pppoe-client dial-bundle-number 0
93.#
94.interface GigabitEthernet0/1
95. port link-mode route
96. description Multiple_Line
97. pppoe-client dial-bundle-number 1
98.#
99.interface GigabitEthernet0/2
100. port link-mode route
101. description Multiple_Line
102. pppoe-client dial-bundle-number 2
103.#
104.interface GigabitEthernet0/27
105. port link-mode route
106.#
107.interface GigabitEthernet0/28
108. port link-mode route
109.#
110.interface GigabitEthernet0/3
111. port link-mode bridge
112.#
113.interface GigabitEthernet0/4
114. port link-mode bridge
115. port access vlan 2
116.#
117.interface GigabitEthernet0/5
118. port link-mode bridge
119. port access vlan 2
120.#
121.interface GigabitEthernet0/6
122. port link-mode bridge
123. port access vlan 2
124.#
125.interface GigabitEthernet0/7
126. port link-mode bridge
127. port access vlan 2
128.#
129.interface GigabitEthernet0/8
130. port link-mode bridge
131. port access vlan 2
132.#
133.interface GigabitEthernet0/9
134. port link-mode bridge
135. port access vlan 2
136.#
137.interface GigabitEthernet0/10
138. port link-mode bridge
139. port access vlan 2
140.#
141.interface GigabitEthernet0/11
142. port link-mode bridge
143. port access vlan 2
144.#
145.interface GigabitEthernet0/12
146. port link-mode bridge
147. port access vlan 2
148.#
149.interface GigabitEthernet0/13
150. port link-mode bridge
151. port access vlan 2
152.#
153.interface GigabitEthernet0/14
154. port link-mode bridge
155. port access vlan 2
156.#
157.interface GigabitEthernet0/15
158. port link-mode bridge
159. port access vlan 2
160.#
161.interface GigabitEthernet0/16
162. port link-mode bridge
163. port access vlan 2
164.#
165.interface GigabitEthernet0/17
166. port link-mode bridge
167. port access vlan 2
168.#
169.interface GigabitEthernet0/18
170. port link-mode bridge
171. port access vlan 2
172.#
173.interface GigabitEthernet0/19
174. port link-mode bridge
175. port access vlan 2
176.#
177.interface GigabitEthernet0/20
178. port link-mode bridge
179. port access vlan 2
180.#
181.interface GigabitEthernet0/21
182. port link-mode bridge
183. port access vlan 2
184.#
185.interface GigabitEthernet0/22
186. port link-mode bridge
187. port access vlan 2
188.#
189.interface GigabitEthernet0/23
190. port link-mode bridge
191. port access vlan 2
192.#
193.interface GigabitEthernet0/24
194. port link-mode bridge
195. port access vlan 2
196.#
197.interface GigabitEthernet0/25
198. port link-mode bridge
199. port access vlan 2
200.#
201.interface GigabitEthernet0/26
202. port link-mode bridge
203. port access vlan 2
204.#
205. scheduler logfile size 16
206.#
207.line class console
208. user-role network-admin
209.#
210.line class tty
211. user-role network-operator
212.#
213.line class usb
214. user-role network-admin
215.#
216.line class vty
217. user-role network-operator
218.#
219.line con 0
220. user-role network-admin
221.#
222.line vty 0 63
223. authentication-mode scheme
224. user-role network-operator
225.#
226. ip route-static 0.0.0.0 0 Dialer0
227. ip route-static 0.0.0.0 0 Dialer1
228. ip route-static 0.0.0.0 0 Dialer2
229.#
230. password-control enable
231. undo password-control aging enable
232. undo password-control history enable
233. password-control length 6
234. password-control login-attempt 3 exceed lock-time 10
235. password-control update-interval 0
236. password-control login idle-time 0
237. password-control complexity user-name check
238.#
239.domain system
240.#
241. domain default enable system
242.#
243.role name level-0
244. description Predefined level-0 role
245.#
246.role name level-1
247. description Predefined level-1 role
248.#
249.role name level-2
250. description Predefined level-2 role
251.#
252.role name level-3
253. description Predefined level-3 role
254.#
255.role name level-4
256. description Predefined level-4 role
257.#
258.role name level-5
259. description Predefined level-5 role
260.#
261.role name level-6
262. description Predefined level-6 role
263.#
264.role name level-7
265. description Predefined level-7 role
266.#
267.role name level-8
268. description Predefined level-8 role
269.#
270.role name level-9
271. description Predefined level-9 role
272.#
273.role name level-10
274. description Predefined level-10 role
275.#
276.role name level-11
277. description Predefined level-11 role
278.#
279.role name level-12
280. description Predefined level-12 role
281.#
282.role name level-13
283. description Predefined level-13 role
284.#
285.role name level-14
286. description Predefined level-14 role
287.#
288.user-group system
289.#
290.local-user admin class manage
291. service-type telnet http
292. authorization-attribute user-role network-admin
293.#
294. ip http enable
295.#
296.wlan global-configuration
297.#
298.wlan ap-group default-group
299. vlan 1
300.#
301. cloud-management server domain oasis.h3c.com
302.#
303.return
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
为何VLAN1能上网,VLAN1和VLAN2有那方面的区别?
把这路由器放到下一级,WAN用固定地址就没有问题,VLAN2能上网。
你说的应该就是网页打不开吧 。从配置里面看 VLAN 1接口下面配了TCP MSS ,vlan2接口下没配
很可能就是这个。
成功了,少了 TCP MSS。