cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
616
Views
0
Helpful
3
Replies

Question About VLANs, Switches and Default-Gateways

eschubauer
Level 1
Level 1

I created a topology in GNS3 with a router-on-a-stick setup.

I have a c3725 router on the right. To it's left interface connection is SW1. To the left of this SW1 is a second switch named SW2. To the top of SW1 is a PC1 and the bottom is a Server1. To the top of SW2 is a PC2 and the bottom a Server2.

VLAN 13 for the Router

VLAN 65 for the PCs

VLAN 80 for the servers

All of the switch INT's are configured to switchport mode access with the specific VLAN they are apart of.

Trunking with dot1q encapsulation is enabled between the Switches and the Router.

The sub-interfaces are configured on R1 for all 3 VLANs (192.168.13.254, 192.168.65.254, 192.168.80.254)

The question that I have is:

Do I need to still configure both switch VLAN 1's with a default-gateway to the router? The reason I ask is because I cannot ping the router from Server1 or Server2. It says there is no default-gateway set. Does that mean I need to set one on the switches it goes through to get to R1 or does the default-gateway need to be set on the servers and PCs?

Also will I be using 192.168.13.254 which is the VLAN for R1 as the default-gateway?

3 Replies 3

InayathUlla Sharieff
Cisco Employee
Cisco Employee

Can you please attach the pkt file so that i have a look at it?

Is this what you were looking for? This is my GNS3 file and a screenshot.

Were you able to look at my GNS3 file and determine the answers to my questions at all?