diff --git a/config-samples/Readme.txt b/config-samples/Readme.txt index 8e5784c..6410bc0 100644 --- a/config-samples/Readme.txt +++ b/config-samples/Readme.txt @@ -39,6 +39,7 @@ cfg5_poe: - detection mode is 4pt-dot3af; - power limit is 99900mW (e.g. max per port); - priority is LOW; + cfg7_ieee80211x.json: Following json file configures the given topology: +-----------------+ @@ -64,3 +65,33 @@ cfg7_ieee80211x.json: to be the same for the given (10.10.20.0/24) network. .1x client also must have a valid credentials data (both client and radius server must have same clients credentials configured). + +cfg_igmp.json: + Configure igmp snooping and querier on VLAN 1. + Configure igmp static groups: + - 230.1.1.1 with egress port Ethernet1 + - 230.2.2.2 with egress ports Ethernet2 & Ethernet3 + +cfg_rpvstp.json: + Configure VLAN 1; + Configure VLAN 2; + Configure rapid per-vlan STP on VLAN 1 with priority 32768; + Disable STP on VLAN 2. + +cfg_port_isolation.json: + Configure port isolation with Ethernet1 as uplink and + Ethernet2 & Ethernet3 as downlink + +cfg_services_log.json: + Enable syslog with these parameters: + - remote host addr + - remote host port + - log severity (priority): + * emerg: 0 + * alert: 1 + * crit: 2 + * error: 3 + * warning: 4 + * notice: 5 + * info: 6 + * debug: 7 diff --git a/config-samples/cfg_igmp.json b/config-samples/cfg_igmp.json new file mode 100644 index 0000000..83662b9 --- /dev/null +++ b/config-samples/cfg_igmp.json @@ -0,0 +1,64 @@ +{ + "ethernet": [ + { + "select-ports": [ + "Ethernet*" + ], + "speed": 1000, + "duplex": "full", + "enabled": true, + "poe": { + "admin-mode": true + } + } + ], + "interfaces": [ + { + "vlan": { + "id": 1, + "proto": "802.1q" + }, + "ethernet": [ + { + "select-ports": [ + "Ethernet*" + ], + "vlan-tag": "un-tagged" + } + ], + "ipv4": { + "multicast": { + "igmp": { + "querier-enable": true, + "query-interval": 60, + "snooping-enable": true, + "version": 3, + "static-mcast-groups": [ + { + "address": "230.1.1.1", + "egress-ports": [ + "Ethernet1" + ] + }, + { + "address": "230.2.2.2", + "egress-ports": [ + "Ethernet2", + "Ethernet3" + ] + } + ] + } + }, + "subnet": [ + { + "prefix": "1.1.1.1/24" + } + ] + }, + "role": "upstream", + "name": "mgmt-vlan" + } + ], + "uuid": 1 +} diff --git a/config-samples/cfg_port_isolation.json b/config-samples/cfg_port_isolation.json new file mode 100644 index 0000000..10e339e --- /dev/null +++ b/config-samples/cfg_port_isolation.json @@ -0,0 +1,52 @@ +{ + "ethernet": [ + { + "port-isolation": { + "sessions": [ + { + "id": 1, + "uplink": { + "interface-list": [ + "Ethernet1" + ] + }, + "downlink": { + "interface-list": [ + "Ethernet2", + "Ethernet3" + ] + } + } + ] + }, + "select-ports": [ + "Ethernet*" + ], + "speed": 1000, + "duplex": "full", + "enabled": true, + "poe": { + "admin-mode": true + } + } + ], + "interfaces": [ + { + "vlan": { + "id": 1, + "proto": "802.1q" + }, + "ethernet": [ + { + "select-ports": [ + "Ethernet*" + ], + "vlan-tag": "un-tagged" + } + ], + "role": "upstream", + "name": "mgmt-vlan" + } + ], + "uuid": 1 +} diff --git a/config-samples/cfg_rpvstp.json b/config-samples/cfg_rpvstp.json new file mode 100644 index 0000000..e4f3480 --- /dev/null +++ b/config-samples/cfg_rpvstp.json @@ -0,0 +1,66 @@ +{ + "ethernet": [ + { + "select-ports": [ + "Ethernet*" + ], + "speed": 1000, + "duplex": "full", + "enabled": true, + "poe": { + "admin-mode": true + } + } + ], + "interfaces": [ + { + "vlan": { + "id": 1, + "proto": "802.1q" + }, + "ethernet": [ + { + "select-ports": [ + "Ethernet*" + ], + "vlan-tag": "un-tagged" + } + ], + "role": "upstream", + "name": "mgmt-vlan" + }, + { + "vlan": { + "id": 2, + "proto": "802.1q" + }, + "ethernet": [ + { + "select-ports": [ + "Ethernet*" + ], + "vlan-tag": "tagged" + } + ], + "role": "upstream", + "name": "mgmt-vlan" + } + ], + "switch": { + "loop-detection": { + "protocol": "rpvstp", + "instances": [ + { + "id": 1, + "enabled": true, + "priority": 32768 + }, + { + "id": 2, + "enabled": false + } + ] + } + }, + "uuid": 1 +} diff --git a/config-samples/cfg_services_log.json b/config-samples/cfg_services_log.json new file mode 100644 index 0000000..23eca85 --- /dev/null +++ b/config-samples/cfg_services_log.json @@ -0,0 +1,45 @@ +{ + "ethernet": [ + { + "select-ports": [ + "Ethernet*" + ], + "speed": 1000, + "duplex": "full", + "enabled": true, + "poe": { + "admin-mode": true + } + } + ], + "interfaces": [ + { + "vlan": { + "id": 1, + "proto": "802.1q" + }, + "ethernet": [ + { + "select-ports": [ + "Ethernet*" + ], + "vlan-tag": "un-tagged" + } + ], + "role": "upstream", + "name": "mgmt-vlan" + } + ], + "services": { + "log": [ + { + "port": 2000, + "priority": 7, + "size": 1000, + "host": "192.168.1.10", + "proto": "udp" + } + ] + }, + "uuid": 1 +}