Skip to content

Instantly share code, notes, and snippets.

@snuxoll
Created January 17, 2018 04:28
Show Gist options
  • Save snuxoll/07a3eae51393cba0220ef1bed5afed1b to your computer and use it in GitHub Desktop.
Save snuxoll/07a3eae51393cba0220ef1bed5afed1b to your computer and use it in GitHub Desktop.
My EX2200 Config
## Last changed: 2017-12-29 06:53:26 MST
version 12.3R12.4;
groups {
storage {
interfaces {
<ae*> {
aggregated-ether-options {
lacp {
active;
periodic fast;
}
}
unit <*> {
family ethernet-switching {
port-mode trunk;
native-vlan-id servers;
}
}
}
}
}
server {
interfaces {
<ge-*> {
unit <*> {
family ethernet-switching {
port-mode trunk;
vlan {
members [ perimiter servers wan ];
}
native-vlan-id management;
}
}
}
}
}
unifi {
interfaces {
<ge-*> {
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members [ clients devices guests ];
}
native-vlan-id unifi;
}
}
}
}
}
modem {
interfaces {
<ge-*> {
unit 0 {
family ethernet-switching {
port-mode trunk;
native-vlan-id wan;
}
}
}
}
}
legacy {
interfaces {
<ge-*> {
unit <*> {
family ethernet-switching {
port-mode trunk;
native-vlan-id legacy;
}
}
}
}
}
ml10 {
interfaces {
<ge-*> {
unit <*> {
family ethernet-switching {
port-mode trunk;
vlan {
members management;
}
native-vlan-id servers;
}
}
}
}
}
}
system {
host-name hop-switch01;
time-zone America/Boise;
root-authentication {
## OMITTED
}
services {
ssh {
protocol-version v2;
}
netconf {
ssh;
}
dhcp-local-server {
group management {
interface vlan.4;
}
group clients {
interface vlan.200;
}
group guests {
interface vlan.210;
}
group devices {
interface vlan.220;
}
group unifi {
interface vlan.300;
}
group legacy {
interface vlan.1;
}
group servers {
interface vlan.3;
}
}
web-management {
http;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
chassis {
aggregated-devices {
ethernet {
device-count 1;
}
}
alarm {
management-ethernet {
link-down ignore;
}
}
}
interfaces {
ge-0/0/0 {
ether-options {
802.3ad ae0;
}
}
ge-0/0/1 {
ether-options {
802.3ad ae0;
}
}
ge-0/0/2 {
ether-options {
802.3ad ae0;
}
}
ge-0/0/3 {
ether-options {
802.3ad ae0;
}
}
ge-0/0/4 {
apply-groups server;
unit 0;
}
ge-0/0/5 {
apply-groups server;
unit 0;
}
ge-0/0/12 {
apply-groups ml10;
unit 0;
}
ge-0/0/35 {
unit 0 {
family ethernet-switching {
port-mode trunk;
native-vlan-id management;
}
}
}
ge-0/0/45 {
apply-groups legacy;
unit 0;
}
ge-0/0/46 {
apply-groups unifi;
unit 0;
}
ge-0/0/47 {
apply-groups modem;
unit 0;
}
ae0 {
apply-groups storage;
unit 0;
}
vlan {
unit 1 {
family inet {
address 192.168.1.1/24;
}
}
unit 3 {
family inet {
address 192.168.3.1/24;
}
}
unit 4 {
family inet {
address 192.168.4.1/24;
}
}
unit 200 {
family inet {
address 192.168.20.1/24;
}
}
unit 210 {
family inet {
address 192.168.21.1/24;
}
}
unit 220 {
family inet {
address 192.168.22.2/24;
}
}
unit 300 {
family inet {
address 192.168.30.1/24;
}
}
unit 400 {
family inet {
address 192.168.0.10/24;
}
}
}
}
routing-options {
static {
route 0.0.0.0/0 next-hop 192.168.0.1;
}
}
protocols {
igmp-snooping {
vlan all;
}
rstp;
lldp {
interface all;
}
lldp-med {
interface all;
}
}
access {
address-assignment {
pool client {
family inet {
network 192.168.20.0/24;
range default {
low 192.168.20.10;
high 192.168.20.100;
}
dhcp-attributes {
name-server {
192.168.0.1;
}
router {
192.168.20.1;
}
}
}
}
pool management {
family inet {
network 192.168.4.0/24;
range default {
low 192.168.4.20;
high 192.168.4.99;
}
dhcp-attributes {
name-server {
192.168.0.1;
}
router {
192.168.4.1;
}
}
}
}
pool legacy {
family inet {
network 192.168.1.0/24;
range default {
low 192.168.1.10;
high 192.168.1.100;
}
dhcp-attributes {
name-server {
192.168.0.1;
}
router {
192.168.1.1;
}
}
}
}
pool devices {
family inet {
network 192.168.22.0/24;
range default {
low 192.168.22.10;
high 192.168.22.100;
}
dhcp-attributes {
name-server {
192.168.0.1;
}
router {
192.168.22.1;
}
}
}
}
pool guest {
family inet {
network 192.168.21.0/24;
range default {
low 192.168.21.10;
high 192.168.21.100;
}
dhcp-attributes {
name-server {
192.168.0.1;
}
router {
192.168.21.1;
}
}
}
}
pool unifi {
family inet {
network 192.168.30.0/24;
range default {
low 192.168.30.10;
high 192.168.30.100;
}
dhcp-attributes {
name-server {
192.168.0.1;
}
router {
192.168.30.1;
}
}
}
}
}
}
ethernet-switching-options {
storm-control {
interface all;
}
}
vlans {
clients {
vlan-id 200;
l3-interface vlan.200;
}
devices {
vlan-id 220;
l3-interface vlan.220;
}
guests {
vlan-id 210;
l3-interface vlan.210;
}
legacy {
vlan-id 1;
l3-interface vlan.1;
}
management {
vlan-id 4;
l3-interface vlan.4;
}
perimiter {
vlan-id 400;
l3-interface vlan.400;
}
servers {
vlan-id 3;
l3-interface vlan.3;
}
unifi {
vlan-id 300;
l3-interface vlan.300;
}
wan {
vlan-id 501;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment