Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi with me a D-link DES-3026 24 port manageable switch I know how to set the switch ip address command but I don't know the command how to set the default gateway of the switch. If someone knows please let me know.

a switch doesn't need a default gateway. are you thinking a router?
Give a person a fish, they eat for a day. Suggest they internet search and they learn a skill for a lifetime.

Actually Wanderer, most managed switches have a DG setting. Whether it's required or not depends a lot on your network setup.
If the command set in your D-Link managed switch is anything like a Cisco then from the command line you would:
- go into privileged mode:
Command: enable (may require password)- enter Globabl Configuration mode:
Command: configure terminal- enter your DG as follows:
Command: ip default-gateway XXX.XXX.XXX.XXX

Yep I know that but unless you are going to admin from the internet there shouldn't be a reason for putting one it.
The question led me to believe the poster was expecting router functionality with a switch.
Give a person a fish, they eat for a day. Suggest they internet search and they learn a skill for a lifetime.

All our switches have DG's. We have an admin VLAN on which most switches reside with a default xxx.250 IP for the DG (this being our Core-A switch...we have two for redundancy with Core-B being xxx.251). Some switches however reside on a particular subnet (we're moving away from that structure to all switches being on the admin subnet) again with the same xxx.250 DG. Only in this case, the xxx reflects the subnet the switch is on, not the admin subnet.
You can't actually admin any of our switches from the internet as that would require crossing several routers/firewalls to get there and the rule sets in place don't allow for external access to our LAN. To admin any switch (regardless of subnet) one has to be logged in locally within the domain. Basically, physically in the building plugged into the hardwired network as our WLAN is not allowed access to any internal resources for security reasons.
I grabbed an old 2900XL to use at home. I have it setup as a single VLAN (the default VLAN1) with IP 192.168.0.250 and a DG of 192.168.0.1 (IP of my router). I had suspected from the original post that this was what they wished to accomplish....ie: no VLAN's just a switch with an IP and DG. I doubt the DG is necessary as the switch will not be attempting to connect to anything (same as in mine at home) but in my case, it's just habit to put a DG in.........LOL. In all likelyhood, they don't require it setup with a DG, just setup as a basic switch. But, I figured I'd answer the question as best as I could in case there was info that should have been added to the post but hadn't been.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |