设为首页收藏本站language 语言切换
查看: 1805|回复: 5
收起左侧

[已解决] 经典错误啊都看看我哪里错了~~~~~~~~~~急急急

[复制链接]
发表于 2012-5-11 13:31:55 | 显示全部楼层 |阅读模式
为什么左边的vlan都通 可是过了这两个三层的交换机就不通了啊?我认为三层出了问题了下面是两个三层交换机的配置有经验的人帮我看看是哪里出了问题了啊!!!!
首先是左边的三层交换机配置为:

interface FastEthernet0/22
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/23
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/24
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/1    (g0/1   g0/2做的聚合就是中间两个三层交换机相连的端口  右边的也是g0/1  g0/2)
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Port-channel 1
switchport trunk allowed vlan 1-4,6-1005
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
ip address 10.0.0.253 255.255.255.0
!
interface Vlan2
ip address 10.2.2.254 255.255.255.0
!
interface Vlan3
ip address 10.3.3.254 255.255.255.0
!
interface Vlan4
ip address 10.4.4.254 255.255.255.0
!
interface Vlan5
ip address 10.5.5.254 255.255.255.0
!
interface Vlan10
ip address 10.10.10.254 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/1
!
!
!
!
!
!
!
line con 0
line vty 0 4
password ccna
login
line vty 5 15
password ccna
login
!


右边的三层是:

interface GigabitEthernet0/1
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Port-channel 1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
ip address 10.0.0.254 255.255.255.0
!
interface Vlan2
ip address 10.2.2.254 255.255.255.0
!
interface Vlan3
ip address 10.3.3.254 255.255.255.0
!
interface Vlan4
ip address 10.4.4.254 255.255.255.0
!
interface Vlan5
ip address 10.5.5.254 255.255.255.0
!
interface Vlan10
ip address 10.10.10.254 255.255.255.0
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
password ccna
login
!
!
!
end

另pc的配置
vlan2的pc用的10.2.2.1
vlan5的pc用的是10.5.5.1

请问我哪里错了为什么不通???








为什么左边的vlan都通 可是过了这两个三层的交换机就不通了啊?我认为三层出了问题了下面是两个三层交换机的配置有经验的人帮我看看是哪里出了问题了啊!!!!
首先是左边的三层交换机配置为:

interface FastEthernet0/22
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/23
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/24
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/1    (g0/1   g0/2做的聚合就是中间两个三层交换机相连的端口  右边的也是g0/1  g0/2)
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Port-channel 1
switchport trunk allowed vlan 1-4,6-1005
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
ip address 10.0.0.253 255.255.255.0
!
interface Vlan2
ip address 10.2.2.254 255.255.255.0
!
interface Vlan3
ip address 10.3.3.254 255.255.255.0
!
interface Vlan4
ip address 10.4.4.254 255.255.255.0
!
interface Vlan5
ip address 10.5.5.254 255.255.255.0
!
interface Vlan10
ip address 10.10.10.254 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/1
!
!
!
!
!
!
!
line con 0
line vty 0 4
password ccna
login
line vty 5 15
password ccna
login
!


右边的三层是:

interface GigabitEthernet0/1
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Port-channel 1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
ip address 10.0.0.254 255.255.255.0
!
interface Vlan2
ip address 10.2.2.254 255.255.255.0
!
interface Vlan3
ip address 10.3.3.254 255.255.255.0
!
interface Vlan4
ip address 10.4.4.254 255.255.255.0
!
interface Vlan5
ip address 10.5.5.254 255.255.255.0
!
interface Vlan10
ip address 10.10.10.254 255.255.255.0
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
password ccna
login
!
!
!
end

另pc的配置
vlan2的pc用的10.2.2.1
vlan5的pc用的是10.5.5.1

请问我哪里错了为什么不通???








90OW7$ZDMPZ8~QS1P2EA0B5.jpg
发表于 2012-5-11 21:26:12 | 显示全部楼层
沙发 2012-5-11 21:26:12 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-5-11 23:34:55 | 显示全部楼层
Switch(config)#ip routing
//开启路由功能
至于为啥左边能ping通,这个不大好解释。。。
如果是路由器的话,可以解释为:
vlan 2、3、4与之相连的链路,对于路由器来说是直连路由
直连路由是由链路层协议发现的,一般指去往路由器的接口地址所在网段的路径,该路径信息不需要网络管理员维护,也不需要路由器通过某种算法进行计算获得,只要该接口处于活动状态(Active),路由器就会把通向该网段的路由信息填写到路由表中去,直连路由无法使路由器获取与其不直接相连的路由信息。(百度百科)
当然问题的纠结,就是在于,图中所使用的是 三层交换机
若用直连路由解释,但路由功能还为开启(ip routing),还不能当做路由器
所以,我的理解是,能ping通是模拟器原因。。。。(只好如此{:soso_e141:})
cisco官网对于  InterVLAN Routing on Layer 3 Switches 的解释:
http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008019e74e.shtml

MLS.jpg
板凳 2012-5-11 23:34:55 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-5-12 16:52:17 来自手机 | 显示全部楼层
新手来支持一下
地板 2012-5-12 16:52:17 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-5-13 10:39:40 | 显示全部楼层
5# 2012-5-13 10:39:40 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-11-8 14:09:28 | 显示全部楼层
帅哥,你用什么模拟器做的
6# 2012-11-8 14:09:28 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-5-25 06:09 , Processed in 0.143711 second(s), 29 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表