show running-config interface vlan <list> [ all-defaults ]
Show running-config for the specific list of VLAN interfaces, for example:
SWI2210-XXXX# show running-config interface vlan 1-10
Building configuration...
interface vlan 1
ip address dhcp fallback 172.16.1.2 255.255.0.0
!
end
In this example there is only one VLAN interface on the system.
show running-config line { console | vty } <list> [ all-defaults ]
Show running-config for the console or list of virtual terminal devices (vty). On current designs there is a
single console device, 0. Example:
SWI2210-XXXX# show running-config line console 0
Building configuration...
line console 0
exec-timeout 0 0
!
end
CONFIGURING THE SYSTEM
Changes to system configuration can only be done from the Global Configuration mode and its sub-
modes (the exception is that working with configuration files or reloading defaults must be done in
Privileged Exec mode). The process is:
1. Raise privilege level to 15.
2. Enter Global Configuration mode.
3. Input appropriate configuration commands.
4. Optionally enter sub-modes and input appropriate commands there.
5. Exit Global Configuration mode.
6. Verify configuration.
7. Save configuration to flash.
Example: Configuration
In this example the hostname and VLAN 1 IP address are configured, verified and saved.
! This example assumes the session is initially unprivileged.
! Step 1: Raise privilege level:
> enable
Password: ***
! Step 2: Enter Global Configuration mode:
# configure terminal
! Step 3: Input configuration commands. The IP address is set from within the
! VLAN interface submode:
(config)# hostname SWI2210-XXXX
SWI2210-XXXX(config)# interface vlan 1
SWI2210-XXXX(config-if-vlan)# ip address dhcp fallback 172.16.1.2 255.255.0.0
SWI2210-XXXX(config-if-vlan)# exit
! Step 4: Leave Global Configuration mode and go back to Privileged Exec:
SWI2210-XXXX(config)# end