!
hostname SWX2220P-26NT(5F_Class-Room)
!
enable password (パスワード：必須)
!
username (ユーザー名：必須) privilege on password (パスワード：必須)
!
dns-client enable
dns-client name-server 172.16.0.254
dns-client name-server 172.16.0.253
!
ip dhcp snooping enable
ip dhcp snooping information option disable
!
loop-detect enable
!
qos enable
!
port-channel load-balance src-dst-ip
!
aaa authentication dot1x
!
radius-server host 172.16.0.1 key (RADIUSシークレット)
!
lldp run
lldp auto-setting enable
!
vlan database
 vlan 10 name School_Affairs
 vlan 10 state enable
 vlan 20 name For_Learning
 vlan 20 state enable
 vlan 30 name IP_Phone
 vlan 30 state enable
 vlan 50 name Disaster
 vlan 50 state enable
!
interface port1.1
 description WLX322
 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
 description WLX322
 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
 description WLX322
 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
 description WLX322
 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
 description WLX322
 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
 description WLX322
 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
 description WLX322
 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
 description IP_Phone
 switchport mode access
 switchport access vlan 30
 qos trust dscp
 remark dscp 40
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.20
 description IP_Phone
 switchport mode access
 switchport access vlan 30
 qos trust dscp
 remark dscp 40
 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 access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.24
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.25
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,30,50
 ip dhcp snooping trust
 channel-group 1 mode active
 qos trust dscp
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface port1.26
 switchport mode trunk ingress-filter enable
 switchport trunk allowed vlan add 10,20,30,50
 ip dhcp snooping trust
 channel-group 1 mode active
 qos trust dscp
 no shutdown
 lldp-agent
  set lldp enable txrx
!
interface vlan1
 ip address 172.16.0.50/24
 ip dhcp snooping enable
!
interface vlan10
 ip dhcp snooping enable
!
interface vlan20
 ip dhcp snooping enable
!
interface vlan30
 ip dhcp snooping enable
!
interface vlan50
 ip dhcp snooping enable
!
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.1
!
clock timezone JST
!
ntpdate server name ntp.nict.jp
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 05:55:00 1
schedule 2 time */mon-fri 20:05:00 2
schedule template 1
 description PoE_ON
 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
 description PoE_OFF
 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
