D-Link dgs-1510-28 [8/702] Interface configuration mode

D-Link dgs-1510-28 [8/702] Interface configuration mode
DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
5
Switch# configure terminal
Switch(config)#
The exit command is used to exit the global configuration mode and return to the privileged EXEC mode.
Switch(config)# exit
Switch#
The procedures to enter the different sub-configuration modes can be found in the related chapters in this
Configuration Guide. The command modes are used to configure the individual functions.
Interface Configuration Mode
Interface configuration mode is used to configure the parameters for an interface or a range of interfaces.
An interface can be a physical port, VLAN, or other virtual interface. Thus, interface configuration mode is
distinguished further according to the type of interface. The command prompt for each type of interface is
slightly different.
VLAN Interface Configuration Mode
VLAN interface configuration mode is one of the available interface modes and is used to configure the
parameters of a VLAN interface.
To access VLAN interface configuration mode, use the following command in global configuration mode:
Switch(config)# interface vlan 1
Switch(config-if)#
Creating a User Account
By default, there is no user account created on this switch. For security reasons, it is highly recommended
to create user accounts to manage and control access to this switch’s interface. This section will assist a
user with creating a user account by means of the Command Line Interface.
Observe the following example.
Switch>enable
Switch#configure terminal
Switch(config)#username admin password admin
Switch(config)#username admin privilege 15
Switch(config)#line console
Switch(config-line)#login local
Switch(config-line)#
In the above example we had to navigate and access the username command.
Starting in the User EXEC Mode we enter the command enable to access the Privileged EXEC
Mode.
After accessing the Privileged EXEC Mode, we entered the command configure terminal to
access the Global Configuration Mode. The username command can be used in the Global
Configuration Mode.
The command username admin password admin creates a user account with the username of
admin and a password of admin.
The command username admin privilege 15 assigns a privilege level value of 15 to the user
account admin.
The command line console allows us to access the console interface’s Line Configuration Mode.

Содержание

Скачать