! ! スタックによる冗長化でネットワークの単一障害点(SPOF)を除去する ! ! ! コアスイッチ ! SWX3220 / SWX3200 Configのサンプル ! ! enable password admin ! username admin privilege on password (初期管理ユーザーパスワード) ! dns-client enable lldp run lldp auto-setting enable ! dhcp-server enable ! vlan database vlan 11 name VLAN0011 vlan 12 name VLAN0012 vlan 20 name VLAN0020 ! interface port1.1 switchport switchport mode access static-channel-group 1 no shutdown lldp-agent set lldp enable txrx exit ! interface port1.2 switchport switchport mode trunk switchport trunk allowed vlan add 11,12 static-channel-group 2 no shutdown lldp-agent set lldp enable txrx exit ! interface port1.3 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.4 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.5 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.6 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.7 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.8 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.9 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.10 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.11 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.12 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.13 switchport switchport mode access switchport access vlan 20 static-channel-group 3 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 port2.1 switchport switchport mode access static-channel-group 1 no shutdown lldp-agent set lldp enable txrx exit ! interface port2.2 switchport switchport mode trunk switchport trunk allowed vlan add 11,12 static-channel-group 2 no shutdown lldp-agent set lldp enable txrx exit ! interface port2.3 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port2.4 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port2.5 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port2.6 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port2.7 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port2.8 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port2.9 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port2.10 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port2.11 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port2.12 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port2.13 switchport switchport mode access switchport access vlan 20 static-channel-group 3 no shutdown lldp-agent set lldp enable txrx exit ! interface port2.14 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface vlan1 no switchport auto-ip enable ip address 192.168.100.240/24 no shutdown ! interface vlan11 no switchport ip address 192.168.101.1/24 no shutdown dhcp-server enable ! interface vlan12 no switchport ip address 192.168.102.1/24 no shutdown dhcp-server enable ! interface vlan20 no switchport ip address 192.168.103.1/24 no shutdown ! interface sa1 switchport switchport mode access no shutdown ! interface sa2 switchport switchport mode trunk switchport trunk allowed vlan add 11,12 no shutdown ! interface sa3 switchport switchport mode access switchport access vlan 20 no shutdown ! ip route 0.0.0.0/0 192.168.100.1 ! ! clock timezone JST ! http-server enable http-proxy enable ! telnet-server enable ! dhcp pool vlan11 network 192.168.101.0/24 range 192.168.101.2 192.168.101.191 default-router 192.168.101.1 dns-server 192.168.100.1 ! dhcp pool vlan12 network 192.168.102.0/24 range 192.168.102.2 192.168.102.191 default-router 192.168.102.1 dns-server 192.168.100.1 ! line con 0 line vty 0 7 ! end