Update network configurations
This commit is contained in:
parent
90563c6174
commit
7be9f638a8
|
@ -5,16 +5,16 @@ config interface 'loopback'
|
||||||
option netmask '255.0.0.0'
|
option netmask '255.0.0.0'
|
||||||
|
|
||||||
config interface 'management'
|
config interface 'management'
|
||||||
option ifname 'eth0.100'
|
option ifname 'eth0.20'
|
||||||
option proto 'static'
|
option proto 'static'
|
||||||
option ipaddr '<ip>'
|
option ipaddr '<ip>'
|
||||||
option netmask '255.255.255.0'
|
option netmask '255.255.255.0'
|
||||||
option gateway '10.100.0.1'
|
option gateway '10.20.0.1'
|
||||||
option dns '10.100.0.1'
|
option dns '10.20.0.1'
|
||||||
option ipv6 'no'
|
option ipv6 'no'
|
||||||
|
|
||||||
config interface 'wireless'
|
config interface 'wireless'
|
||||||
option ifname 'eth0.102'
|
option ifname 'eth0.22'
|
||||||
option proto 'none'
|
option proto 'none'
|
||||||
option ipv6 'no'
|
option ipv6 'no'
|
||||||
option force_link '1'
|
option force_link '1'
|
||||||
|
@ -27,15 +27,20 @@ config switch
|
||||||
|
|
||||||
config switch_vlan
|
config switch_vlan
|
||||||
option device 'switch0'
|
option device 'switch0'
|
||||||
option vlan '25'
|
option vlan '5'
|
||||||
option ports '0 1 2'
|
option ports '0 1 2'
|
||||||
|
|
||||||
config switch_vlan
|
config switch_vlan
|
||||||
option device 'switch0'
|
option device 'switch0'
|
||||||
option vlan '100'
|
option vlan '20'
|
||||||
option ports '0t 1t 2t'
|
option ports '0t 1t 2t'
|
||||||
|
|
||||||
config switch_vlan
|
config switch_vlan
|
||||||
option device 'switch0'
|
option device 'switch0'
|
||||||
option vlan '102'
|
option vlan '22'
|
||||||
option ports '0 1t 2t'
|
option ports '0 1t 2t'
|
||||||
|
|
||||||
|
config switch_vlan
|
||||||
|
option device 'switch0'
|
||||||
|
option vlan '23'
|
||||||
|
option ports '0t 1t 2t 4'
|
|
@ -2,7 +2,7 @@ config system
|
||||||
option hostname '<hostname>'
|
option hostname '<hostname>'
|
||||||
option zonename 'Europe/Sofia'
|
option zonename 'Europe/Sofia'
|
||||||
option timezone 'EET-2EEST,M3.5.0/3,M10.5.0/4'
|
option timezone 'EET-2EEST,M3.5.0/3,M10.5.0/4'
|
||||||
option log_ip '10.100.0.1'
|
option log_ip '10.20.0.1'
|
||||||
option log_remote '1'
|
option log_remote '1'
|
||||||
|
|
||||||
config timeserver 'ntp'
|
config timeserver 'ntp'
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
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 'static'
|
|
||||||
option ipaddr '<ip>'
|
|
||||||
option netmask '255.255.255.0'
|
|
||||||
option gateway '10.100.0.1'
|
|
||||||
option dns '10.100.0.1'
|
|
||||||
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 '5t 6'
|
|
||||||
|
|
||||||
config switch_vlan
|
|
||||||
option device 'switch0'
|
|
||||||
option vlan '102'
|
|
||||||
option ports '0 5t'
|
|
|
@ -9,8 +9,8 @@ config interface 'management'
|
||||||
option proto 'static'
|
option proto 'static'
|
||||||
option ipaddr '<ip>'
|
option ipaddr '<ip>'
|
||||||
option netmask '255.255.255.0'
|
option netmask '255.255.255.0'
|
||||||
option gateway '10.100.0.1'
|
option gateway '10.20.0.1'
|
||||||
option dns '10.100.0.1'
|
option dns '10.20.0.1'
|
||||||
option ipv6 'no'
|
option ipv6 'no'
|
||||||
|
|
||||||
config interface 'wireless'
|
config interface 'wireless'
|
||||||
|
@ -27,10 +27,10 @@ config switch
|
||||||
|
|
||||||
config switch_vlan
|
config switch_vlan
|
||||||
option device 'switch0'
|
option device 'switch0'
|
||||||
option vlan '100'
|
option vlan '20'
|
||||||
option ports '1t 6'
|
option ports '1t 6'
|
||||||
|
|
||||||
config switch_vlan
|
config switch_vlan
|
||||||
option device 'switch0'
|
option device 'switch0'
|
||||||
option vlan '102'
|
option vlan '22'
|
||||||
option ports '0 1t'
|
option ports '0 1t'
|
||||||
|
|
|
@ -3,7 +3,7 @@ config system
|
||||||
option hostname '<hostname>'
|
option hostname '<hostname>'
|
||||||
option zonename 'Europe/Sofia'
|
option zonename 'Europe/Sofia'
|
||||||
option timezone 'EET-2EEST,M3.5.0/3,M10.5.0/4'
|
option timezone 'EET-2EEST,M3.5.0/3,M10.5.0/4'
|
||||||
option log_ip '10.100.0.1'
|
option log_ip '10.20.0.1'
|
||||||
option log_remote '1'
|
option log_remote '1'
|
||||||
|
|
||||||
config timeserver 'ntp'
|
config timeserver 'ntp'
|
||||||
|
@ -17,4 +17,4 @@ config timeserver 'ntp'
|
||||||
config led 'led_system'
|
config led 'led_system'
|
||||||
option name 'SYSTEM'
|
option name 'SYSTEM'
|
||||||
option sysfs 'tp-link:green:system'
|
option sysfs 'tp-link:green:system'
|
||||||
option trigger 'heartbeat'
|
option trigger 'heartbeat'
|
||||||
|
|
Loading…
Reference in New Issue