Configuring default gateway on a Switch
Options
Zyxel_Adam
Posts: 352 Zyxel Employee
How do I set the default gateway on a switch with Management VLAN 1 and IP address 192.168.1.1/24, when the gateway is 192.168.1.254?
There are two methods to set the default gateway in this scenario:
1.Setting the default gateway in management VLAN 1
- Configure via web GUI
- Configure via CLI
Switch# config Switch(config)# VLAN 1 Switch(config-vlan)# ip address default-gateway 192.168.1.254
2.Using a Static Route to set the default gateway
- Configure via web GUI
- Configure via CLI
Switch# config Switch(config)# IP route 0.0.0.0 0.0.0.0 192.168.1.254
*Remember to save the configuration after you finish.
Adam
0
Categories
- All Categories
- 395 Beta Program
- 2.1K Nebula
- 117 Nebula Ideas
- 81 Nebula Status and Incidents
- 5.1K Security
- 82 USG FLEX H Series
- 247 Security Ideas
- 1.3K Switch
- 69 Switch Ideas
- 914 WirelessLAN
- 34 WLAN Ideas
- 5.9K Consumer Product
- 211 Service & License
- 337 News and Release
- 71 Security Advisories
- 21 Education Center
- 5 [Campaign] Zyxel Network Detective
- 2K FAQ
- 912 Nebula FAQ
- 415 Security FAQ
- 237 Switch FAQ
- 207 WirelessLAN FAQ
- 46 Consumer Product FAQ
- 139 Service & License FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 72 About Community
- 62 Security Highlight