Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nounous
openwrt-crans-package
Commits
f8166bb6
Commit
f8166bb6
authored
Jan 20, 2017
by
Hamza Dely
Browse files
Mise à jour de la configuration des TP-Link
parent
fe40bb0a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
f8166bb6
...
...
@@ -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
...
...
configs/config.tl_wr841n
View file @
f8166bb6
This diff is collapsed.
Click to expand it.
files/etc/config/network.tl_wr841nd
View file @
f8166bb6
# 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 'vlan
6
'
option ifname 'eth1.
6
'
config interface 'vlan
7
'
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'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment