! ! RIPでダイナミックルーティングを実現する ! ! ! フロアスイッチ(2) ! SWX3220 / SWX3200 / SWX3100 Configのサンプル ! ! enable password admin ! username admin privilege on password (初期管理ユーザーパスワード) ! dns-client enable loop-detect enable lldp run lldp auto-setting enable spanning-tree shutdown ! dhcp-server enable ! vlan database vlan 3 name VLAN0003 vlan 5 name VLAN0005 ! interface port1.1 switchport switchport mode access 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 switchport switchport mode access switchport access vlan 3 no shutdown lldp-agent set lldp enable txrx exit ! interface port1.4 switchport switchport mode access switchport access vlan 5 no shutdown lldp-agent set lldp enable txrx exit ! interface port1.5 switchport switchport mode access switchport access vlan 5 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 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 dhcp no shutdown ! interface vlan3 no switchport ip address 192.168.103.241/24 no shutdown ! interface vlan5 no switchport ip address 192.168.105.240/24 no shutdown dhcp-server enable ! router ospf ospf router-id 192.168.105.240 network 192.168.0.0/16 area 0 ! ip route 0.0.0.0/0 192.168.103.240 ! ! clock timezone JST ! http-server enable http-proxy enable ! telnet-server enable ! dhcp pool vlan5 network 192.168.105.0/24 range 192.168.105.2 192.168.105.191 default-router 192.168.105.240 dns-server 192.168.100.1 ! line con 0 line vty 0 7 ! end