您好,{unnamed company} 已经建立了一些 VLSM 网络,但它们重叠。
所以网络 1 是10.15.0.0/16,网络 2 是10.15.208.0/24。
现在你可以看到这些是如何重叠的:
10.15.0.1 - 254.255
10.15.208.1 - 254
...它们都包含10.15.208.2. 这是网络 2 上 DC 的 IP。
网络 1 中的机器可以连接到 DC。
我的问题是……如何?
我通过数据包跟踪器的模拟运行它,我可以看到网络 1 上的主机发送一个 ARP,路由器 0 用自己的 mac 地址回复该 ARP。这是为什么?是不是因为路由器 0 有 10.15.208.0/24 的静态路由?
这种奇怪的设置还有什么含义?
路由器 0:
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.15.0.0/16 is directly connected, FastEthernet0/0
S 10.15.208.0/24 [1/0] via 192.168.0.2
C 192.168.0.0/16 is directly connected, FastEthernet0/1
Building configuration...
Current configuration : 557 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
ip address 10.15.0.1 255.255.0.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.0.1 255.255.0.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 10.15.208.0 255.255.255.0 192.168.0.2
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
路由器 1:
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
S 10.15.0.0/16 [1/0] via 192.168.0.1
C 10.15.208.0/24 is directly connected, FastEthernet0/0
C 192.168.0.0/16 is directly connected, FastEthernet0/1
Building configuration...
Current configuration : 557 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
ip address 10.15.208.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.0.2 255.255.0.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 10.15.0.0 255.255.0.0 192.168.0.1
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end

