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

s5560+多个s5130 vlan互通

2023-08-31提问
  • 0关注
  • 0收藏,747浏览
粉丝:0人 关注:0人

问题描述:

5560作为核心有 vlan 1 172.18.0.254 vlan 10 172.18.10.1 vlan 20 172.18.20.1 静路由172.18.0.0/24 下一跳接口vlan1 172.18.0.254 172.18.10.0/24 下一跳vlan10 172.18.10.1 172.18.20.0/24 下一跳 vlan20 172.18.20.1 5130作为接入 1号交换机 端口1 默认vlan 10 允许vlan 1 10 20通过 其他接口全是assess vlan 10 2号交换机端口1 默认vlan 20 允许 vlan 1 10 20通过 其他端口全是assess vlan20 静态路由 0.0.0.0/0 下一跳接口vlan10(20)172.18.10(20).1 现在1和2号交换机下面的电脑可以ping通vlan 网关 。vlan 之间的电脑ping不通 是少了哪里的配置?

最佳答案

粉丝:57人 关注:2人

vlan 之间的电脑ping不通 是少了哪里的配置?

先检查电脑的防火墙是不是开启了


看了一下你后发上来的配置

首先你5560 不用写那些路由,其次,互联接入交换机不用改pvid trunk 放通vlan 就行。

你把两个不通的终端放到同一个交换机下,配置同网段的IP,ping 试一下通不通

谢谢

zhiliao_vuiT4 发表时间:2023-08-31 更多>>

同vlan可以 夸vlan 就不行了

zhiliao_vuiT4 发表时间:2023-08-31
回复zhiliao_vuiT4:

vlan10和和vlan 20 的网关都再5560 上么 互联的trunk 口放通所有的vlan 么

zhiliao_h907dg 发表时间:2023-08-31
回复zhiliao_vuiT4:

上传个附件看看配置吧

zhiliao_h907dg 发表时间:2023-08-31

所有vlan 网关都在s5560上,s5130上联端口和s5560下联端口都是trunk 允许 all 通过的

zhiliao_vuiT4 发表时间:2023-08-31
回复zhiliao_vuiT4:

你先把你配置的路由删掉,同一个交换机的vlan 访问不需要路由

zhiliao_h907dg 发表时间:2023-08-31

配置我贴上来了。麻烦帮我看看。vlan 20交换机配置没拿到,只拿到vlan50的一台,配置都是一样的。问题也一样

zhiliao_vuiT4 发表时间:2023-08-31

谢谢

zhiliao_vuiT4 发表时间:2023-08-31
2 个回答
粉丝:15人 关注:0人

1、5560不用设置上面的静态路由,因为系统会自动生成直接路由

2、5560接5130交换机的type是什么?access?trunk?

trunk

zhiliao_vuiT4 发表时间:2023-08-31 更多>>

trunk

zhiliao_vuiT4 发表时间:2023-08-31
zhiliao_vuiT4 知了小白
粉丝:0人 关注:0人

5560作为核心有 

vlan 1 172.18.0.254 

vlan 10 172.18.10.1

vlan 50 172.18.50.1 

静路由172.18.0.0/24 下一跳接口vlan1 172.18.0.254 

172.18.10.0/24 下一跳vlan10 172.18.10.1 

172.18.50.0/24 下一跳 vlan20 172.18.50.1 

5130作为接入 

1号交换机 端口1 默认vlan 10 允许vlan 1 10 20通过 其他接口全是access vlan 10

2号交换机端口1 默认vlan 20 允许 vlan 1 10 20通过 其他端口全是access vlan 20

静态路由 0.0.0.0/0 下一跳接口vlan10(50)172.18.10(50).1 

现在1和2号交换机下面的电脑可以ping通vlan 网关 。

vlan 之间的电脑ping不通 是少了哪里的配置?

不在公司只能拿到vlan50交换机的配置。问题都是一样的。配置也是 一样的

@​s5560 配置:

