11-19-2022 06:02 PM
Hello, I'm using Cisco Packet Tracer and trying to configure VLANs and routing between them. Here are two tables, which I have used for configuring:
Device | Interface | IP address | Subnet mask | Default gateway |
R1 | G0/1.1 | 192.168.1.1 | 255.255.255.0 | - |
| G0/1.10 | 192.168.10.1 | 255.255.255.0 | - |
| G0/1.20 | 192.168.20.1 | 255.255.255.0 | - |
| Lo0 | 209.165.200.225 | 255.255.255.224 | - |
S1 | VLAN 1 | 192.168.1.11 | 255.255.255.0 | 192.168.1.1 |
S2 | VLAN 1 | 192.168.1.12 | 255.255.255.0 | 192.168.1.1 |
PC-A | Fa0 | 192.168.10.3 | 255.255.255.0 | 192.168.10.1 |
PC-B | Fa0 | 192.168.20.3 | 255.255.255.0 | 192.168.20.1 |
PC-F | Fa0 | 192.168.20.2 | 255.255.255.0 | 192.168.20.1 |
PC-S | Fa0 | 192.168.10.2 | 255.255.255.0 | 192.168.10.1 |
Ports | Attachment | Net |
S1 F0/1 | 802.1Q Trunk | N/A |
S2 F0/1 | 802.1Q Trunk | N/A |
S1 F0/5 | 802.1Q Trunk | N/A |
S1 F0/2 | VLAN 20 – Faculty | 192.168.20.0/24 |
S2 F0/2 | VLAN 10 – Students | 192.168.10.0/24 |
S1 F0/6 | VLAN 10 – Students | 192.168.10.0/24 |
S2 F0/18 | VLAN 20 – Faculty | 192.168.20.0/24 |
My ,pkt file looks like:
I have connected and customized devices, customized VLANs and trunks on switches, customized routing between VLAN based on trunk. Then I have been pinging from PC-A to gateway VLAN 10 with address 192.168.10.0, from PC-A to PC-B, from PC-A to Lo0, from PC-F to PC-S and from PC-S to S2. Everything has been succeded except last: ping from PC-S to switch S2. Where can be the problem? Any ideas?
Solved! Go to Solution.
11-20-2022 02:01 PM
in SW1 and SW2 config trunk native VLAN to be VLAN 1
11-20-2022 02:24 PM
if you want to use VLAN 123 as native VLAN then
1-remove VLAN1 and assign IP you use before for VLAN1 for VLAN 123 in both SW1 & SW2
2- in router remove G0/1.1 and config new subinterface g0/1.123 as native, and use same IP
11-20-2022 02:14 AM
Hello,
post your zipped Packet Tracer project (.pkt) file...
11-20-2022 10:40 AM
Have you seen my attached file? Any suggestions?
11-20-2022 10:53 AM
I have forgot about passwords: for S1 and S2 - ciscoVLAN and class311, for R1 - ciscoRoute and class311
11-20-2022 02:45 AM
11-20-2022 10:44 AM
check the VLAN in both SW1 and SW2 and if some is missing then add it.
11-20-2022 10:52 AM - edited 11-20-2022 10:56 AM
I have checked and results seem good:
11-20-2022 10:56 AM
can you show me the config of interface g0/1 in Router ?
11-20-2022 11:05 AM
Here it is:
11-20-2022 11:09 AM
are
for all PC in VLAN 10 config the GW to be 192.168.10.1 (subinterface in router) ??
for all PC in VLAN 20 config the GW to be 192.168.20.1 (subinterface in router ) ??
11-20-2022 11:25 AM - edited 11-20-2022 11:30 AM
Yes, it is like this. PC-A and PC-S have 192.168.10.1 and PC-B and PC-F 192.168.20.1.
11-20-2022 11:28 AM
OK,
add another PC in both SW and assign VLAN1 to port connect these new PC.
11-20-2022 11:45 AM
What do you mean by assign VLAN1?
11-20-2022 11:49 AM - last edited on 11-23-2022 09:50 PM by Translator
SW1-PC
SW1 use port x/x to connect PC
config port x/x as following
interface x/x
switchport access vlan 1
11-20-2022 11:55 AM
Done for both PCs: PC0 and PC1. Now it looks like this:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide