08-15-2012 09:01 PM - edited 03-07-2019 08:22 AM
Hi Everyone,
4500 switch is connected to 2960 switch.
4500 config
Vlan 10
name Data
It has ip helper configured that points to DHCP.
From 4500 switch port - port x connects to 2960 port.
Port x is configured as trunk between 4500 and 2960.
***********************************************************************************
2960 config
vlan 10
name data
All user ports are configured under vlan 10 and as access ports.
Port x is trunk port connected frpm 2960 to 4500 switch allowing vlan 1 and 10 only.
This switch has no default gateway configured.
We connected user PC on 2960 switchports and they were able to get the IP from DHCP server and were able to access the network
My question is how users on 2960 switch are able to access the network without ip default-gateway configured on 2960 switch?
Solved! Go to Solution.
08-15-2012 09:30 PM
mahesh18 wrote:
Hi Everyone,
4500 switch is connected to 2960 switch.
4500 config
Vlan 10
name Data
It has ip helper configured that points to DHCP.
From 4500 switch port - port x connects to 2960 port.
Port x is configured as trunk between 4500 and 2960.
***********************************************************************************
2960 config
vlan 10
name data
All user ports are configured under vlan 10 and as access ports.
Port x is trunk port connected frpm 2960 to 4500 switch allowing vlan 1 and 10 only.
This switch has no default gateway configured.
We connected user PC on 2960 switchports and they were able to get the IP from DHCP server and were able to access the network
My question is how users on 2960 switch are able to access the network without ip default-gateway configured on 2960 switch?
The 2960 passes the requests to the 4500 switch over the trunk, which in turn passes them to the default gateway. As long as the ports are in the same access VLAN, and that VLAN is trunked to a device where there *IS* access to the default gateay, then the traffic will be passed.
Layer 2 does not need a default gateway at layer 3 to allow devices to communicate. You can have a bunch of devices in a single layer 2 VLAN and provided they're all configured with the same IP subnet at layer 3, they will *all* be able to communicate with each other - they just won't be able to talk to anything outside that VLAN. You only need layer 3 when you need to move your traffic outside the single subnet environment (which is almost always these days, I admit).
If your DHCP server is connected to an access port in VLAN 10, then *any* device in VLAN 10 will be able to get an IP address from it, and access other devices. Only when you need to get OUT of VLAN 10 do you need a default gateway for higher level protocols to work.
Cheers
08-16-2012 05:32 PM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
My question is how users on 2960 switch are able to access the network without ip default-gateway configured on 2960 switch?
The default-gateway doesn't support connected hosts to the switch, its purpose to notify the switch (as a host) what the gateway IP is.
If you connected your 2960 to a 4500 access port in VLAN10, clients connecting to the 2960 would work the same provided the port they connected to on the 2960 and the port connecting to the 4500 were in the same VLAN. I.e. VLAN 10 not required on the 2960 nor is trunk link. (NB: an unmanaged non-VLAN capable switch would also work in this configuration.)
08-15-2012 09:05 PM
The switch only needs a default gateway if it will be doing routing. In your case the 4500 will do the routing and should require a default route. The dhcp server hands the client its ip address along with subnet mask and default route. The rest is handled by the 4500.
Sent from Cisco Technical Support iPhone App
08-15-2012 09:30 PM
mahesh18 wrote:
Hi Everyone,
4500 switch is connected to 2960 switch.
4500 config
Vlan 10
name Data
It has ip helper configured that points to DHCP.
From 4500 switch port - port x connects to 2960 port.
Port x is configured as trunk between 4500 and 2960.
***********************************************************************************
2960 config
vlan 10
name data
All user ports are configured under vlan 10 and as access ports.
Port x is trunk port connected frpm 2960 to 4500 switch allowing vlan 1 and 10 only.
This switch has no default gateway configured.
We connected user PC on 2960 switchports and they were able to get the IP from DHCP server and were able to access the network
My question is how users on 2960 switch are able to access the network without ip default-gateway configured on 2960 switch?
The 2960 passes the requests to the 4500 switch over the trunk, which in turn passes them to the default gateway. As long as the ports are in the same access VLAN, and that VLAN is trunked to a device where there *IS* access to the default gateay, then the traffic will be passed.
Layer 2 does not need a default gateway at layer 3 to allow devices to communicate. You can have a bunch of devices in a single layer 2 VLAN and provided they're all configured with the same IP subnet at layer 3, they will *all* be able to communicate with each other - they just won't be able to talk to anything outside that VLAN. You only need layer 3 when you need to move your traffic outside the single subnet environment (which is almost always these days, I admit).
If your DHCP server is connected to an access port in VLAN 10, then *any* device in VLAN 10 will be able to get an IP address from it, and access other devices. Only when you need to get OUT of VLAN 10 do you need a default gateway for higher level protocols to work.
Cheers
08-16-2012 09:27 AM
Hi Darren,
Thanks for reply.
So layer 2 switch 2960 has no interface vlan 10
It is has layer 2 vlan 10
Also there is no management IP on layer 2 .
So on layer 2 switch we just create interface vlan for management purposes like telnet?
08-16-2012 03:18 PM
mahesh18 wrote:
Hi Darren,
Thanks for reply.
So layer 2 switch 2960 has no interface vlan 10
It is has layer 2 vlan 10
Also there is no management IP on layer 2 .
So on layer 2 switch we just create interface vlan for management purposes like telnet?
Mahesh.
On the layter 2 switch, I would create an IP address on VLAN1's (the untagged VLAN) SVI - and use the same VLAN on the other switch, in the same IP subnet range, for its management address.
There are, of course, exceptions - but I usually use VLAN 1 for management because I know it exists by default on even non-layer3 switches like the 2950 and 2960.
Cheers
08-17-2012 07:45 PM
Many thanks Darren and Joseph.
Have a great weekend.
08-16-2012 05:32 PM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
My question is how users on 2960 switch are able to access the network without ip default-gateway configured on 2960 switch?
The default-gateway doesn't support connected hosts to the switch, its purpose to notify the switch (as a host) what the gateway IP is.
If you connected your 2960 to a 4500 access port in VLAN10, clients connecting to the 2960 would work the same provided the port they connected to on the 2960 and the port connecting to the 4500 were in the same VLAN. I.e. VLAN 10 not required on the 2960 nor is trunk link. (NB: an unmanaged non-VLAN capable switch would also work in this configuration.)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide