cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4079
Views
8
Helpful
6
Replies

default gateway and vlans

hello

i was doing this lab http://danscourses.com/switch-vlan-packet-tracer-challenge/ and i fot everything right until a got stuck at a certain point without understand why i can't get the full mark , the thing is that at grade assessment it says that i didn't give a default getaway to the routers

i don't understand why would i give them a default gateway , i'm using vlans can someone pls check this lab

http://danscourses.com/switch-vlan-packet-tracer-challenge/ thanks

6 Replies 6

Julio E. Moisa
VIP Alumni
VIP Alumni

Hi

If you do not configure a default gateway on the PCs, they will be able to communicate between the computers over the same network only in few words no gateway is required to enable communication between computers over the same network. The default gateway is configured to enable the communication between different networks otherwise it will not possible. 

Now the default gateways are configured on layer 3 devices only, they have the capacity to create routing. The routers don't need default gateways they can be reachable via routing. I don't see any router on the topology, it is a layer 2 lab only. The switches 2960 are not able to run routing. 

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

it's my bad i don't mean router i meant switch , it's asking the default gateway on a switch not a router , sorry for misleading you , what i don't understand is how can it wait for me to write a default gateway when i'm using multiple vlans ?

Try with:

Switch(config)# ip default-gateway <IP_address>

Since Layer 2 Switches does not have a Routing Table, they need a Default Gateway mainly to be able to get remote access to them.

Hi

Hector has provided the command to configure the default gateway on a switch, it is basically used for the administrative vlan in order to manage the switch and be able to reach it remotely. You can configure 1 default gateway on the switch only. 

Multilayer switches are able execute routing to create inter vlan routing but a switch 2960 has no the capability, it works on layer 2 only.




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

ahh ok i get it now , the exercise was waiting that i add the default gateway for the management vlan for remote management it said at the start that the default gateway is the first address on the network so i should had done ip default gateway 192.168.88.1 as my default gateway , it's clear now thanks guys

Yeap, that is correct, the default gateway can be any valid IP address, but in my personal opinion I use the first (.1), there are other network administrators who use the last valid IP of a the network. The idea is always keep an order or standard.

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<