Devices running Layer 2 software

Use the following procedure to configure an IP address on a device running Layer 2 software.

  1. At the opening CLI prompt, enter enable.
    device> enable
    
  2. Enter the following command at the Privileged EXEC level prompt, and then press Enter . This command erases the factory test configuration if still present.
    device# erase startup-config
    
    Caution: Use the erase startup-config command 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 the write memory command to save the running configuration to the startup-config file.
  3. Access the global configuration level of the CLI by entering the following command:
    device# configure terminal 
    
  4. Configure the IP address and mask for the device.
    device(config)# ip address 10.22.3.44 255.255.255.0
  5. Set a default gateway address for the device.
    device(config)# ip default-gateway 10.22.3.1
    Note: You do not need to assign a default gateway address for single subnet networks.