|ip default-gateway command
|Page 1 of 1|
|Author:||dellpe [ Sat Feb 22, 2014 1:00 pm ]|
|Post subject:||ip default-gateway command|
I took some very good advice & signed up for the Cisco Learning Lab. The wording on the intial switch setup instructions & the default gateway is a little confusing.
For a switch the ip default-gateway command should be run in the global config mode, correct? The DG value should be for entire switch (any interface), not just vlan1, right?
Using Cisco labs I tried it both ways. Configuring it on vlan1 specifically displays it in the show running-config. Doing it in the global mode (not interface specific) results in no default gateway value displayed. This may be normal for the running-config, or just the way the lab works.
It wouldn't make sense to specify a DG value just for vlan1, would it? You can just relply me or send me an E-mail:[email protected]
|Author:||mikeyb [ Tue Mar 04, 2014 4:58 am ]|
|Post subject:||Re: ip default-gateway command|
Well, the default gateway is where packets go to get out of your LAN out to the internet, and this would the address of the router. VLAN 1 is the default
vlan that all switchports belong to when you first fire up the switch. It cannot be deleted. It can be your management vlan that you use to remotely configure your switches
The default gateway IP address does not have to be in the same subnet as your managment vlan ip address(es), but the port that is connected to the router has to be
in trunking mode
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group