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

交换机上网配置

  • 0关注
  • 0收藏,76浏览
粉丝:0人 关注:0人

问题描述:

 

 

一台WX3010E,8口

交换部分和AC控制部分现状如下:

 

 

<POE_switch_200.252>tracert 211.97.142.108

 traceroute to 211.97.142.108(211.97.142.108) 30 hops max,40 bytes packet, press CTRL_C to break

 1  192.168.1.1 9 ms 3 ms 2 ms

 2  220.250.60.1 4 ms 3 ms 4 ms

 3  218.106.149.213 5 ms 4 ms 15 ms

 4  218.104.229.37 22 ms 218.104.227.5 22 ms 218.104.227.9 85 ms

 5  58.23.0.198 9 ms 11 ms 218.107.221.130 15 ms

 6  218.107.221.46 14 ms 10 ms 11 ms

 7  * * *

 8  *

<POE_switch_200.252>ping 211.97.142.108    /////////////外网主机

  PING 211.97.142.108: 56  data bytes, press CTRL_C to break

    Reply from 211.97.142.108: bytes=56 Sequence=1 ttl=58 time=11 ms

    Reply from 211.97.142.108: bytes=56 Sequence=2 ttl=58 time=10 ms

    Reply from 211.97.142.108: bytes=56 Sequence=3 ttl=58 time=11 ms

    Reply from 211.97.142.108: bytes=56 Sequence=4 ttl=58 time=11 ms

    Reply from 211.97.142.108: bytes=56 Sequence=5 ttl=58 time=10 ms

 

  --- 211.97.142.108 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 10/10/11 ms

 

<POE_switch_200.252>

<POE_switch_200.252>display ip routing-table

Routing Tables: Public

        Destinations : 9        Routes : 9

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

 

0.0.0.0/0           Static 60   0            192.168.1.1     Vlan11

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

192.168.0.0/16      Static 60   0            192.168.200.254 Vlan1

192.168.1.0/24      Direct 0    0            192.168.1.6     Vlan11

192.168.1.6/32      Direct 0    0            127.0.0.1       InLoop0

192.168.199.0/24    Static 60   0            192.168.200.254 Vlan1

192.168.200.0/24    Direct 0    0            192.168.200.252 Vlan1

192.168.200.252/32  Direct 0    0            127.0.0.1       InLoop0

 

<POE_switch_200.252>

<POE_switch_200.252>dis vlan all

 VLAN ID: 1

 VLAN Type: static

 Route Interface: configured

 IP Address: 192.168.200.252

 Subnet Mask: 255.255.255.0

 Description: VLAN 0001

 Name: VLAN 0001

 Tagged   Ports: none

 Untagged Ports:

    Bridge-Aggregation1

    GigabitEthernet1/0/1     GigabitEthernet1/0/2     GigabitEthernet1/0/3

    GigabitEthernet1/0/4     GigabitEthernet1/0/5     GigabitEthernet1/0/6

    GigabitEthernet1/0/7     GigabitEthernet1/0/9     GigabitEthernet1/0/10

    GigabitEthernet1/0/11    GigabitEthernet1/0/12

 

 VLAN ID: 10

 VLAN Type: static

 Route Interface: not configured

 Description: VLAN 0010

 Name: VLAN 0010

 Tagged   Ports:

    Bridge-Aggregation1

    GigabitEthernet1/0/8     GigabitEthernet1/0/11    GigabitEthernet1/0/12

 Untagged Ports: none

 

 VLAN ID: 11

 VLAN Type: static

 Route Interface: configured

 IP Address: 192.168.1.6

 Subnet Mask: 255.255.255.0

 Description: VLAN 0011

 Name: VLAN 0011

 Tagged   Ports: none

 Untagged Ports:

    GigabitEthernet1/0/8

 

<POE_switch_200.252>

******************************   以上是 交换部分现状  ***************************************

<H3C_AC254>display ip routing-table

Routing Tables: Public

        Destinations : 6        Routes : 6

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

 

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

192.168.199.0/24    Direct 0    0            192.168.199.254 Vlan10

192.168.199.254/32  Direct 0    0            127.0.0.1       InLoop0

192.168.200.0/24    Direct 0    0            192.168.200.254 Vlan1

