From 1c75c56a22247da02c91778d15bad27ddb9d24a7 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Wed, 4 Nov 2015 16:10:33 +0200 Subject: [PATCH] Add triple and single trunk mixins for c5 --- .../archer-c5-single-trunk/etc/config/network | 32 ++++++++++++++++ .../archer-c5-triple-trunk/etc/config/network | 37 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 files/archer-c5-single-trunk/etc/config/network create mode 100644 files/archer-c5-triple-trunk/etc/config/network diff --git a/files/archer-c5-single-trunk/etc/config/network b/files/archer-c5-single-trunk/etc/config/network new file mode 100644 index 0000000..c3d73b8 --- /dev/null +++ b/files/archer-c5-single-trunk/etc/config/network @@ -0,0 +1,32 @@ +config interface 'loopback' + option ifname 'lo' + option proto 'static' + option ipaddr '127.0.0.1' + option netmask '255.0.0.0' + +config interface 'management' + option ifname 'eth0' + option proto 'dhcp' + option ipv6 'no' + +config interface 'wireless' + option ifname 'eth1' + option proto 'none' + option ipv6 'no' + option force_link '1' + option type 'bridge' + +config switch + option name 'switch0' + option reset '1' + option enable_vlan '1' + +config switch_vlan + option device 'switch0' + option vlan '100' + option ports '1t 6' + +config switch_vlan + option device 'switch0' + option vlan '102' + option ports '0 1t' diff --git a/files/archer-c5-triple-trunk/etc/config/network b/files/archer-c5-triple-trunk/etc/config/network new file mode 100644 index 0000000..beccc71 --- /dev/null +++ b/files/archer-c5-triple-trunk/etc/config/network @@ -0,0 +1,37 @@ +config interface 'loopback' + option ifname 'lo' + option proto 'static' + option ipaddr '127.0.0.1' + option netmask '255.0.0.0' + +config interface 'management' + option ifname 'eth0' + option proto 'dhcp' + option ipv6 'no' + +config interface 'wireless' + option ifname 'eth1' + option proto 'none' + option ipv6 'no' + option force_link '1' + option type 'bridge' + +config switch + option name 'switch0' + option reset '1' + option enable_vlan '1' + +config switch_vlan + option device 'switch0' + option vlan '25' + option ports '1 2 3' + +config switch_vlan + option device 'switch0' + option vlan '100' + option ports '1t 2t 3t 6' + +config switch_vlan + option device 'switch0' + option vlan '102' + option ports '0 1t 2t 3t'