模拟环境,PC机已经连通路由器,汇聚交换机等设备,现希望可以连通接入交换机,在接入交换机配置vlanIP地址,可以ping通汇聚交换机,PC机也可以ping通汇聚交换机,但是PC机不能ping通接入交换机,求教是怎么回事
接入交换机配置
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan all
#
interface NULL0
#
interface Vlan-interface2
ip address 10.40.2.32 255.255.255.0
#
interface Vlan-interface500
ip address 11.11.11.21 255.255.255.0
#
ip route-static 0.0.0.0 0 10.40.2.1
ip route-static 11.11.11.0 24 11.11.11.11
路由表:
0.0.0.0/0 Static 60 0 10.40.2.1 Vlan2
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
10.40.2.0/24 Direct 0 0 10.40.2.32 Vlan2
10.40.2.0/32 Direct 0 0 10.40.2.32 Vlan2
10.40.2.32/32 Direct 0 0 127.0.0.1 InLoop0
10.40.2.255/32 Direct 0 0 10.40.2.32 Vlan2
11.11.11.0/24 Direct 0 0 11.11.11.21 Vlan500
11.11.11.0/32 Direct 0 0 11.11.11.21 Vlan500
11.11.11.21/32 Direct 0 0 127.0.0.1 InLoop0
11.11.11.255/32 Direct 0 0 11.11.11.21 Vlan500
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
--------------------------------------------------------------------------------------
汇聚交换机配置
interface Vlan-interface500
ip address 11.11.11.11 255.255.255.0
ip route-static 0.0.0.0 0 Route-Aggregation1 10.40.2.2
ip route-static 1.1.1.0 24 1.1.1.1
路由表:
0.0.0.0/0 Static 60 0 10.40.2.2 RAGG1
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
1.1.1.0/24 Direct 0 0 1.1.1.2 Vlan10
1.1.1.0/32 Direct 0 0 1.1.1.2 Vlan10
1.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0
1.1.1.255/32 Direct 0 0 1.1.1.2 Vlan10
10.40.2.0/24 Direct 0 0 10.40.2.1 RAGG1
10.40.2.0/32 Direct 0 0 10.40.2.1 RAGG1
10.40.2.1/32 Direct 0 0 127.0.0.1 InLoop0
10.40.2.255/32 Direct 0 0 10.40.2.1 RAGG1
10.40.10.0/24 Direct 0 0 10.40.10.1 Vlan100
10.40.10.0/32 Direct 0 0 10.40.10.1 Vlan100
10.40.10.1/32 Direct 0 0 127.0.0.1 InLoop0
10.40.10.255/32 Direct 0 0 10.40.10.1 Vlan100
10.40.20.0/24 Direct 0 0 10.40.20.1 Vlan200
10.40.20.0/32 Direct 0 0 10.40.20.1 Vlan200
10.40.20.1/32 Direct 0 0 127.0.0.1 InLoop0
10.40.20.255/32 Direct 0 0 10.40.20.1 Vlan200
10.40.30.0/24 Direct 0 0 10.40.30.1 Vlan300
(0)
最佳答案
接入交换的默认路由指向10.40.2.1,汇聚交换的默认路由指向10.40.2.2是怎么回事?
(0)
10.40.2.2是上边还有一个路由器,汇聚和路由之间有一个链路聚合,10.40.2.2是路由器聚合端口地址
把接入交换的默认路由指到汇聚试试
地址up了吗,看下arp情况
(0)
还是路由的问题,检查下吧
汇聚的arp [SW1]dis arp al Type: S-Static D-Dynamic O-Openflow R-Rule M-Multiport I-Invalid IP address MAC address VLAN/VSI name Interface Aging Type 10.40.2.2 304d-e7ce-0102 -- RAGG1 709 D 10.40.30.2 3403-6b0e-0206 300 BAGG4 114 D 123.123.123.124 3094-8366-0902 1000 BAGG4 359 D 10.40.20.2 302c-76b4-0c06 200 BAGG3 872 D 10.40.10.2 302c-6c7d-0b06 100 BAGG2 998 D 11.11.11.21 3094-7a5b-0502 500 BAGG2 267 D 1.1.1.1 3407-d5c0-0d05 10 GE2/0/5 210 D ---------------------------------------------------------------------------- 接入的arp [jr1]dis arp all Type: S-Static D-Dynamic O-Openflow R-Rule M-Multiport I-Invalid IP address MAC address VLAN/VSI name Interface Aging Type 11.11.11.11 3094-6d98-0302 500 BAGG1 236 D 10.40.2.40 3094-8366-0902 2 BAGG1 1196 D
还是路由的问题,检查下吧
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
把接入交换的默认路由指到汇聚试试