version 7.1.070, Release 6127P02
#
sysname H3C
#
clock timezone Beijing add 08:00:00
clock protocol ntp
#
irf mac-address persistent timer
undo irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
ip unreachables enable
ip ttl-expires enable
#
dhcp enable
#
dns proxy enable
dns server 202.96.209.5
dns server 202.96.209.133
dns server 119.29.29.29
dns server 223.5.5.5
dns server 223.6.6.6
#
password-recovery enable
#
vlan 1
#
vlan 10
#
vlan 20
#
vlan 30
#
vlan 40
#
vlan 50
#
dhcp server ip-pool 50
gateway-list 172.18.50.1
network 172.18.50.0 mask 255.255.255.0
dns-list 172.18.0.254 119.29.29.29
expired day 0 hour 8
static-bind ip-address 172.18.50.222 mask 255.255.255.0 hardware-address 3417-ebda-d16a
#
dhcp server ip-pool vlan1
gateway-list 172.18.0.254
network 172.18.0.0 mask 255.255.255.0
dns-list 172.18.0.254 119.29.29.29
expired day 0 hour 8
#
dhcp server ip-pool vlan10
gateway-list 172.18.10.1
network 172.18.10.0 mask 255.255.255.0
dns-list 172.18.0.254
expired day 0 hour 8
#
dhcp server ip-pool vlan20
gateway-list 172.18.20.1
network 172.18.20.0 mask 255.255.255.0
dns-list 172.18.0.254 119.29.29.29
expired day 0 hour 8
#
dhcp server ip-pool vlan30
gateway-list 172.18.30.1
network 172.18.30.0 mask 255.255.255.0
dns-list 172.18.0.254 119.29.29.29
expired day 0 hour 8
#
dhcp server ip-pool vlan40
gateway-list 172.18.40.1
network 172.18.40.0 mask 255.255.255.0
dns-list 172.18.0.254 119.29.29.29
expired day 0 hour 8
#
interface NULL0
#
interface Vlan-interface1
ip address 172.18.0.254 255.255.255.0
#
interface Vlan-interface10
ip address 172.18.10.1 255.255.255.0
#
interface Vlan-interface20
ip address 172.18.20.1 255.255.255.0
undo dhcp select server
#
interface Vlan-interface30
ip address 172.18.30.1 255.255.255.0
#
interface Vlan-interface40
ip address 172.18.40.1 255.255.255.0
#
interface Vlan-interface50
ip address 172.18.50.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/0/3
#
interface GigabitEthernet1/0/4
#
interface GigabitEthernet1/0/5
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 10
#
interface GigabitEthernet1/0/6
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 10
#
interface GigabitEthernet1/0/7
port access vlan 10
#
interface GigabitEthernet1/0/8
port access vlan 10
#
interface GigabitEthernet1/0/9
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 20
#
interface GigabitEthernet1/0/10
port access vlan 20
#
interface GigabitEthernet1/0/11
port access vlan 20
#
interface GigabitEthernet1/0/12
port access vlan 20
#
interface GigabitEthernet1/0/13
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 30
#
interface GigabitEthernet1/0/14
port access vlan 30
#
interface GigabitEthernet1/0/15
port access vlan 30
#
interface GigabitEthernet1/0/16
port access vlan 30
#
interface GigabitEthernet1/0/17
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 40
#
interface GigabitEthernet1/0/18
port access vlan 40
#
interface GigabitEthernet1/0/19
port access vlan 40
#
interface GigabitEthernet1/0/20
port access vlan 40
#
interface GigabitEthernet1/0/21
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 50
#
interface GigabitEthernet1/0/22
port access vlan 50
#
interface GigabitEthernet1/0/23
port access vlan 50
#
interface GigabitEthernet1/0/24
port access vlan 50
#
interface Ten-GigabitEthernet1/0/25
#
interface Ten-GigabitEthernet1/0/26
#
interface Ten-GigabitEthernet1/0/27
#
interface Ten-GigabitEthernet1/0/28
#
scheduler logfile size 16
#
line class aux
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line vty 0 63
user-role network-operator
#
ip route-static 0.0.0.0 0 Vlan-interface1 172.18.0.1
ip route-static 172.18.0.0 24 Vlan-interface1 172.18.0.254
ip route-static 172.18.10.0 24 Vlan-interface10 172.18.10.1
ip route-static 172.18.20.0 24 Vlan-interface20 172.18.20.1
ip route-static 172.18.30.0 24 Vlan-interface30 172.18.30.1
ip route-static 172.18.40.0 24 Vlan-interface40 172.18.40.1
ip route-static 172.18.50.0 24 Vlan-interface50 172.18.50.1
ip route-static 192.168.2.0 26 Vlan-interface1 172.18.0.2 preference 59
#
ntp-service enable
ntp-service source Vlan-interface1
ntp-service unicast-server 202.118.1.46
#
sntp unicast-server 210.72.145.44

@vlan 50 s5130配置:

version 7.1.070, Release 6126P20

