D-Link DGS-1510-28P User Manual - Page 30

Configuring the IP Address, LINE Configuration Mode

Page 30 highlights

DGS-1510 Series Gigabit Ethernet SmartPro Switch Hardware Installation Guide By default, there are no user accounts configured on this Switch. To create a user account, enter the following commands. Switch> enable Switch# configure terminal Switch(config)# username Administrator password 12345 Switch(config)# username Administrator privilege 15 Switch(config)# line console Switch(config-line)# login local Switch(config-line)# In the above example, 1. We accessed the Privileged EXEC Mode by entering the command enable. 2. Then we entered the Global Configuration Mode by entering the command configure terminal. 3. Then we created a user account with the username of 'Administrator' and gave it the password of '12345' by entering the command username Administrator password 12345. 4. Then we assigned the privilege level of 15 to this user account by entering the command username Administrator privilege 15. The highest level access is 15 and the lowest level access is 1. 5. Then we entered the LINE Configuration Mode by entering the command line console. 6. Then we configured the Switch to allow access to the management interface by using locally configured user accounts. The command is login local. NOTE: CLI configuration commands only modify the running configuration file and are not saved when the Switch is rebooted. To save all your configuration changes in non-volatile storage, you must use the copy running-configuration start-up-configuration command to copy the running configuration file to the start-up configuration. For more information, refer to the CLI Reference Guide. Configuring the IP Address Each networking node, within a network, must use a unique IP Address. This IP address is used to communicate with other networking devices in the network. The IP address of the Switch is also important to be able to access the Web UI of this Switch. There are two methods in which a Switch can obtain an IP address. 1. The Switch can obtain an IP address from a DHCP server located within the local network. By default, this option is not enabled. 2. The administrator can manually configure an IP address for this Switch. To find out what the IP address of the Switch is, we again need to access the Switch management interface through the CLI. Take note of the following example. 30

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64

DGS-1510 Series Gigabit Ethernet SmartPro Switch Hardware Installation Guide
30
By default, there are no user accounts configured on this Switch. To create a user account, enter the
following commands.
Switch> enable
Switch# configure terminal
Switch(config)# username Administrator password 12345
Switch(config)# username Administrator privilege 15
Switch(config)# line console
Switch(config-line)# login local
Switch(config-line)#
In the above example,
1. We accessed the
Privileged EXEC Mode
by entering the command
enable
.
2.
Then we entered the
Global Configuration Mode
by entering the command
configure terminal
.
3.
Then we created a user account with the username of ‘
Administrator’
and gave it the password
of ‘
12345
’ by entering the command
username Administrator password 12345
.
4.
Then we assigned the privilege level of 15 to this user account by entering the command
username Administrator privilege 15
. The highest level access is 15 and the lowest level
access is 1.
5.
Then we entered the
LINE Configuration Mode
by entering the command
line console
.
6.
Then we configured the Switch to allow access to the management interface by using locally
configured user accounts. The command is
login local
.
NOTE:
CLI configuration commands only modify the running configuration file and are not
saved when the Switch is rebooted. To save all your configuration changes in non-volatile
storage, you must use the
copy running-configuration start-up-configuration
command to copy the running configuration file to the start-up configuration. For more
information, refer to the
CLI Reference Guide
.
Configuring the IP Address
Each networking node, within a network, must use a unique IP Address. This IP address is used to
communicate with other networking devices in the network. The IP address of the Switch is also important
to be able to access the Web UI of this Switch. There are two methods in which a Switch can obtain an IP
address.
1.
The Switch can obtain an IP address from a DHCP server located within the local network. By
default, this option is not enabled.
2.
The administrator can manually configure an IP address for this Switch.
To find out what the IP address of the Switch is, we again need to access the Switch management
interface through the CLI. Take note of the following example.