I'm having trouble understanding some basics on a switch. If I have multiple vlan's and each one of those vlan's has a default gateway, then which gateway do I use to put into the switch command "ip default-gateway" for example:
I believe that your question reflects a bit of confusion. Each VLAN has its own default gateway and this is used by the end stations in the VLAN and they need to use the default gateway of the VLAN when they want to access addresses that are outside of the subnet of the VLAN. The default gateway configured on the switch is not to be used by the end stations on any VLAN but is for the switch itself. The management interface on the switch is essentially another IP host and it needs its own default gateway to be able to access addresses in remote subnets. So you would configure a default gateway on the switch that is the layer 3 interface address in the vlan that matches the management interface of the switch.
Think Ric said it best but I will add that seeing it looks like you have ip routing turned on for that switch you would not even use the default gateway command but would instead use a default static route pointing it to the next hop , the default gateway is for when you turn ip routing off on the box .
I obviously interpreted the question in terms of layer 2 switches and answered the question in that context. I believe that my answer is quite correct for layer 2 switches which need the default gateway. Glen has picked up on something that I did not which is that with multiple VLAN interfaces which have IP addresses that it would be a layer 3 switch. Layer 3 switches implement routing logic and do not really need default-gateway configuration.
Hi everyone, I would like to thank you in advance for any help you can provide a newcomer like myself!
Im studying the 100-105 book by Odom and am currently on the topic of Port security. I purchased a used 2960 and I'm trying to follow a...
While deploying a number of 18xx/2802/3802 model access points (APs), which run AP-COS as their operating platform. It can be observed on some occasions that while many of their access points were able to join the fabric WLC withou...
I am going to design and build an LAN network under a tunnel underground with long distance between the switches.
I will have 2 Catalyst switches and 8 Industrial IE3000, and they will be connected with fiber.
For now I am planning on use Layer-2 s...