Configuring default gateway on a Switch
Options
Zyxel_Adam
Posts: 429
Zyxel Employee
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
- 439 Beta Program
- 2.8K Nebula
- 202 Nebula Ideas
- 126 Nebula Status and Incidents
- 6.3K Security
- 512 USG FLEX H Series
- 328 Security Ideas
- 1.7K Switch
- 84 Switch Ideas
- 1.3K Wireless
- 49 Wireless Ideas
- 6.8K Consumer Product
- 288 Service & License
- 458 News and Release
- 90 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 4.3K FAQ
- 34 Documents
- 85 About Community
- 97 Security Highlight

