How do you get these two PCs to communicate with each other if they have the IP addresses 192.168.10.5 (PC0) and 192.168.20.5 (PC1)?
PC0 is in Vlan10, and PC1 is in Vlan20, and I've added the IP address 192.168.10.1 255.255.255.0 in "interface vlan 10" and I've added the IP address 192.168.20.1 255.255.255.0 in "interface vlan 20", but they still won't ping each other. What else do I need to do?
I always write interface range f0/1-24 and then "no shutdown" so I don't forget about it later, I know it's not a good idea but it's just packet tracer
Tyler Edwards
Gay OP, you need to configure physical interfaces with IP addresses as well.
Why IP address 192.168.10.2? Fa0/12 is the port connected to PC0?
Gabriel Myers
those ip addresses are not on the same network, they do not know where each other are, just that they are on a different network
they want to send data to their default gateway due to it being an unknown destination
Nicholas Cooper
10.2 will be the gateway for your pc. 10.1 is for for the switch to route between the vlans. Or you can use 10.1 on the physical interface and 10.2 for the int vlan 10.
time to read more theory OP. None of this will make sense without it.
If you just want to make them communicate, you could try making the netmask /19 or less and the ips would be able to communicate (they'd then both be in the 192.168.0.0/19 network).
Only drawback is they would no longer be in separate vlans and you'd have to configure your switch so that each port is in the same vlan.
Blake Torres
Ah okay. So the interface vlan x needs their own IP address, and the physical ports on the switch needs the gateway address for that vlan's IP address, including the PC that's meant to use it.
this makes sense, so port fa0/12 is connected to PC0?
Noah Ward
What about native vlans? If I add 3 more switches. Switch1 for PC0, Switch1 connects to Switch2, Switch2 connects to Switch3, Switch3 connects to PC1 and I add a native vlan called 150.
I'd have to enable trunking and add the native vlan 150, and that's it? I wouldn't have to add vlan 10 and vlan 20?
I know what router on stick is, but I read about layer 3 and wanted to try it. It seems easier, and less troublesome
Cameron Jenkins
As mentioned before, use a 3k switch that can route.