7
Configuring IP Address
3.
At the “#” prompt, enter the following command and press
<Enter>
as shown in Figure 5-2.
NS3502-8P #
configure terminal
NS3502-8P (config) #
interface vlan 1
NS3502-8P (config-if-vlan) #
ip address 192.168.0.100 255.255.255.0
The previous command would apply the following settings for the Managed Switch.
IP Address:
192.168.0.100
Subnet Mask:
255.255.255.0
NS3502-8P-2T-2S # config terminal
NS3502-8P-2T-2S (config) # interface vlan 1
NS3502-8P-2T-2S (config-if-vlan) # ip address 192.168.0.100 255.255.255.0
NS3502-8P-2T-2S (config-if-vlan) #
Figure 5-2:
Configuring IP Address Screen
4.
Repeat step 1 to check if the IP address is changed.
Store current switch configuration
5.
At the “
#
” prompt, enter the following command and press
<Enter>.
# copy running-config startup-config
NS3502-8P-2T-2S # copy running-config startup-config
Building configuration . . .
% Saving 2936 bytes to flash:startup-config
NS3502-8P-2T-2S #
Figure 5-3:
Saving Current Configuration Command Screen
If the IP is successfully configured, the Managed Switch will apply the new IP address setting immediately. You can
access the Web interface of the Managed Switch through the new IP address.
If you are not familiar with the console command or the
related parameter, enter “
help
” anytime in console to
get the help description.