192.168.200.254/32  Direct 0    0            127.0.0.1       InLoop0

 

<H3C_AC254>ping 211.97.142.108

  PING 211.97.142.108: 56  data bytes, press CTRL_C to break

    Request time out

    Request time out

    Request time out

    Request time out

    Request time out

 

  --- 211.97.142.108 ping statistics ---

    5 packet(s) transmitted

    0 packet(s) received

    100.00% packet loss

 

<H3C_AC254>tracert 211.97.142.108

 traceroute to 211.97.142.108(211.97.142.108) 30 hops max,40 bytes packet, press CTRL_C to break

 1  * * *

 2  * * *

 3  * * *

 4  * * *

 5  * * *

 6  * * *

 7  * * *

 8  * * *

 9 

<H3C_AC254>

<H3C_AC254>dis vlan all

 VLAN ID: 1

 VLAN Type: static

 Route Interface: configured

 IPv4 address: 192.168.200.254

 IPv4 subnet mask: 255.255.255.0

 Description: VLAN 0001

 Name: VLAN 0001

 Tagged   Ports: none

 Untagged Ports:

    Bridge-Aggregation1

    GigabitEthernet1/0/1     GigabitEthernet1/0/2

 

 VLAN ID: 10

 VLAN Type: static

 Route Interface: configured

 IPv4 address: 192.168.199.254

 IPv4 subnet mask: 255.255.255.0

 Description: VLAN 0010

 Name: VLAN 0010

 Tagged   Ports:

    Bridge-Aggregation1

    GigabitEthernet1/0/1     GigabitEthernet1/0/2

 Untagged Ports:

    WLAN-ESS0   

    WLAN-DBSS0:0             WLAN-DBSS0:1

    WLAN-ESS1

 

<H3C_AC254>

<H3C_AC254>dis ver

H3C Comware Platform Software

Comware Software, Version 5.20, Release 3509P58

Copyright (c) 2004-2016 Hangzhou H3C Tech. Co., Ltd. All rights reserved.

H3C WX3010E uptime is 0 week, 0 day, 7 hours, 44 minutes

 

H3C WX3010E with 1 RMI XLS 208 750MHz Processor

512M bytes DDR2

16M bytes Flash Memory

999M bytes CFCard Memory

 

Hardware Version is Ver.C

CPLD Version is 004

Basic Bootrom Version is 2.03

Extend Bootrom Version is 2.03

[Slot 0]WX3010ELSW Hardware Version is NA

[Slot 1]WX3010ERPU Hardware Version is Ver.C

 

******************************   以上是 AC控制器部分现状  ***************************************

 

目前交换部分在第8口接上网线连上一级路由器,交换部分可Ping通互联网上的主机

AC部分不能Ping通互联网上的主机

连在1-7口的PC上不了互联网(192.168.200.xxx)

 

请问如何实现连到AC控制器的终端、主机都能上互联网,如果有具体指令最好

 

 

 

组网及组网描述:

 

 

<H3C_AC254>dis cur

#

 version 5.20, Release 3509P58

#

 sysname H3C_AC254

#

 domain default enable system

#

 telnet server enable

#

 port-security enable

#

 oap management-ip 192.168.200.254 slot 0

#

 wlan auto-ap enable

 wlan auto-persistent enable

#

 password-recovery enable

#

vlan 1

#

vlan 10

#

domain system

 access-limit disable

 state active

 idle-cut disable

 self-service-url disable

#

dhcp server ip-pool ap

 network 192.168.200.0 mask 255.255.255.0

#

dhcp server ip-pool client

 network 192.168.199.0 mask 255.255.255.0

 gateway-list 192.168.199.254

 dns-list 8.8.8.8

#

user-group system

 group-attribute allow-guest

#

local-user admin

 password cipher $c$3$5thOGCmEj3a1X9VYzVd/0+LqpO39/w==

 authorization-attribute level 3

 service-type telnet

 service-type web

#

wlan rrm

 dot11a mandatory-rate 6 12 24

 dot11a supported-rate 9 18 36 48 54

 dot11b mandatory-rate 1 2

 dot11b supported-rate 5.5 11

 dot11g mandatory-rate 1 2 5.5 11

 dot11g supported-rate 6 9 12 18 24 36 48 54

