Configuring default gateway on a Switch

Posts: 430  Zyxel Employee
Zyxel Certified Network Administrator - Nebula 25 Answers First Comment Friend Collector

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
image.png
  • 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
image.png
  • 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

Welcome!

It looks like you're new here. If you want to get involved, click on this button!

Welcome!

It looks like you're new here. If you want to get involved, click on this button!