- The default gateway is the device on the network
to which non-local traffic is forwarded.
The default gateway, in this typology, is the west router.
The west router supports the forwarding of traffic
from all of the hosts that are attached
to that local area network.
Since the switch is a local network device,
it requires a default gateway in order to forward traffic
to hosts on a remote network.
If you do not configure default gateway on a switch
you will not be able to manage the switch
from a remote location, as the switch
will not be able to respond to remote login requests.
I'm going to demonstrate how to configure
the default gateway on the west switch.
Click on the switch, I'm going to go ahead and expand
the window, enter on the keyboard, the password is console0.
I type enable, the password is secret1, enter.
Configure, tab, from the terminal session.
First term is ip and then it's default.
I go ahead and type in ip default-gateway.
The IP address of the west router is 192.168.1.1,
I hit enter on the keyboard, the command then takes.
I'll do a Control + Z, do a show run,
and you can see that I now have a default gateway
set on the switch, so that it can send responses
to requests from the remote login device.