思科交换机和华为交换机VLAN1通信异常解决方法--思朋信息
发布时间:2014-02-25 浏览次数:6012
    苏州思朋信息科技有限公司2014年02月25日下午16:00新报道显示:苏州思朋CCNA培训基本配置,思朋行业领导者。苏州思朋信息科技有限公司,联系人:何老师,电话:0512-81881012,公司地址:苏州市三香路1298号光大银行大厦16楼B座。
    
    思科交换机和华为交换机VLAN1通信异常,相信很多朋友都遇到过,毕竟在项目中遇到混搭的设备还是很多的,当遇到如下的问题的时候,如何合理的解决,思朋CCIE给您提供一个合理的解决方案,还不赶快收藏!
问题:
有一台5300,用一个光口与思科的6509一个光口做trunk,两个光口都打成了trunk
5300的vlan 1作为管理地址。但是就是ping不通6509上的vlan 1的地址。

Cisco 交换机配置
show run int g1/0/12
Building configuration...

Current configuration : 134 bytes
!
interface GigabitEthernet1/0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
 no ip address
 speed nonegotiate
end

问题在华为交换机配置上
1华为交换机初始配置 

[Quidway-GigabitEthernet0/1/1]dis this # interface GigabitEthernet0/1/1  port default vlan 1  bpdu enable  ntdp enable  ndp enable # return -- ------------------------------------------------------------------- [Quidway-GigabitEthernet0/1/1]port link-type trunk   Error: Link-type trunk conflicts with default VLAN attribute on a port. 
2建立trunk必须删除原来默认VLAN 1
 [Quidway-GigabitEthernet0/1/1]undo port default vlan Oct  1 2008 01:26:42 Quidway %%01IFNET/4/IF_STATE(l): Interface Vlanif1 has turn ed into DOWN state. [Quidway-GigabitEthernet0/1/1] Oct  1 2008 01:26:42 Quidway %%01IFNET/4/LINK_STATE(l): Line protocol on interfa ce Vlanif1 has turned into DOWN state. 
---------------------------------------------------- Quidway-GigabitEthernet0/1/1]dis this # interface GigabitEthernet0/1/1  bpdu enable  ntdp enable  ndp enable ----------------------------------------------------------
3 建立trunk
return [Quidway-GigabitEthernet0/1/1] Quidway-GigabitEthernet0/1/1]port link-type trunk Quidway-GigabitEthernet0/1/1]port trunk allow-pass vlan all --------------------- [Quidway-GigabitEthernet0/1/1]dis this # interface GigabitEthernet0/1/1  port link-type trunk  port trunk allow-pass vlan 1 to 4094  bpdu enable  ntdp enable  ndp enable # return -------------------------------- ping 对端思科vlan 1 地址不通
[Quidway-GigabitEthernet0/1/1]ping 192.168.0.52   PING 192.168.0.52: 56  data bytes, press CTRL_C to break     Request time out     Request time out     Request time out     Request time out     Request time out    --- 192.168.0.52 ping statistics ---     5 packet(s) transmitted     0 packet(s) received     100.00% packet loss 
-----------------------------------------
4 必须删除原来接口trunk,否则无法设置默认vlan 即思科所谓native vlan
[Quidway-GigabitEthernet0/1/1]undo port link-type
---------------------------------------------
5 把刚才删除默认VLAN1 恢复
[Quidway-GigabitEthernet0/1/1]port default vlan 1

[Quidway-GigabitEthernet0/1/1]dis this
#
interface GigabitEthernet0/1/1
 port default vlan 1
 port trunk allow-pass vlan 1 to 4094
 bpdu enable
 ntdp enable
 ndp enable
#
Return
Return
ping 对端思科vlan 1 地址 OK
[Quidway-GigabitEthernet0/1/1]ping 192.168.0.52
    PING 192.168.0.52: 56  data bytes, press CTRL_C to break
    Reply from 192.168.0.52: bytes=56 Sequence=1 ttl=255 time=1 ms
    Reply from 192.168.0.52: bytes=56 Sequence=2 ttl=255 time=1 ms
    Reply from 192.168.0.52: bytes=56 Sequence=3 ttl=255 time=1 ms
    Reply from 192.168.0.52: bytes=56 Sequence=4 ttl=255 time=1 ms
    Reply from 192.168.0.52: bytes=56 Sequence=5 ttl=255 time=1 ms

  --- 192.168.0.52 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
round-trip min/avg/max = 1/1/1 ms
[Quidway-GigabitEthernet0/1/1]

ping 对端思科vlan 100 地址OK
[Quidway-GigabitEthernet0/1/1]ping 10.1.1.2
  PING 10.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=255 time=1 ms
    Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=10 ms
    Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=1 ms
    Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=1 ms
    Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=255 time=1 ms

  --- 10.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 1/2/10 ms
    本站内容不得转载,违者必究!本站关键词:苏州思朋,思科,苏州CCIE,华为,交换机
思朋简介
联系我们
官方微博
思朋特色
服务宗旨
企业服务
商务合作
企业运维

Copyright 2023 江苏思朋信息科技有限公司 版权所有 技术支持:星度网络 苏ICP备2021003433号-2

地址:苏州市吴中区石湖西路188号万达广场西楼(苏州大学国家大学科技园吴中分园)19楼1902室(吴中万达1号门附近) 咨询热线:0512-80682876