(config)# line console 0 (config-line)# speed 19200
# reload stop
logout
set exec-timeout
# adduser username
# rmuser username
$ password
# password enable-mode
# clear password # clear password enable-mode
reload
shutdown
inactive
schedule-power-control shutdown schedule-power-control time-range show power-control schedule-power-control
> show mc
> cp 20210104_L2-test.conf mc-file 20210104_L2-test.conf
> enable
# disable
quit / exit
# configure / configure terminal
set terminal pager
# save / write
# show running-config / show
# show startup-config
# erase configuration
> clear logging
> erase dumpfile all
# rm .clihistory # reload
> cd /usr/home/operator > zmodem get backup.cnf # copy /usr/home/operator/backup.cnf startup-config
> zmodem put startup-config
> ftp 192.168.0.1
> copy startup-config ftp://username@192.168.0.1/backup.cnf
# ftp-server
> tftp
#(config) line vty 0 2
(config)# ip access-list standard REMOTE (config-std-nacl)# permit 192.168.0.0 0.0.0.255 (config-std-nacl)# exit (config)# line vty 0 2 (config-line)# ip access-group REMOTE in
(config)# clock timezone JST +9
# set clock 2010070038
(config)# ntp server 192.168.1.100
# ntp peer 192.168.1.100
> show clock
> show ntp associations
#(config) hostname L2-test
# ip domain name example.com # ip name-server 192.168.0.1
# ip host L2-test 192.168.0.1
> show system
> show environment
> show environment temperature-logging
(config)# system fan mode 2 1: 静音重視 2:冷却重視
> show flash
> show logging > show logging | grep hoge
> set logging console fisable E5
# backup ftp 192.168.0.1 backup.dat
# restore ftp 192.168.0.1 backup.dat
> show interface gigabitethernet 0/1
> show interface
> show port
# interface gigabitethernet 0/1
# interface range gigabitethernet 0/1-10, gigabitethernet 0/15-20, tengigabitethernet 0/25
(config-if)# shutdown
(config-if)# speed 10
(config-if)# duplex full
(config-if)# media-type rj45
> show vlan
> show vlan 100 detail
> show vlan summary
> show vlan list
(config)# vlan 100 (config-vlan)# state active (config-vlan)# name "server-A VLAN100"
(config)# vlan 100 (config-vlan)# state suspend
(config)# interface gigabitethernet 0/1 (config-if)# switchport mode access (config-if)# switchport access vlan 100
(config-if)# no switchport access vlan
(config)# interface gigabitethernet 0/2 (config-if)# switchport mode trunk (config-if)# switchport trunk allowed vlan 100-110
(config-if)# switchport trunk allowed vlan add 111 (config-if)# switchport trunk allowed vlan remove 111
(config)# interface port-channel 10 (config-if)# switchport mode trunk (config-if)# switchport trunk allowed vlan 100-110
(config-if)# switchport trunk native vlan 100
(config)# interface vlan 100 (config-if)# ip address 192.168.1.1 255.255.255.0 (config)# ip default-gateway 192.168.1.254
> ping 192.168.0.1
> traceroute 192.168.0.1 numeric
> show ip interface summary
> show ip arp interface vlan 100
> show channel-group 10 > show channel-group detail
# interface range gigabitethernet 0/1-2 (config-if-range)# channel-group 10 mode active
# port-channel load-balance src-ip
# interface gigabitethernet 0/1-2 (config-if)# shutdown (config-if)# no channel-group
# interface gigabitethernet 0/1-2 (config-if)# shutdown (config-if)# exit # no interface port-channel 10
(config)# interface port-channel 10 (config-if)# channel-group max-active-port 2
(config)# spanning-tree portfast default
(config)# service dhcp vlan 100
(config)# ip dhcp excluded-address 192.168.1.1 192.168.1.126 (config)# ip dhcp excluded-address 192.168.1.251 192.168.1.254
(config)# ip dhcp pool Group1
(dhcp-config)# network 192.168.1.0 255.255.255.0
(dhcp-config)# lease 1 0 0 0
(dhcp-config)# default-router 192.168.1.254 (dhcp-config)# dns-server 192.168.1.2 (dhcp-config)# netbios-name-server 192.168.1.2
> show ip dhcp import
> show ip dhcp server statistics
> show ip dhcp binding
> show ip dhcp conflict
# restart dhcp
(config)# interface gigabitethernet 0/10
(config-if)# storm-control broadcast level pps 50
(config-if)# storm-control multicast level pps 500
(config-if)# storm-control unicast level pps 1000
(config-if)# storm-control action inactivate
(config)# loop-detection enable
(config)# interface range gigabitethernet 0/1-2 (config-if-range)# loop-detection uplink-port (config-if-range)# exit
(config)# interface range gigabitethernet 0/3-4 (config-if-range)# loop-detection send-inact-port (config-if-range)# exit
(config)# loop-detection interval-time 60
(config)# loop-detection threshold 100
(config)# loop-detection hold-time 60
(config)# loop-detection auto-restore-time 300
show loop-detection
show loop-detection statistics
show loop-detection logging
(config)# access-list 1 permit 192.168.0.1 0.0.0.0
(config)# snmp-server community "public" ro 1
(config)# snmp-server host 192.168.0.1 traps "public" version 1 snmp
(config)# logging host 192.168.0.1
# cd /usr/var/update # ppupdate k.img