Commit f8166bb6 authored by Hamza Dely's avatar Hamza Dely
Browse files

Mise à jour de la configuration des TP-Link

parent fe40bb0a
......@@ -40,7 +40,7 @@ define Package/crans
SECTION:=base
CATEGORY:=Crans configuration
TITLE:=Crans-specific configuration for OpenWrt
DEPENDS:=+base-files +kmod-mac80211 +dropbear +monit
DEPENDS:=+base-files +kmod-mac80211 +dropbear +!TARGET_ar71xx_generic_TLWR841:monit +TARGET_ar71xx_generic_TLWR841:monit-nossl
VERSION:=$(PKG_RELEASE)
endef
......
This diff is collapsed.
# Configuration des interfaces pour les TP-Link TL-WR841N/ND
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
## Interface LAN, où se branchent les machines filaires
config interface 'lan'
option ifname 'eth0'
option proto 'none'
## Uplink de la borne
config interface 'wan'
option ifname 'eth1'
option proto 'none'
## Configuration des VLANs arrivant depuis l'infra Crans
config interface 'vlan1'
option ifname 'eth1.1 eth0'
option type 'bridge'
option proto 'none'
config interface 'vlan3'
option ifname 'eth0.3 eth1.3'
option ifname 'eth1.3'
option type 'bridge'
option proto 'dhcp'
config interface 'vlan6'
option ifname 'eth1.6'
config interface 'vlan7'
option ifname 'eth1.7'
option type 'bridge'
option proto 'none'
......@@ -24,46 +42,29 @@ config interface 'vlan22'
option type 'bridge'
option proto 'none'
config interface 'vlan7'
option ifname 'eth1.7'
option type 'bridge'
option proto 'none'
# Configuration du switch pour les TP-Link TL-WR841N/ND
config switch
option name 'switch0'
option reset '1'
## Configuration du switch pour les TP-Link TL-WR841N/ND
config switch 'eth0'
option enable '1'
option enable_vlan '1'
option reset '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 1 2 3 4'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '0t 1t 2t 3t 4t'
config switch_vlan
option device 'switch0'
option vlan '10'
option ports '0t 1t 2t 3t 4t'
config switch_vlan
option device 'switch0'
option vlan '7'
option ports '0t 1t 2t 3t 4t'
option vlan '0'
option device 'eth0'
option ports '0 1 2 3 4'
config switch_vlan
option device 'switch0'
option vlan '6'
option ports '0t 1t 2t 3t 4t'
config switch_port
option port '1'
option pvid '0'
config switch_vlan
option device 'switch0'
option vlan '22'
option ports '0t 1t 2t 3t 4t'
config switch_port
option port '2'
option pvid '0'
config switch_port
option port '3'
option pvid '0'
config switch_port
option port '4'
option pvid '0'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment