NEC N8406-022 Switch User Manual


 
(English)
35
- Manual assignment
You can assign the IP address by connecting to the Switch Module via the local console. Refer to the following
examples, you can configure them.
AOS CLI
>> # /cfg/sys/dhcp disable
>> # /cfg/l3/if 256
>> IP Interface 256# addr 205.21.17.3
Current IP address: 0.0.0.0
New pending IP address: 205.21.17.3
Pending new subnet mask: 255.255.255.0
. . . . . . . . . . . .
>> IP Interface 256# ena
>> IP Interface 256# ../gw 4
>> Default gateway 4# addr 205.21.17.1
>> Default gateway 4# ena
>> Default gateway 4# apply
>> Default gateway 4# save
(Disable dhcp)
(Select IP interface 256)
(Assign IP address for the Interface)
(Enable IP interface 256)
(Select default gateway 4)
(Assign IP address for a router)
(Enable default gateway 4)
(Apply the configuration)
(Save the configuration)
ISCLI
Switch> enable
Switch# configure terminal
Switch(config)# no system dhcp
Switch(config)# interface ip 256
Switch(config-ip-if)# ip address 205.21.17.3 255.255.255.0
Switch(config-ip-if)# enable
Switch(config-ip-if)# exit
Switch(config)# ip gateway 4 address 205.21.17.1
Switch(config)# ip gateway 4 enable
Switch(config)# copy running-config startup-config
(Enter Privileged EXEC mode)
(Enter Global Configuration mode)
(Disable dhcp)
(Enter Interface IP Configuration mode)
(Assign IP address for the Interface)
(Enable IP interface 256)
(Exit to Global Configuration mode)
(Assign default gateway 4)
(Enable default gateway 4)
(Save the configuration)
IMPORTANT:
When assigning an IP address and default gateway for the
management interface manually, assign them to interface 256 and
Gateway 4, respectively.
When enabled dhcp of the Switch Module, the IP address obtained
from the DHCP server overrides the static IP address. When
assigning the IP address manually, disable the dhcp.