!
enable password (パスワード：必須)
!
username (ユーザー名：必須) privilege on password (パスワード：必須)
!
dns-client enable
!
loop-detect enable
!
qos enable
!
port-channel load-balance src-dst-ip
!
aaa authentication dot1x
!
radius-server host 172.16.0.240 key (RADIUSシークレット)
!
lldp run
lldp auto-setting enable
!
vlan database
 vlan 10 name VLAN0010
 vlan 10 state enable
 vlan 20 name VLAN0020
 vlan 20 state enable
 vlan 30 name VLAN0030
 vlan 30 state enable
 vlan 50 name VLAN0050
 vlan 50 state enable
!
interface port1.1
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,50
 storm-control broadcast level 1.00
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.2
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 dot1x port-control auto
 auth dynamic-vlan-creation
 lldp-agent
  set lldp enable txrx
!
interface port1.3
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,50
 storm-control broadcast level 1.00
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.4
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 dot1x port-control auto
 auth dynamic-vlan-creation
 lldp-agent
  set lldp enable txrx
!
interface port1.5
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,50
 storm-control broadcast level 1.00
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.6
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 dot1x port-control auto
 auth dynamic-vlan-creation
 lldp-agent
  set lldp enable txrx
!
interface port1.7
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,50
 storm-control broadcast level 1.00
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.8
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 dot1x port-control auto
 auth dynamic-vlan-creation
 lldp-agent
  set lldp enable txrx
!
interface port1.9
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,50
 storm-control broadcast level 1.00
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.10
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 dot1x port-control auto
 auth dynamic-vlan-creation
 lldp-agent
  set lldp enable txrx
!
interface port1.11
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,50
 storm-control broadcast level 1.00
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.12
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 dot1x port-control auto
 auth dynamic-vlan-creation
 lldp-agent
  set lldp enable txrx
!
interface port1.13
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,50
 storm-control broadcast level 1.00
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.14
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 dot1x port-control auto
 auth dynamic-vlan-creation
 lldp-agent
  set lldp enable txrx
!
interface port1.15
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.16
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.17
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.18
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.19
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.20
 switchport mode access
 switchport access vlan 30
 qos trust dscp
 remark dscp 48
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.21
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.22
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.23
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,30,50
 channel-group 1 mode active
 qos trust dscp
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.24
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,30,50
 channel-group 1 mode active
 qos trust dscp
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.25
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.26
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface vlan1
 ip address 172.16.0.130/24
!
interface vlan10
!
interface vlan20
!
interface vlan30
!
interface vlan50
!
interface po1
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,30,50
 no shutdown
!
ip route 0.0.0.0/0 172.16.0.240
!
clock timezone JST
!
ntpdate server ipv4 172.16.0.1
ntpdate interval 24
!
snmp-server community (コミュニティー名) ro
snmp-server enable trap coldstart warmstart linkdown linkup authentication termmonitor temperature fan powerethernet loopdetect
snmp-server host (SNMPマネージャーのIPアドレス) traps version 2c (コミュニティー名)
snmp-server access permit (SNMPマネージャーのIPアドレス) community (コミュニティー名)
!
http-server enable
http-server secure enable
!
telnet-server enable
!
schedule 1 time */mon-fri 06:00:00 1
schedule 2 time */mon-fri 20:05:00 2
schedule template 1
 cli-command 1 configure terminal
 cli-command 2 interface port1.1
 cli-command 3 power-inline enable
 cli-command 4 end
 cli-command 5 configure terminal
 cli-command 6 interface port1.3
 cli-command 7 power-inline enable
 cli-command 8 end
 cli-command 9 configure terminal
 cli-command 10 interface port1.5
 cli-command 11 power-inline enable
 cli-command 12 end
 cli-command 13 configure terminal
 cli-command 14 interface port1.7
 cli-command 15 power-inline enable
 cli-command 16 end
 cli-command 17 configure terminal
 cli-command 18 interface port1.9
 cli-command 19 power-inline enable
 cli-command 20 end
 cli-command 21 configure terminal
 cli-command 22 interface port1.11
 cli-command 23 power-inline enable
 cli-command 24 end
 cli-command 25 configure terminal
 cli-command 26 interface port1.13
 cli-command 27 power-inline enable
 cli-command 28 end
!
schedule template 2
 cli-command 1 configure terminal
 cli-command 2 interface port1.1
 cli-command 3 power-inline disable
 cli-command 4 end
 cli-command 5 configure terminal
 cli-command 6 interface port1.3
 cli-command 7 power-inline disable
 cli-command 8 end
 cli-command 9 configure terminal
 cli-command 10 interface port1.5
 cli-command 11 power-inline disable
 cli-command 12 end
 cli-command 13 configure terminal
 cli-command 14 interface port1.7
 cli-command 15 power-inline disable
 cli-command 16 end
 cli-command 17 configure terminal
 cli-command 18 interface port1.9
 cli-command 19 power-inline disable
 cli-command 20 end
 cli-command 21 configure terminal
 cli-command 22 interface port1.11
 cli-command 23 power-inline disable
 cli-command 24 end
 cli-command 25 configure terminal
 cli-command 26 interface port1.13
 cli-command 27 power-inline disable
 cli-command 28 end
!
end
