问题:
有一台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
5 再次感谢大家!
因篇幅问题不能全部显示,请点此查看更多更全内容