Dell OS10 Basic Switch Management: CLI Configuration Guide - 夜莺博客

Dell OS10 Basic Switch Management: CLI Configuration Guide

Dell PowerSwitch OS10 switches ship with a factory default configuration where the management interface obtains an address via DHCP, which is rarely what you want in a production network. This guide walks through the exact CLI steps to set a static IP on the management interface, add a management route, create an admin-level user with the correct role, and save everything so it survives a reboot. Every command is shown as typed on the switch, from the default admin/admin login to final verification.

Prerequisites for OS10 Management Configuration

The steps assume your S-series switch is at factory defaults. Log in to privileged exec mode with the default credentials (admin/admin) using the console or a management IP, then verify the current management interface state with show running-configuration interface mgmt 1/1/1.

Configuring a Static Management IP

Enter configuration mode and configure the management interface with a static address, removing DHCP first:

OS10# configure terminal
OS10(config)# interface mgmt 1/1/1
OS10(conf-if-ma-1/1/1)# no ip address dhcp
OS10(conf-if-ma-1/1/1)# ip address 1.1.1.1/24
OS10(conf-if-ma-1/1/1)# exit

Then create a default management route pointing at the forwarding router:

OS10(config)# management route 0.0.0.0/0 1.1.1.2
OS10(config)# end

Verifying the Management Configuration

Confirm both the interface and the route are correct:

OS10# show running-configuration interface mgmt 1/1/1
! interface mgmt1/1/1
 no shutdown
 no ip address dhcp
 ip address 1.1.1.1/24
 ipv6 address autoconfig

OS10# show running-configuration management-route
! management route 0.0.0.0/0 1.1.1.2

Creating an Admin-Level User

OS10 role-based access control lets you assign one of four roles: sysadmin, netoperator, secadmin and netadmin. Create a sysadmin user as follows:

OS10# configure terminal
OS10(config)# username test password P@ssw0rd!123 role sysadmin
OS10(config)# end
OS10# show running-configuration users
username test password **** role sysadmin priv-lvl 15

Saving the Configuration

Persist the running configuration to startup configuration with write memory. For related open-networking and management topics, check our guides on SONiC troubleshooting and getting started with Mellanox switches, plus setting the management IP on Dell EMC ME4084.

原文链接:https://www.dell.com/support/kbdoc/en-us/000201924/dell-emc-networking-os10-basic-switch-management-configuration