11-06-2012 12:03 PM - edited 03-07-2019 09:53 AM
Hi all,
Need to confirm Network config below
We have client where they are using layer 3 switch with no ip routing enabled.
It has default-gateway command configured.
Need to confirm that ip route command is used for layer 3 switch only and it switch is used as layer 2 only it is ok to be removed?
Thanks
Mahesh
Solved! Go to Solution.
11-06-2012 12:55 PM
Hi Mahesh,
Yes, if the switch is layer-2 only, you don't need the IP routing command, you just need the ip default-gateway command.
HTH
11-06-2012 01:14 PM
Mahesh,
Running default-gateway is OK.
Example
!
no ip routing
!
interface vlan 555
description *** Management Vlan **
ip address 10.5.5.5 255.255.255.0
no shut
!
ip default-gateway 10.5.5.254
!
So basically the ip address 10.5.5.5 is just for managing the swtch.
The switch is only carrying out layer 2 functions
Regards,
Alex.
Please rate useful posts.
11-06-2012 12:55 PM
Hi Mahesh,
Yes, if the switch is layer-2 only, you don't need the IP routing command, you just need the ip default-gateway command.
HTH
11-06-2012 01:06 PM
Hi Reza,
Many thanks again
Mahesh
11-06-2012 01:14 PM
Mahesh,
Running default-gateway is OK.
Example
!
no ip routing
!
interface vlan 555
description *** Management Vlan **
ip address 10.5.5.5 255.255.255.0
no shut
!
ip default-gateway 10.5.5.254
!
So basically the ip address 10.5.5.5 is just for managing the swtch.
The switch is only carrying out layer 2 functions
Regards,
Alex.
Please rate useful posts.
11-06-2012 01:28 PM
Hi Alex,
Thanks for additional info
Regards
Mahesh
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