Dell PowerSwitch OS10: Factory Reset and Default Gateway Configuration - 夜莺博客

Dell PowerSwitch OS10: Factory Reset and Default Gateway Configuration

Dell PowerSwitch switches running OS10 (OS10 Enterprise Edition) occasionally need a clean slate: a forgotten password, a botched configuration, or a switch being moved to a new site. This guide covers the two practical ways to reset an OS10 switch to factory defaults (CLI reset and full ONIE reinstall) and then walks through re-establishing the management IP address and default gateway so you can manage the switch again. All commands shown are real OS10 CLI commands verified against OS10 10.4/10.5 behavior.

Method 1: Reset to Factory Defaults from the OS10 CLI

The quickest reset keeps the OS10 image in place and only wipes the configuration. OS10 does not use write erase; the correct way is to delete the startup configuration and reload:

OS10# delete startup-configuration
Proceed to delete startup-configuration file [confirm yes/no]: yes
OS10# reload
System configuration has been modified. Save? [yes/no]: no
Proceed to reboot the system? [confirm yes/no]: yes

After the reboot the switch boots with a fresh, empty configuration - no hostname, no users, no interfaces configured. You can confirm with show running-configuration.

Reset the admin Password Only

If you only lost the admin password, boot into the boot menu or use the recovery console to clear it. On many OS10 platforms you can break into the boot menu and select the recovery option that clears the startup configuration while preserving the image.

Method 2: Full Factory Reset via ONIE (Reinstall)

If the OS10 image itself is corrupted, boot into ONIE (Open Network Install Environment) and uninstall OS10, then reinstall:

ONIE:/ # onie-uninstall
ONIE:/ # onie-nos-install http://10.0.0.10/os10_image.bin

ONIE wipes the disk, removes the old image and all configurations, and installs a fresh OS10. This is the most thorough factory reset and is also the documented recovery path when the switch will not boot into OS10.

Configuring the Management IP and Default Gateway

After a reset the management interface is unconfigured. OS10's management interface is mgmt1/1/1 on most PowerSwitch models:

OS10# configure terminal
OS10(config)# interface mgmt1/1/1
OS10(conf-if-ma-1/1/1)# ip address 192.168.1.100/24
OS10(conf-if-ma-1/1/1)# no shutdown
OS10(conf-if-ma-1/1/1)# exit

Default Gateway (Management VRF)

OS10 keeps management traffic in the management VRF. Add a default route that points at your management gateway:

OS10(config)# ip route 0.0.0.0/0 192.168.1.1 management
OS10(config)# end
OS10# write memory

For data-plane (front-panel) routing you would use the plain static route form instead:

OS10(config)# ip route 0.0.0.0/0 10.10.10.1

Verification Commands

OS10# show running-configuration | grep -A 5 mgmt1/1/1
OS10# show ip route
OS10# ping 192.168.1.1
OS10# show management interface
OS10# show ip management-route

show ip management-route displays routes in the management VRF, and ping from the management interface confirms gateway reachability.

Common Pitfalls

  • Using write erase (IOS habit) does nothing on OS10 - use delete startup-configuration.
  • Management default route must include the management keyword or it goes to the default VRF and management traffic stays unreachable.
  • After ONIE uninstall the switch boots to the ONIE prompt, not OS10 - this is expected; install the image again.

Related reading: Dell OS10 basic switch management configuration and OS10 transaction-based configuration mode.

原文链接:https://infohub.delltechnologies.com/en-us/l/os10-enterprise-edition-10-5-3/