The switch, while a layer-3 switch, is only a layer-2 switch for a LAN. As a layer-2 switch, the switch doesn't get involved with the ARP request/reply, unless it is the target of the ARP request, or it is making the ARP request. Of note is that the SVI address of the layer-3 switch is just another host on the LAN, and it will update its layer-3 ARP cache when it sees the ARP request, but it will not actually interpose itself in the process between the two hosts.
The switch will also update its MAC address table for the LAN with any frame coming into any of its layer-2 interfaces.
I think your problem stems from the wireless router, which, unfortunately, is a consumer-grade device, so it is explicitly off-topic here. Likely, it is configured with a firewall that drops ICMP on the WAN interface, and it will not respond to ping. You will need to disable that if you want to ping. If the wireless router is performing NAT, then you will have a problem initiating traffic from outside to inside the router. You should disable NAT if you want to ping the laptop.
Also, you will need routes in both routers so that they know how to reach the networks on the other side of the other router. Routers learn routes in three ways:
- Directly connected networks
- Statically configured routes
- Dynamically from a routing protocol
Router1 will need to know that it should go to the wireless router in order to reach the network on the other side of the wireless router. You have not given use the network that you are using on the other side of the wireless router, so I will use 10.1.1.0/24
as an example. On Router1, you can use a static route:
ip route 10.1.1.0 255.255.255.0 192.168.1.1
On the wireless router, you will need to configure routes to 192.168.2.0/24
and 192.168.3.0/24through
192.168.1.254. The wireless router already knows how to reach the
192.168.1.0/24` network because it is directly connected to it.
For your other configurations, You should make some tweaks to follow best practices.
On Router1, you should set the host name to match the diagram. You will also need a password on the VTY lines if expect to connect to the router via telnet.
hostname Router1
!
line vty 0 15
password MyRouter1Password
login
!
On Switch0, you should configure a trunk interface for the interface that connects to Switch1. Use descriptions on the interfaces, including the one connected to the wireless router. Also, you will also need a password on the VTY lines if expect to connect to the switch via telnet.
hostname Switch0
!
interface FastEthernet0/23
description Connection to Wireless Router F0/0
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/24
description Connection to Switch1 F0/22
switchport mode trunk
!
line vty 0 15
password MySwitch0Password
login
!
On Switch1, use descriptions on the interfaces. Also, you will also need a password on the VTY lines if expect to connect to the switch via telnet.
hostname Switch1
!
interface FastEthernet0/22
description Connection to Switch0 F0/24
switchport mode trunk
!
interface FastEthernet0/23
description Connection to Switch2 F0/24
switchport mode trunk
!
interface FastEthernet0/24
description Connection to Router1 F0/1
switchport mode trunk
!
line vty 0 15
password MySwitch1Password
login
!
On Switch2, use descriptions on the interfaces. Also, you will also need a password on the VTY lines if expect to connect to the switch via telnet.
hostname Switch2
!
interface FastEthernet0/24
description Connection to Switch1 F0/23
switchport mode trunk
!
line vty 0 15
password MySwitch2Password
login
!
Best Answer
No. It won't work
Let's look at PC1:
Its IP address is 10.10.10.1, its netmask is /24 or 255.255.255.0
This means that as far as it is concerned, IP addresses in the rage of 10.10.10.0 - 10.10.10.255 are in the same subnet. So for destinations with these addresses, it can use ARP to find their MAC address, and send them packets (actually, frames) directly. All other addresses are unreachable to him, since no gateway is defined.
The same is true about PC2, with the address range 192.168.1.1-192.168.1.255
To make the two PCs be able to ping each other without adding a router or changing the IPs, you'd need to change the network masks to 0. So PC1 will be 10.10.10.1/0 and PC2 will be 192.168.1.1/0, making the subnet range for both of them the same 0.0.0.0-255.255.255.255