#
sysname H3C
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
password-recovery enable
#
vlan 1
#
vlan 50
#
interface NULL0
#
interface Vlan-interface50
ip address 172.18.50.254 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 50
#
interface GigabitEthernet1/0/2
port access vlan 50
#
interface GigabitEthernet1/0/3
port access vlan 50
#
interface GigabitEthernet1/0/4
port access vlan 50
#
interface GigabitEthernet1/0/5
port access vlan 50
#
interface GigabitEthernet1/0/6
port access vlan 50
#
interface GigabitEthernet1/0/7
port access vlan 50
#
interface GigabitEthernet1/0/8
port access vlan 50
#
interface GigabitEthernet1/0/9
port access vlan 50
#
interface GigabitEthernet1/0/10
port access vlan 50
#
interface GigabitEthernet1/0/11
port access vlan 50
#
interface GigabitEthernet1/0/12
port access vlan 50
#
interface GigabitEthernet1/0/13
port access vlan 50
#
interface GigabitEthernet1/0/14
port access vlan 50
#
interface GigabitEthernet1/0/15
port access vlan 50
#
interface GigabitEthernet1/0/16
port access vlan 50
#
interface GigabitEthernet1/0/17
port access vlan 50
#
interface GigabitEthernet1/0/18
port access vlan 50
#
interface GigabitEthernet1/0/19
port access vlan 50
#
interface GigabitEthernet1/0/20
port access vlan 50
#
interface GigabitEthernet1/0/21
port access vlan 50
#
interface GigabitEthernet1/0/22
port access vlan 50
#
interface GigabitEthernet1/0/23
port access vlan 50
#
interface GigabitEthernet1/0/24
port access vlan 50
#
interface GigabitEthernet1/0/25
#
interface GigabitEthernet1/0/26
#
interface GigabitEthernet1/0/27
#
interface GigabitEthernet1/0/28
#
scheduler logfile size 16
#
line class aux
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line vty 0 63
user-role network-operator
#
ip route-static 0.0.0.0 0 Vlan-interface50 172.18.50.1
#
radius scheme system
user-name-format without-domain
#

@vlan10 s5130 配置:

sion 7.1.070, Release 6126P20
#
sysname H3C
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
password-recovery enable
#
vlan 1
#
vlan 10
#
vlan 50
#
stp global enable
#
interface NULL0
#
interface Vlan-interface10
ip address 172.18.10.254 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 10
#
interface GigabitEthernet1/0/2
port access vlan 10
#
interface GigabitEthernet1/0/3
port access vlan 10
#
interface GigabitEthernet1/0/4
port access vlan 10
#
interface GigabitEthernet1/0/5
port access vlan 10
#
interface GigabitEthernet1/0/6
port access vlan 10
#
interface GigabitEthernet1/0/7
port access vlan 10
#
interface GigabitEthernet1/0/8
port access vlan 10
#
interface GigabitEthernet1/0/9
port access vlan 10
#
interface GigabitEthernet1/0/10
port access vlan 10
#
interface GigabitEthernet1/0/11
port access vlan 10
#
interface GigabitEthernet1/0/12
port access vlan 10
#
interface GigabitEthernet1/0/13
port access vlan 10
#
interface GigabitEthernet1/0/14
port access vlan 10
#
interface GigabitEthernet1/0/15
port access vlan 10
#
interface GigabitEthernet1/0/16
port access vlan 10
#
interface GigabitEthernet1/0/17
port access vlan 10
#
interface GigabitEthernet1/0/18
port access vlan 10
#
interface GigabitEthernet1/0/19
port access vlan 10
#
interface GigabitEthernet1/0/20
port access vlan 10
#
interface GigabitEthernet1/0/21
port access vlan 10
#
interface GigabitEthernet1/0/22
port access vlan 10
#
interface GigabitEthernet1/0/23
port access vlan 10
#
interface GigabitEthernet1/0/24
port access vlan 10
#
interface GigabitEthernet1/0/25
#
interface GigabitEthernet1/0/26
#
interface GigabitEthernet1/0/27
#
interface GigabitEthernet1/0/28
#
scheduler logfile size 16
#
line class aux
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line vty 0 63
user-role network-operator
#
ip route-static 0.0.0.0 0 Vlan-interface10 172.18.10.1
#
radius scheme system
user-name-format without-domain
#
domain system
#
domain default enable system
#


编辑答案

你正在编辑答案

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

分享扩散:

提出建议

    +

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

确定

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

对根叔社区有害的内容

×

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

不规范转载

×

举报说明