Devices running Layer 2 software
Use the following procedure to configure an IP address on a device running Layer 2 software.
- At the opening CLI prompt, enter
enable. - Enter the following command at the Privileged EXEC level prompt, and then press
Enter. This command erases the factory test configuration if still present.Caution: Use theerase startup-configcommand only for new systems. If you enter this command on a system you have already configured, the command erases the configuration. If you accidentally do erase the configuration on a configured system, enter thewrite memorycommand to save the running configuration to the startup-config file. - Access the global configuration level of the CLI by entering the following command:
- Configure the IP address and mask for the device.
- Set a default gateway address for the device.
Note: You do not need to assign a default gateway address for single subnet networks.