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

核心交换机设置VLAN

2022-10-12提问
  • 0关注
  • 0收藏,1104浏览
粉丝:0人 关注:0人

问题描述:


g0/0/10 接口 的VLAN 21 配置的 192.168.21.0 的网段在 该端口接网线 不可用
目的是 从G0/0/10 接根网线至 其他AC 

组网及组网描述:

 系统当前配置
  1. #
  2. version 7.1.070, Release 7743P05
  3. #
  4. sysname core
  5. #
  6. telnet server enable
  7. #
  8. fabric multicast-forwarding mode standard
  9. multicast forwarding-mode default
  10. #
  11. ip unreachables enable
  12. ip ttl-expires enable
  13. #
  14. dhcp enable
  15. #
  16. lldp global enable
  17. #
  18. system-working-mode standard
  19. password-recovery enable
  20. #
  21. vlan 1
  22. #
  23. vlan 9 to 13
  24. #
  25. vlan 20 to 21
  26. #
  27. vlan 100 to 102
  28. #
  29. stp global enable
  30. #
  31. dhcp server ip-pool vlan11
  32. gateway-list 192.168.11.254
  33. network 192.168.11.0 mask 255.255.255.0
  34. address range 192.168.11.30 192.168.11.220
  35. dns-list 192.168.10.10 114.114.114.114
  36. #
  37. dhcp server ip-pool vlan12
  38. gateway-list 192.168.12.254
  39. network 192.168.12.0 mask 255.255.255.0
  40. address range 192.168.12.30 192.168.12.220
  41. dns-list 192.168.10.10 114.114.114.114
  42. #
  43. dhcp server ip-pool vlan13
  44. gateway-list 192.168.13.254
  45. network 192.168.13.0 mask 255.255.255.0
  46. address range 192.168.13.30 192.168.13.220
  47. dns-list 192.168.10.10 114.114.114.114
  48. #
  49. dhcp server ip-pool vlan100
  50. gateway-list 172.16.100.254
  51. network 172.16.100.0 mask 255.255.255.0
  52. dns-list 114.114.114.114
  53. #
  54. dhcp server ip-pool vlan101
  55. gateway-list 172.16.101.254
  56. network 172.16.101.0 mask 255.255.255.0
  57. dns-list 114.114.114.114
  58. #
  59. dhcp server ip-pool vlan102
  60. gateway-list 172.16.102.254
  61. network 172.16.102.0 mask 255.255.254.0
  62. dns-list 114.114.114.114
  63. #
  64. interface NULL0
  65. #
  66. interface Vlan-interface1
  67. dhcp client identifier ascii 00ddb6640e00-VLAN0001
  68. #
  69. interface Vlan-interface9
  70. ip address 192.168.9.254 255.255.255.0
  71. #
  72. interface Vlan-interface10
  73. description 服务器
  74. ip address 192.168.10.254 255.255.255.0
  75. #
  76. interface Vlan-interface11
  77. description 鍔炲叕
  78. ip address 192.168.11.254 255.255.255.0
  79. #
  80. interface Vlan-interface12
  81. description 鍔炲叕
  82. ip address 192.168.12.254 255.255.255.0
  83. #
  84. interface Vlan-interface13
  85. description 瀹為獙璁惧
  86. ip address 192.168.13.254 255.255.255.0
  87. packet-filter 3020 outbound
  88. #
  89. interface Vlan-interface20
  90. description 鐩戞帶
  91. ip address 192.168.20.1 255.255.255.0
  92. #
  93. interface Vlan-interface21
  94. ip address 192.168.21.254 255.255.255.0
  95. #
  96. interface Vlan-interface100
  97. description APguanli
  98. ip address 172.16.100.254 255.255.255.0
  99. #
  100. interface Vlan-interface101
  101. description ixcell
  102. ip address 172.16.101.254 255.255.255.0
  103. #
  104. interface Vlan-interface102
  105. description wuxianVIP
  106. ip address 172.16.102.254 255.255.254.0
  107. packet-filter 3010 outbound
  108. #
  109. interface GigabitEthernet0/0/1
  110. port link-mode bridge
  111. port access vlan 9
  112. #
  113. interface GigabitEthernet0/0/2
  114. port link-mode bridge
  115. #
  116. interface GigabitEthernet0/0/3
  117. port link-mode bridge
  118. #
  119. interface GigabitEthernet0/0/4
  120. port link-mode bridge
  121. #
  122. interface GigabitEthernet0/0/5
  123. port link-mode bridge
  124. #
  125. interface GigabitEthernet0/0/6
  126. port link-mode bridge
  127. #
  128. interface GigabitEthernet0/0/7
  129. port link-mode bridge
  130. port access vlan 9
  131. #
  132. interface GigabitEthernet0/0/8
  133. port link-mode bridge
  134. #
  135. interface GigabitEthernet0/0/9
  136. port link-mode bridge
  137. port access vlan 20
  138. #
  139. interface GigabitEthernet0/0/10
  140. port link-mode bridge
  141. port link-type hybrid
  142. port hybrid vlan 21 tagged
  143. port hybrid vlan 1 untagged
  144. #
  145. interface GigabitEthernet0/0/11
  146. port link-mode bridge
  147. #
  148. interface GigabitEthernet0/0/12
  149. port link-mode bridge
  150. #
  151. interface GigabitEthernet0/0/13
  152. port link-mode bridge
  153. #
  154. interface GigabitEthernet0/0/14
  155. port link-mode bridge
  156. #
  157. interface GigabitEthernet0/0/15
  158. port link-mode bridge
  159. #
  160. interface GigabitEthernet0/0/16
  161. port link-mode bridge
  162. #
  163. interface M-GigabitEthernet0/0/0
  164. #
  165. interface Ten-GigabitEthernet0/0/17
  166. port link-mode bridge
  167. port link-type trunk
  168. port trunk permit vlan all
  169. #
  170. interface Ten-GigabitEthernet0/0/18
  171. port link-mode bridge
  172. description AC
  173. port link-type trunk
  174. undo port trunk permit vlan 1
  175. port trunk permit vlan 9 21 100 to 102
  176. #
  177. interface Ten-GigabitEthernet0/0/19
  178. port link-mode bridge
  179. description POE
  180. port link-type trunk
  181. undo port trunk permit vlan 1
  182. port trunk permit vlan 9 21 100 to 102
  183. #
  184. interface Ten-GigabitEthernet0/0/20
  185. port link-mode bridge
  186. description 3POE
  187. port link-type trunk
  188. undo port trunk permit vlan 1
  189. port trunk permit vlan 9 21 100 to 102
  190. #
  191. interface Ten-GigabitEthernet0/0/21
  192. port link-mode bridge
  193. description 1waiwang1
  194. port link-type trunk
  195. undo port trunk permit vlan 1
  196. port trunk permit vlan 9 11 20 to 21
  197. #
  198. interface Ten-GigabitEthernet0/0/22
  199. port link-mode bridge
  200. description 1waiwang2
  201. port link-type trunk
  202. undo port trunk permit vlan 1
  203. port trunk permit vlan 9 11 20 to 21
  204. #
  205. interface Ten-GigabitEthernet0/0/23
  206. port link-mode bridge
  207. description 1waiwang3
  208. port link-type trunk
  209. undo port trunk permit vlan 1
  210. port trunk permit vlan 9 11 21
  211. #
  212. interface Ten-GigabitEthernet0/0/24
  213. port link-mode bridge
  214. port link-type trunk
  215. undo port trunk permit vlan 1
  216. port trunk permit vlan 9 12 20 to 21
  217. #
  218. interface Ten-GigabitEthernet0/0/25
  219. port link-mode bridge
  220. port link-type trunk
  221. undo port trunk permit vlan 1
  222. port trunk permit vlan 9 12 20 to 21
  223. #
  224. interface Ten-GigabitEthernet0/0/26
  225. port link-mode bridge
  226. port link-type trunk
  227. undo port trunk permit vlan 1
  228. port trunk permit vlan 2 to 4094
  229. #
  230. interface Ten-GigabitEthernet0/0/27
  231. port link-mode bridge
  232. port link-type trunk
  233. undo port trunk permit vlan 1
  234. port trunk permit vlan 9 12 20 to 21
  235. #
  236. interface Ten-GigabitEthernet0/0/28
  237. port link-mode bridge
  238. port link-type trunk
  239. undo port trunk permit vlan 1
  240. port trunk permit vlan 9 12 20 to 21
  241. #
  242. scheduler logfile size 16
  243. #
  244. line class console
  245. user-role network-admin
  246. #
  247. line class vty
  248. user-role network-operator
  249. #
  250. line con 0
  251. user-role network-admin
  252. #
  253. line vty 0 4
  254. authentication-mode scheme
  255. user-role network-admin
  256. user-role network-operator
  257. #
  258. line vty 5 63
  259. user-role network-operator
  260. #
  261. ip route-static 0.0.0.0 0 192.168.9.1
  262. #
  263. acl advanced 3010
  264. rule 97 deny ip source 172.16.101.0 0.0.0.255 destination 172.16.102.0 0.0.1.255
  265. rule 98 deny ip source 172.16.100.0 0.0.0.255 destination 172.16.102.0 0.0.1.255
  266. rule 99 deny ip source 192.168.0.0 0.0.255.255 destination 172.16.102.0 0.0.1.255
  267. rule 100 deny ip source 172.16.102.0 0.0.1.255 destination 192.168.0.0 0.0.255.255
  268. rule 105 deny ip source 172.16.102.0 0.0.1.255 destination 172.16.100.0 0.0.0.255
  269. rule 106 deny ip source 172.16.102.0 0.0.1.255 destination 172.16.101.0 0.0.0.255
  270. rule 120 permit ip
  271. #
  272. acl advanced 3020
  273. rule 100 permit ip source 192.168.13.0 0.0.0.255 destination 192.168.10.0 0.0.0.255
  274. rule 110 permit ip source 192.168.10.0 0.0.0.255 destination 192.168.13.0 0.0.0.255
  275. rule 1000 deny ip
  276. #
  277. domain system
  278. #
  279. domain default enable system
  280. #
  281. role name level-0
  282. description Predefined level-0 role
  283. #
  284. role name level-1
  285. description Predefined level-1 role
  286. #
  287. role name level-2
  288. description Predefined level-2 role
  289. #
  290. role name level-3
  291. description Predefined level-3 role
  292. #
  293. role name level-4
  294. description Predefined level-4 role
  295. #
  296. role name level-5
  297. description Predefined level-5 role
  298. #
  299. role name level-6
  300. description Predefined level-6 role
  301. #
  302. role name level-7
  303. description Predefined level-7 role
  304. #
  305. role name level-8
  306. description Predefined level-8 role
  307. #
  308. role name level-9
  309. description Predefined level-9 role
  310. #
  311. role name level-10
  312. description Predefined level-10 role
  313. #
  314. role name level-11
  315. description Predefined level-11 role
  316. #
  317. role name level-12
  318. description Predefined level-12 role
  319. #
  320. role name level-13
  321. description Predefined level-13 role
  322. #
  323. role name level-14
  324. description Predefined level-14 role
  325. #
  326. user-group system
  327. #
  328. local-user chm class manage
  329. password hash $h$6$R5JftQXDfjTdiPjO$qZtP1HmJq0bWFzaPjlXdoV/SGRlU+up0wopNcrKOCamyRjOyfnsvrUfk2mFFSym6piOAvB8NijPDWRWMPDE3sQ==
  330. service-type telnet http https ssh terminal
  331. authorization-attribute user-role network-admin
  332. authorization-attribute user-role network-operator
  333. #
  334. local-user ixcelladmin class manage
  335. password hash $h$6$vbeScP8pnnvGCs5x$LF1wP/HZZtpd/zJki/+SML/RGk1jgYlPMHAiMsg2yy8rU5sO7pK02Tk47VOt/6M4wvrw/oyzOvnAK8wTBtmimg==
  336. service-type ftp
  337. service-type telnet http https ssh terminal
  338. authorization-attribute user-role network-admin
  339. authorization-attribute user-role network-operator
  340. #
  341. ip http enable
  342. ip https enable
  343. #
  344. return

1 个回答
粉丝:237人 关注:8人

AC和核心互联口打trunk,放通相应VLAN就行


暂无评论

编辑答案

你正在编辑答案

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

分享扩散:

提出建议

    +

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

确定

亲~检测到您登陆的账号未在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. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

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

不规范转载

×

举报说明