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:05 PM
This is bad for safety, if I don't want to config like that?
11-20-2022 02:06 PM
sorry I dont get what you mean ?
11-20-2022 02:11 PM - last edited on 11-23-2022 09:57 PM by Translator
I have done these commands for S1 cause I need actually native VLAN to be VLAN123:
S1(config)#int range fa0/1,fa0/5
S1(config-if-range)#switchport trunk native vlan 123
S1(config-if-range)#switchport trunk allowed vlan 1,10,20,123
The similar thing is needed for S2 too.
11-20-2022 02:16 PM - edited 11-20-2022 02:17 PM
it will not work, VLAN in router native is different than native vlan in SW.
you must match it.
11-20-2022 02:19 PM
So what should I fix then? You said that trunk native VLAN for Switches should be VLAN1, I need VLAN123 for that thing. Should I change something in Router configuration?
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:45 PM
Thank you so much, forgot about native...
11-20-2022 03:00 PM
You are so so welcome
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