altes wiki durchsortiert zum veröffentlichen
This commit is contained in:
commit
57b6e0e2d3
92 changed files with 4949 additions and 0 deletions
21
technikzeugs/configs/LEDE/router_4_subnets/README.md
Normal file
21
technikzeugs/configs/LEDE/router_4_subnets/README.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Router mit 4 Subnetzen in 4 VLANs
|
||||
|
||||
Konkret wurde ein Ubnt EdgeRouter X (SFP) konfiguriert.
|
||||
|
||||
Es werden zuerst 4 Interfaces definiert, eth_1 bis eth_4 (WAN an dem Router
|
||||
auf eth_0). Jedes Interface bekommt eine IP Adresse entsprechend des Subnetzes.
|
||||
Wichtig scheint `interface` zu sein was gleich für den DHCP Server (dnsmasq)
|
||||
benutzt wird. `ifname` scheint beliebig zu zu sein.
|
||||
|
||||
Alles Interfaces bekommen ein eigenes VLAN, Standard ist VLAN 1 für LAN und VLAN
|
||||
2 für WAN. Wir haben kein LAN sondern direkt WAN mit den einzelnen Subnetzen
|
||||
verbunden. Also immer `<Port> 6t` (6t für *getaggt* an CPU).
|
||||
|
||||
Die LAN VLANs fangen einfach mit 101 aufwärts an (da VLAN 2 für WAN).
|
||||
|
||||
Jedem Interface wird dann ein DHCP Server zugeordnet, dabei wird das vorher
|
||||
angegebene `ifname` hier zum `interface`
|
||||
|
||||
|
||||
# vim options
|
||||
# set tw=80
|
59
technikzeugs/configs/LEDE/router_4_subnets/dhcp
Normal file
59
technikzeugs/configs/LEDE/router_4_subnets/dhcp
Normal file
|
@ -0,0 +1,59 @@
|
|||
|
||||
config dnsmasq
|
||||
option domainneeded '1'
|
||||
option boguspriv '1'
|
||||
option filterwin2k '0'
|
||||
option localise_queries '1'
|
||||
option rebind_protection '1'
|
||||
option rebind_localhost '1'
|
||||
option local '/lan/'
|
||||
option domain 'lan'
|
||||
option expandhosts '1'
|
||||
option nonegcache '0'
|
||||
option authoritative '1'
|
||||
option readethers '1'
|
||||
option leasefile '/tmp/dhcp.leases'
|
||||
option resolvfile '/tmp/resolv.conf.auto'
|
||||
option localservice '1'
|
||||
|
||||
config dhcp 'lan'
|
||||
option interface 'lan'
|
||||
option start '100'
|
||||
option limit '150'
|
||||
option leasetime '12h'
|
||||
option dhcpv6 'server'
|
||||
option ra 'server'
|
||||
|
||||
config dhcp 'wan'
|
||||
option interface 'wan'
|
||||
option ignore '1'
|
||||
|
||||
config odhcpd 'odhcpd'
|
||||
option maindhcp '0'
|
||||
option leasefile '/tmp/hosts/odhcpd'
|
||||
option leasetrigger '/usr/sbin/odhcpd-update'
|
||||
|
||||
config dhcp 'eth0_1'
|
||||
option start '100'
|
||||
option leasetime '12h'
|
||||
option limit '150'
|
||||
option interface 'eth0_1'
|
||||
|
||||
config dhcp 'eth0_2'
|
||||
option start '100'
|
||||
option leasetime '12h'
|
||||
option limit '150'
|
||||
option interface 'eth0_2'
|
||||
|
||||
config dhcp 'eth0_3'
|
||||
option start '100'
|
||||
option leasetime '12h'
|
||||
option limit '150'
|
||||
option interface 'eth0_3'
|
||||
|
||||
config dhcp 'eth0_4'
|
||||
option start '100'
|
||||
option leasetime '12h'
|
||||
option limit '150'
|
||||
option interface 'eth0_4'
|
||||
|
88
technikzeugs/configs/LEDE/router_4_subnets/network
Normal file
88
technikzeugs/configs/LEDE/router_4_subnets/network
Normal file
|
@ -0,0 +1,88 @@
|
|||
|
||||
config interface 'loopback'
|
||||
option ifname 'lo'
|
||||
option proto 'static'
|
||||
option ipaddr '127.0.0.1'
|
||||
option netmask '255.0.0.0'
|
||||
|
||||
config globals 'globals'
|
||||
option ula_prefix 'fdb1:00b1:0ffb::/48'
|
||||
|
||||
config interface 'lan'
|
||||
option type 'bridge'
|
||||
option ifname 'eth0.1'
|
||||
option proto 'static'
|
||||
option ipaddr '192.168.1.1'
|
||||
option netmask '255.255.255.0'
|
||||
option ip6assign '60'
|
||||
|
||||
config device 'lan_dev'
|
||||
option name 'eth0.1'
|
||||
option macaddr '80:2a:a8:de:20:8a'
|
||||
|
||||
config interface 'wan'
|
||||
option ifname 'eth0.2'
|
||||
option proto 'dhcp'
|
||||
|
||||
config interface 'eth0_1'
|
||||
option proto 'static'
|
||||
option ifname 'eth0.101'
|
||||
option ipaddr '10.6.19.1'
|
||||
option netmask '255.255.255.0'
|
||||
|
||||
config interface 'eth0_2'
|
||||
option proto 'static'
|
||||
option ifname 'eth0.102'
|
||||
option ipaddr '10.6.20.1'
|
||||
option netmask '255.255.255.0'
|
||||
|
||||
config interface 'eth0_3'
|
||||
option proto 'static'
|
||||
option ifname 'eth0.103'
|
||||
option ipaddr '10.6.21.1'
|
||||
option netmask '255.255.255.0'
|
||||
|
||||
config interface 'eth0_4'
|
||||
option proto 'static'
|
||||
option ifname 'eth0.104'
|
||||
option ipaddr '10.6.22.1'
|
||||
option netmask '255.255.255.0'
|
||||
|
||||
config device 'wan_dev'
|
||||
option name 'eth0.2'
|
||||
option macaddr '80:2a:a8:de:20:8b'
|
||||
|
||||
config interface 'wan6'
|
||||
option ifname 'eth0.2'
|
||||
option proto 'dhcpv6'
|
||||
|
||||
config switch
|
||||
option name 'switch0'
|
||||
option reset '1'
|
||||
option enable_vlan '1'
|
||||
|
||||
config switch_vlan
|
||||
option device 'switch0'
|
||||
option vlan '2'
|
||||
option ports '0 6t'
|
||||
|
||||
config switch_vlan
|
||||
option device 'switch0'
|
||||
option vlan '101'
|
||||
option ports '1 6t'
|
||||
|
||||
config switch_vlan
|
||||
option device 'switch0'
|
||||
option vlan '102'
|
||||
option ports '2 6t'
|
||||
|
||||
config switch_vlan
|
||||
option device 'switch0'
|
||||
option vlan '103'
|
||||
option ports '3 6t'
|
||||
|
||||
config switch_vlan
|
||||
option device 'switch0'
|
||||
option vlan '104'
|
||||
option ports '4 6t'
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue