# # タグVLANを設定する(接続したポートを指定) # # # LANインターフェースの設定 (LAN1ポートを使用) # ip lan1 address 192.168.100.1/24 # # VLANの設定 # vlan lan1/1 802.1q vid=101 name=VLAN101 ip lan1/1 address 192.168.101.1/24 vlan lan1/2 802.1q vid=102 name=VLAN102 ip lan1/2 address 192.168.102.1/24 vlan lan1/3 802.1q vid=103 name=VLAN103 ip lan1/3 address 192.168.103.1/24 # # DHCPの設定 # dhcp service server dhcp server rfc2131 compliant except remain-silent dhcp scope 1 192.168.100.2-192.168.100.191/24 dhcp scope 101 192.168.101.2-192.168.101.191/24 dhcp scope 102 192.168.102.2-192.168.102.191/24 dhcp scope 103 192.168.103.2-192.168.103.191/24 # # L2MSの設定 # switch control use lan1 on # # SWX2200-8Gの設定 # switch select lan1:1-2 switch control function set vlan-port-mode 1 hybrid switch control function set vlan-access 2 101 switch control function set vlan-access 3 101 switch control function set vlan-access 4 101 switch control function set vlan-access 5 103 switch control function set vlan-access 6 103 switch control function set vlan-access 7 103 switch control function set vlan-access 8 103 switch control function set vlan-trunk 1 101 join switch control function set vlan-trunk 1 103 join # # SWX2200-24Gの設定 # switch select lan1:1 switch control function set vlan-port-mode 1 hybrid switch control function set vlan-port-mode 2 hybrid switch control function set vlan-access 3 101 switch control function set vlan-access 4 101 switch control function set vlan-access 5 101 switch control function set vlan-access 6 101 switch control function set vlan-access 7 101 switch control function set vlan-access 8 101 switch control function set vlan-access 9 102 switch control function set vlan-access 10 102 switch control function set vlan-access 11 102 switch control function set vlan-access 12 102 switch control function set vlan-access 13 102 switch control function set vlan-access 14 102 switch control function set vlan-access 15 102 switch control function set vlan-access 16 102 switch control function set vlan-access 17 103 switch control function set vlan-access 18 103 switch control function set vlan-access 19 103 switch control function set vlan-access 20 103 switch control function set vlan-access 21 103 switch control function set vlan-access 22 103 switch control function set vlan-access 23 103 switch control function set vlan-access 24 103 switch control function set vlan-trunk 1 101 join switch control function set vlan-trunk 1 102 join switch control function set vlan-trunk 1 103 join switch control function set vlan-trunk 2 101 join switch control function set vlan-trunk 2 103 join