zhoubuhe 发表于 2017-12-17 21:12:38

思科三层交换机问题

如图:pc#ping不通1.1.1.1 为什么不通。麻烦说明原因。谢谢
配置:
=======================================
2:二层交换机
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport trunk native vlan 99
switchport trunk allowed vlan 10,99
switchport mode trunk
duplex auto
!

!
interface Ethernet3/0
switchport access vlan 10
switchport mode access
duplex auto
spanning-tree portfast
!
interface Ethernet3/1
switchport access vlan 10
switchport mode access
duplex auto
spanning-tree portfast
=============================================
3:三层交换机已经启用ip routing
interface Ethernet0/0
switchport trunk allowed vlan 10,99
switchport trunk encapsulation dot1q
switchport trunk native vlan 99
switchport mode trunk
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet1/0
no switchport
ip address 193.1.1.2 255.255.255.252
ip ospf 100 area 0
duplex auto
!
interface Ethernet1/1
!
interface Ethernet1/2
!
interface Ethernet1/3
!
interface Ethernet2/0
!
interface Ethernet2/1
!
interface Ethernet2/2
!
interface Ethernet2/3
!
interface Ethernet3/0
!
interface Ethernet3/1
!
interface Ethernet3/2
!
interface Ethernet3/3
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.10.250 255.255.255.0
ip ospf 100 area 0
!
router ospf 100
router-id 1.1.1.1

!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route 1.1.1.1 255.255.255.255 193.1.1.1
!
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
======================================================
ISP:
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip ospf 100 area 0
!
interface Ethernet0/0
ip address 193.1.1.1 255.255.255.252
ip ospf 100 area 0
!
interface Ethernet0/1
no ip address
shutdown
!
interface Ethernet0/2
no ip address
shutdown
!
interface Ethernet0/3
no ip address
shutdown
!
interface Ethernet1/0
no ip address
shutdown
!
interface Ethernet1/1
no ip address
shutdown
!
interface Ethernet1/2
no ip address
shutdown
!
interface Ethernet1/3
no ip address
shutdown
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 100
router-id 2.2.2.2
==========================================
麻烦大家了。谢谢















ackca 发表于 2017-12-17 22:46:22

不是,有张图好吗,还有为什么1台设备的ospf的route-id会在另一台设备的环回接口上

zhoubuhe 发表于 2017-12-17 23:35:12

3# 3# 3# 3# 3# 3# 3# 3# 3# 3# *Dec 17 15:07:41.457: IP: tableid=0, s=192.168.10.100 (Ethernet1/0), d=193.0.0.1 (Ethernet1/0), routed via FIB *Dec 17 15:07:41.457: IP: s=193.1.1.1 (local), d=192.168.10.100, len 56, local feature, Auth Proxy(16), rtype 0, forus FALSE, sendself FALSE, mtu 0, fwdchk FALSE *Dec 17 15:07:41.457: IP: tableid=0, s=193.1.1.1 (local), d=192.168.10.100 (Vlan10), routed via FIB *Dec 17 15:07:41.457: IP: s=193.1.1.1 (local), d=192.168.10.100 (Vlan10), len 56, sending *Dec 17 15:07:41.457: IP: s=193.1.1.1 (local), d=192.168.10.100 (Vlan10), len 56, sending full packet *Dec 17 15:07:41.457: IP: s=192.168.10.100 (Ethernet1/0), d=193.0.0.1, len 100, input feature 3#, packet consumed, MCI Check(109), rtype 0, forus FALSE, sendself FALSE, mtu 0, fwdchk FALSE 3# *Dec 17 15:07:42.610: IP: s=192.168.10.250 (local), d=224.0.0.5 (Vlan10), len 76, local feature, Auth Proxy(16), rtype 0, forus FALSE, sendself FALSE, mtu 0, fwdchk FALSE *Dec 17 15:07:42.610: IP: s=192.168.10.250 (local), d=224.0.0.5 (Vlan10), len 76, sending broad/multicast *Dec 17 15:07:42.610: IP: s=192.168.10.250 (local), d=224.0.0.5 (Vlan10), len 76, sending full packet *Dec 17 15:07:43.451: IP: tableid=0, s=192.168.10.100 (Ethernet1/0), d=

zhoubuhe 发表于 2017-12-17 23:37:34



能ping通网关。不能ping通外网1.1.1.1

zhoubuhe 发表于 2017-12-17 23:52:28



能ping通网关。不能ping通外网1.1.1.1

jsjsboy 发表于 2017-12-18 04:31:46

这位朋友,你的图呢,至少也说明一下设备怎么连的吧

Rockyw 发表于 2017-12-18 11:09:07

traceroute一下看看是哪个设备丢的包

eigrpospf 发表于 2018-3-22 23:45:16

{:6_267:}{:6_267:}

eigrpospf 发表于 2018-3-22 23:45:31

{:6_276:}
页: [1]
查看完整版本: 思科三层交换机问题