我在 Eve-ng 模拟器上做了一个 VLAN 间 L3 交换机实验室。拓扑如下
这是 L3 交换机上某些show命令的输出:
Building configuration...
Current configuration : 1422 bytes
!
! Last configuration change at 09:42:06 EET Thu Nov 29 2018
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
no logging console
!
no aaa new-model
clock timezone EET 2 0
!
ip routing
!
ip dhcp excluded-address 192.168.20.1 192.168.20.10
ip dhcp excluded-address 192.168.10.1 192.168.10.10
!
ip dhcp pool OfficePool
network 192.168.10.0 255.255.255.0
default-router 192.168.10.2
dns-server 8.8.8.8
!
ip dhcp pool FactoryPool
network 192.168.20.0 255.255.255.0
default-router 192.168.20.2
dns-server 8.8.8.8
!
!
ip cef
no ipv6 cef
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface Ethernet0/0
switchport access vlan 10
switchport mode access
!
interface Ethernet0/1
switchport access vlan 20
switchport mode access
!
interface Ethernet0/2
switchport access vlan 100
switchport mode access
!
interface Ethernet0/3
!
interface Vlan10
ip address 192.168.10.2 255.255.255.0
!
interface Vlan20
ip address 192.168.20.2 255.255.255.0
!
interface Vlan100
ip address 192.168.100.2 255.255.255.0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
!
!
end
Switch#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is not set
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, Vlan10
L 192.168.10.2/32 is directly connected, Vlan10
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, Vlan20
L 192.168.20.2/32 is directly connected, Vlan20
192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.100.0/24 is directly connected, Vlan100
L 192.168.100.2/32 is directly connected, Vlan100
Switch#sh ip int brief
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 unassigned YES unset up up
Ethernet0/1 unassigned YES unset up up
Ethernet0/2 unassigned YES unset up up
Ethernet0/3 unassigned YES unset up up
Vlan10 192.168.10.2 YES manual up up
Vlan20 192.168.20.2 YES manual up up
Vlan100 192.168.100.2 YES manual up up
让旁路从 L3 的上层链路切换到网络云部分。在 LAN 网络上,PC 可以通过 DHCP 获取 IP,但我无法从 Vlan10 ping 到 Vlan20(反之亦然)
尝试从一个vlan跟踪到另一个vlan,似乎L3交换机无法在两个vlan之间路由。
您能否指出我在这里做错了什么,如何 Vlan10 可以 ping 到 Vlan20。
感谢您的阅读,请提供帮助。