• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

s5120 设置了vlan 开启DHCP 连接好路由器可以上网,vlan1和vlan2 不通

2021-03-21提问
  • 0关注
  • 1收藏,954浏览
粉丝:0人 关注:0人

问题描述:

s5120 设置了vlan 开启DHCP 连接好路由器可以上网,

vlan20和vlan30 客户端之间需要互访,现在ping不通,如何设置   

组网及组网描述:

    1. vlan2 192.168.20.0 

    2.  vlan3 192.168.30.0 

    3. 客户端 都可以上网,可以ping 对方网关 20.1/30.1 

    4. 现在客户端之间不能访问

    5. 我需要两个网段可以互访



    6. sysname H3C
    7. #
    8. telnet server enable
    9. #
    10. irf mac-address persistent timer
    11. irf auto-update enable
    12. undo irf link-delay
    13. irf member 1 priority 1
    14. irf member 2 priority 1
    15. #
    16. dhcp enable
    17. #
    18. lldp global enable
    19. #
    20. password-recovery enable
    21. #
    22. vlan 1
    23. #
    24. vlan 2 to 3
    25. #
    26. vlan 5 to 6
    27. #
    28. irf-port 1/1
    29. port group interface GigabitEthernet1/0/51 mode normal
    30. port group interface GigabitEthernet1/0/52 mode normal
    31. #
    32. irf-port 2/2
    33. port group interface GigabitEthernet2/0/27 mode normal
    34. port group interface GigabitEthernet2/0/28 mode normal
    35. #
    36. stp global enable
    37. #
    38. dhcp server ip-pool 20
    39. gateway-list 192.168.20.1
    40. network 192.168.20.0 mask 255.255.254.0
    41. dns-list 202.96.128.166 202.96.134.133
    42. #
    43. dhcp server ip-pool 30
    44. gateway-list 192.168.30.1
    45. network 192.168.30.0 mask 255.255.254.0
    46. dns-list 202.96.128.166 202.96.134.133
    47. static-bind ip-address 192.168.31.254 mask 255.255.254.0 client-identifier 01b4-2e99-8b51-e0
    48. #
    49. dhcp server ip-pool 100
    50. gateway-list 192.168.100.2
    51. network 192.168.100.0 mask 255.255.254.0
    52. dns-list 202.96.128.166
    53. #
    54. interface NULL0
    55. #
    56. interface Vlan-interface1
    57. ip address 192.168.100.2 255.255.255.0
    58. #
    59. interface Vlan-interface2
    60. ip address 192.168.20.1 255.255.254.0
    61. #
    62. interface Vlan-interface3
    63. ip address 192.168.30.1 255.255.254.0
    64. #
    65. interface Vlan-interface5
    66. ip address 10.0.0.20 255.255.255.0
    67. undo dhcp select server
    68. #
    69. interface Vlan-interface6
    70. ip address 10.0.1.20 255.255.255.0
    71. undo dhcp select server
    72. #
    73. interface GigabitEthernet1/0/1
    74. port access vlan 3
    75. #
    76. interface GigabitEthernet1/0/2
    77. port access vlan 3
    78. #
    79. interface GigabitEthernet1/0/3
    80. port access vlan 3
    81. #
    82. interface GigabitEthernet1/0/4
    83. port access vlan 3
    84. #
    85. interface GigabitEthernet1/0/5
    86. port access vlan 3
    87. #
    88. interface GigabitEthernet1/0/6
    89. port access vlan 3
    90. #
    91. interface GigabitEthernet1/0/7
    92. port access vlan 3
    93. #
    94. interface GigabitEthernet1/0/8
    95. port access vlan 3
    96. #
    97. interface GigabitEthernet1/0/9
    98. port access vlan 3
    99. #
    100. interface GigabitEthernet1/0/10
    101. port access vlan 3
    102. #
    103. interface GigabitEthernet1/0/11
    104. port access vlan 3
    105. #
    106. interface GigabitEthernet1/0/12
    107. port access vlan 3
    108. #
    109. interface GigabitEthernet1/0/13
    110. port access vlan 3
    111. #
    112. interface GigabitEthernet1/0/14
    113. port access vlan 3
    114. #
    115. interface GigabitEthernet1/0/15
    116. port access vlan 3
    117. #
    118. interface GigabitEthernet1/0/16
    119. port access vlan 3
    120. #
    121. interface GigabitEthernet1/0/17
    122. port access vlan 3
    123. #
    124. interface GigabitEthernet1/0/18
    125. port access vlan 3
    126. #
    127. interface GigabitEthernet1/0/19
    128. port access vlan 3
    129. #
    130. interface GigabitEthernet1/0/20
    131. port access vlan 3
    132. #
    133. interface GigabitEthernet1/0/21
    134. port access vlan 3
    135. #
    136. interface GigabitEthernet1/0/22
    137. port access vlan 3
    138. #
    139. interface GigabitEthernet1/0/23
    140. port access vlan 3
    141. #
    142. interface GigabitEthernet1/0/24
    143. port access vlan 3
    144. #
    145. interface GigabitEthernet1/0/25
    146. port access vlan 3
    147. #
    148. interface GigabitEthernet1/0/26
    149. port access vlan 3
    150. #
    151. interface GigabitEthernet1/0/27
    152. port access vlan 3
    153. #
    154. interface GigabitEthernet1/0/28
    155. port access vlan 3
    156. #
    157. interface GigabitEthernet1/0/29
    158. port access vlan 3
    159. #
    160. interface GigabitEthernet1/0/30
    161. port access vlan 3
    162. #
    163. interface GigabitEthernet1/0/31
    164. port access vlan 3
    165. #
    166. interface GigabitEthernet1/0/32
    167. port access vlan 3
    168. #
    169. interface GigabitEthernet1/0/33
    170. port access vlan 3
    171. #
    172. interface GigabitEthernet1/0/34
    173. port access vlan 3
    174. #
    175. interface GigabitEthernet1/0/35
    176. port access vlan 3
    177. #
    178. interface GigabitEthernet1/0/36
    179. port access vlan 3
    180. #
    181. interface GigabitEthernet1/0/37
    182. port access vlan 3
    183. #
    184. interface GigabitEthernet1/0/38
    185. port access vlan 3
    186. #
    187. interface GigabitEthernet1/0/39
    188. port access vlan 3
    189. #
    190. interface GigabitEthernet1/0/40
    191. port access vlan 3
    192. #
    193. interface GigabitEthernet1/0/41
    194. port access vlan 3
    195. #
    196. interface GigabitEthernet1/0/42
    197. port access vlan 3
    198. #
    199. interface GigabitEthernet1/0/43
    200. port access vlan 3
    201. #
    202. interface GigabitEthernet1/0/44
    203. port access vlan 3
    204. #
    205. interface GigabitEthernet1/0/45
    206. port access vlan 5
    207. #
    208. interface GigabitEthernet1/0/46
    209. port access vlan 6
    210. #
    211. interface GigabitEthernet1/0/47
    212. #
    213. interface GigabitEthernet1/0/48
    214. #
    215. interface GigabitEthernet1/0/49
    216. #
    217. interface GigabitEthernet1/0/50
    218. #
    219. interface GigabitEthernet2/0/1
    220. port access vlan 2
    221. #
    222. interface GigabitEthernet2/0/2
    223. port access vlan 2
    224. #
    225. interface GigabitEthernet2/0/3
    226. port access vlan 2
    227. #
    228. interface GigabitEthernet2/0/4
    229. port access vlan 2
    230. #
    231. interface GigabitEthernet2/0/5
    232. port access vlan 2
    233. #
    234. interface GigabitEthernet2/0/6
    235. port access vlan 2
    236. #
    237. interface GigabitEthernet2/0/7
    238. port access vlan 2
    239. #
    240. interface GigabitEthernet2/0/8
    241. port access vlan 2
    242. #
    243. interface GigabitEthernet2/0/9
    244. port access vlan 2
    245. #
    246. interface GigabitEthernet2/0/10
    247. port access vlan 2
    248. #
    249. interface GigabitEthernet2/0/11
    250. port access vlan 2
    251. #
    252. interface GigabitEthernet2/0/12
    253. port access vlan 2
    254. #
    255. interface GigabitEthernet2/0/13
    256. port access vlan 2
    257. #
    258. interface GigabitEthernet2/0/14
    259. port access vlan 2
    260. #
    261. interface GigabitEthernet2/0/15
    262. port access vlan 2
    263. #
    264. interface GigabitEthernet2/0/16
    265. port access vlan 2
    266. #
    267. interface GigabitEthernet2/0/17
    268. port access vlan 2
    269. #
    270. interface GigabitEthernet2/0/18
    271. port access vlan 2
    272. #
    273. interface GigabitEthernet2/0/19
    274. port access vlan 2
    275. #
    276. interface GigabitEthernet2/0/20
    277. port access vlan 2
    278. #
    279. interface GigabitEthernet2/0/21
    280. port access vlan 2
    281. #
    282. interface GigabitEthernet2/0/22
    283. port access vlan 2
    284. #
    285. interface GigabitEthernet2/0/23
    286. port access vlan 2
    287. #
    288. interface GigabitEthernet2/0/24
    289. port access vlan 2
    290. #
    291. interface GigabitEthernet2/0/25
    292. port access vlan 2
    293. #
    294. interface GigabitEthernet2/0/26
    295. port access vlan 2
    296. #
    297. interface GigabitEthernet1/0/51
    298. #
    299. interface GigabitEthernet1/0/52
    300. #
    301. interface GigabitEthernet2/0/27
    302. #
    303. interface GigabitEthernet2/0/28
    304. #
    305. scheduler logfile size 16
    306. #
    307. line class aux
    308. user-role network-admin
    309. #
    310. line class vty
    311. user-role network-operator
    312. #
    313. line aux 0 1
    314. user-role network-admin
    315. #
    316. line vty 0 63
    317. user-role network-operator
    318. #
    319. ip route-static 0.0.0.0 0 Vlan-interface5 10.0.0.1

1 个回答
粉丝:7人 关注:2人

检查一下看终端网关配错没

interface GigabitEthernet1/0/44 port access vlan 3 nterface GigabitEthernet2/0/24 port access vlan 2

zhiliao_q3tIb 发表时间:2021-03-21 更多>>

另外看一下对应接口是否打上了access 2 和3的标记

zhiliao_tCOrIx 发表时间:2021-03-21

客户端网关都是交换机dhcp的虚接口20.1/30.1

zhiliao_q3tIb 发表时间:2021-03-21

interface GigabitEthernet1/0/44 port access vlan 3 nterface GigabitEthernet2/0/24 port access vlan 2

zhiliao_q3tIb 发表时间:2021-03-21

interface GigabitEthernet1/0/44 port access vlan 3 nterface GigabitEthernet2/0/24 port access vlan 2

zhiliao_q3tIb 发表时间:2021-03-21

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明