initialize

Syntax

initialize

Parameters

None

Description

Use initialize to delete the configuration file to be used at the next startup and reboot the device with the default configuration being used during reboot.

Use the command with caution because this command deletes the configuration file to be used at the next startup and restores the factory default settings.

Examples

#Delete the configuration file to be used at the next startup and reboot the device with the default configuration being used during reboot.

<Sysname> initialize

The startup configuration file will be deleted and the system will be rebooted.Continue? [Y/N]:y

Please wait...

ipsetup

Syntax

ipsetup { dhcp ip-address ip-address{ mask mask-length} [ default-gateway ip-address] }

Parameters

dhcp: Specifies the interface to obtain an IPv4 address through DHCP.

ip-address ip-address: Specifies an IPv4 address for VLAN-interface 1 in dotted decimal notation.

mask: Subnet mask in dotted decimal notation.

mask-length: Subnet mask length, the number of consecutive ones in the mask, in the range of 0 to 32.

default-gateway ip-address: Specifies the IPv4 address of the default gateway. With this argument and keyword combination configured, the command not only assigns an IPv4 address to the interface, but also specifies a default route for the device.

Description

Use ipsetup dhcp to specify VLAN-interface 1 to obtain an IPv4 address through DHCP.

Use ipsetup ip address ip-address{ mask mask-length} to assign an IPv4 address to VLAN-interface 1.

By default, the device automatically obtains its IPv4 address through DHCP; if fails, it uses the assigned IP address.

If there is no VLAN-interface 1, either command creates VLAN-interface 1 first, and then specifies its IPv4 address.

Examples

# Create VLAN-interface 1 and specify the interface to obtain an IPv4 address through DHCP.

<Sysname> ipsetup dhcp

25