ā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