!
hostname SWX2320-16MT(ServerSW)
!
enable password (パスワード：必須)
!
username (ユーザー名：必須) privilege on password (パスワード：必須)
!
qos enable
!
dns-client enable
dns-client name-server 172.16.0.254
dns-client name-server 172.16.0.253
port-channel load-balance src-dst-ip
aaa authentication auth-mac
auth-mac auth-user hyphen upper-case
lldp run
lldp auto-setting enable
!
class-map class1
 match vlan 30
!
policy-map policy1
 class class1
  set ip-dscp 40
!
radius-server host 172.16.0.1 key (RADIUSシークレット)
!
vlan database
 vlan 10 name School_Affairs
 vlan 20 name Learning_Common
 vlan 30 name IP_Phone
!
ip dhcp snooping enable
ip dhcp snooping information option disable
!
interface port1.1
 description IP-PBX
 switchport
 switchport mode access
 switchport access vlan 30
 service-policy input policy1
 no shutdown
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.2
 switchport
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.3
 description Server
 switchport
 switchport mode access
 switchport access vlan 10
 no shutdown
 auth host-mode multi-supplicant
 auth order auth-mac dot1x
 auth-mac enable
 auth timeout server-timeout 20
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.4
 description Server
 switchport
 switchport mode access
 switchport access vlan 10
 no shutdown
 auth host-mode multi-supplicant
 auth order auth-mac dot1x
 auth-mac enable
 auth timeout server-timeout 20
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.5
 description Server
 switchport
 switchport mode access
 switchport access vlan 10
 no shutdown
 auth host-mode multi-supplicant
 auth order auth-mac dot1x
 auth-mac enable
 auth timeout server-timeout 20
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.6
 description Server
 switchport
 switchport mode access
 switchport access vlan 10
 no shutdown
 auth host-mode multi-supplicant
 auth order auth-mac dot1x
 auth-mac enable
 auth timeout server-timeout 20
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.7
 description Server
 switchport
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 auth order auth-mac dot1x
 auth-mac enable
 auth timeout server-timeout 20
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.8
 description Server
 switchport
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 auth order auth-mac dot1x
 auth-mac enable
 auth timeout server-timeout 20
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.9
 description Server
 switchport
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 auth order auth-mac dot1x
 auth-mac enable
 auth timeout server-timeout 20
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.10
 description Server
 switchport
 switchport mode access
 switchport access vlan 20
 no shutdown
 auth host-mode multi-supplicant
 auth order auth-mac dot1x
 auth-mac enable
 auth timeout server-timeout 20
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.11
 switchport
 switchport mode trunk
 switchport trunk allowed vlan add 10,20,30
 channel-group 1 mode active
 qos trust dscp
 no shutdown
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.12
 switchport
 switchport mode trunk
 switchport trunk allowed vlan add 10,20,30
 channel-group 1 mode active
 qos trust dscp
 no shutdown
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.13
 switchport
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.14
 switchport
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.15
 switchport
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface port1.16
 switchport
 switchport mode access
 no shutdown
 lldp-agent
  set lldp enable txrx 
  exit 
!
interface vlan1
 no switchport
 auto-ip enable
 ip address 172.16.0.11/24
 no shutdown
 l2-mcast flood 239.192.128.250 
 ip dhcp snooping enable
!
interface vlan10
 no switchport
 no shutdown
 ip dhcp snooping enable
!
interface vlan20
 no switchport
 no shutdown
 ip dhcp snooping enable
!
interface vlan30
 no switchport
 ip address 172.23.0.251/24
 no shutdown
 ip dhcp snooping enable
!
interface po1
 switchport
 switchport mode trunk
 switchport trunk allowed vlan add 10,20,30
 qos trust dscp
 no shutdown
 ip dhcp snooping trust
!
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 temperature fan l2ms errdisable rmon termmonitor bridge loopdetect
snmp-server host (SNMPマネージャーのIPアドレス) traps version 2c (コミュニティー名)
snmp-server access permit (SNMPマネージャーのIPアドレス) community (コミュニティー名)
!
http-server enable
http-proxy enable
!
telnet-server enable
!
line con 0
line vty 0 7
!
end
