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不通 是少了哪里的配置?
(0)
最佳答案
vlan 之间的电脑ping不通
是少了哪里的配置?
先检查电脑的防火墙是不是开启了
看了一下你后发上来的配置
首先你5560 不用写那些路由,其次,互联接入交换机不用改pvid trunk 放通vlan 就行。
你把两个不通的终端放到同一个交换机下,配置同网段的IP,ping 试一下通不通
(0)
同vlan可以 夸vlan 就不行了
所有vlan 网关都在s5560上,s5130上联端口和s5560下联端口都是trunk 允许 all 通过的
配置我贴上来了。麻烦帮我看看。vlan 20交换机配置没拿到,只拿到vlan50的一台,配置都是一样的。问题也一样
1、5560不用设置上面的静态路由,因为系统会自动生成直接路由
2、5560接5130交换机的type是什么?access?trunk?
(0)
trunk
trunk
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
#
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
谢谢