#

wlan service-template 1 crypto

 ssid cyc_601_5G

 bind WLAN-ESS 1

 client max-count 20

 cipher-suite tkip

 security-ie rsn

 service-template enable

#

wlan service-template 2 crypto

 ssid cyc_601_2.4G

 bind WLAN-ESS 0

 client max-count 8

 cipher-suite tkip

 security-ie rsn

 service-template enable

#

wlan ap-group default_group

 ap c4ca-d9e5-5520

 ap c4ca-d9e5-8e30

#

interface Bridge-Aggregation1

 port link-type trunk

 port trunk permit vlan 1 10

 arp detection trust

#

interface NULL0

#

interface Vlan-interface1

 ip address 192.168.200.254 255.255.255.0

#

interface Vlan-interface10

 ip address 192.168.199.254 255.255.255.0

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 1

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 1

#

interface WLAN-ESS0

 port access vlan 10

 port-security max-mac-count 40

 port-security port-mode psk

 port-security tx-key-type 11key

 port-security preshared-key pass-phrase cipher $c$3$tZ62Np0sWSGTc3gl+IG8p3oTipbGWeoWz/GT

#

interface WLAN-ESS1

 port access vlan 10

 port-security port-mode psk

 port-security tx-key-type 11key

 port-security preshared-key pass-phrase cipher $c$3$IeycQXXywcO4IrJbWTUD6bV5oWohuSCOWAR9

#

wlan ap c4ca-d9e5-5520 model WA2612-AGN id 2

 serial-id 210236A0ALC11C060345

 radio 1

  service-template 2

  radio enable

#

wlan ap c4ca-d9e5-8e30 model WA2612-AGN id 1

 serial-id 213335A0ALC11C002341

 radio 1

  service-template 2

  radio enable

#

wlan ips

 malformed-detect-policy default

 signature deauth_flood signature-id 1

 signature broadcast_deauth_flood signature-id 2

 signature disassoc_flood signature-id 3

 signature broadcast_disassoc_flood signature-id 4

 signature eapol_logoff_flood signature-id 5

 signature eap_success_flood signature-id 6

 signature eap_failure_flood signature-id 7

 signature pspoll_flood signature-id 8

 signature cts_flood signature-id 9

 signature rts_flood signature-id 10

 signature addba_req_flood signature-id 11

 signature-policy default

 countermeasure-policy default

 attack-detect-policy default

 virtual-security-domain default

  attack-detect-policy default

  malformed-detect-policy default

  signature-policy default

  countermeasure-policy default

#

 ip route-static 0.0.0.0 0.0.0.0 192.168.1.1

 ip route-static 192.0.0.0 255.0.0.0 192.168.1.1

 ip route-static 192.168.199.0 255.255.255.0 192.168.200.252

#

 dhcp server forbidden-ip 192.168.200.250 192.168.200.254

 dhcp server forbidden-ip 192.168.199.250 192.168.199.254

#

 dhcp enable

#

user-interface con 0

user-interface vty 0 4

 authentication-mode scheme

 user privilege level 3

#

return

<H3C_AC254>             /////////////////////////             AC控制器

 

 

3 个回答
粉丝:8人 关注:0人

仔细检查下组网细节和配置吧


比如

ac默认路由都没有,出不去咋上网。。。

粉丝:207人 关注:1人

你AC上没有默认路由


AC上没有默认路由,靓仔给加一个,要具体指令

zhiliao_mVygQy 发表时间:5小时前
粉丝:0人 关注:0人

1.交换机部分不能上网:1-7口是属于vlan 1,应该是没有回指路由。8口可以上网时属于vlan 11,而且是使用192.168.1.X。

2.AC不能上网,是你写的默认路由未生效,路由表上就没有任何出去的路由。是缺少到192.168.1.1的路由并且回指路由。


如果想都可以上网,最简单的办法,都划分到vlan 11 ,使用192.168.1.X上网。不过考虑下无线的配置,修改的比较多。


编辑答案

你正在编辑答案

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

分享扩散:

提出建议

    +

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

确定

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

对根叔社区有害的内容

×

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

不规范转载

×

举报说明