fix README.md, install.py, and add flame-mag
This commit is contained in:
@ -23,7 +23,7 @@ enp1s0=wan,192.168.1.0/24 # the uplink, DHCP enabled, may be in addition in l
|
|||||||
# several networks might be specified, with comma separation
|
# several networks might be specified, with comma separation
|
||||||
# must not contain addresses defined on other interfaces!
|
# must not contain addresses defined on other interfaces!
|
||||||
enp2s0=192.168.3.5 # the ip address of the device to be connected (DHCP or static),
|
enp2s0=192.168.3.5 # the ip address of the device to be connected (DHCP or static),
|
||||||
# must be odd (the value one lower is used for the APU address in this interface)
|
# range of last number: 1..254 (the address of the APU port will be 2 or 1)
|
||||||
enp3s0=off # disabled
|
enp3s0=off # disabled
|
||||||
enp4s0=192.168.3.1/24 # our ip address, the static address of the connected device must
|
enp4s0=192.168.3.1/24 # our ip address, the static address of the connected device must
|
||||||
# be within 1-254 and not match our own
|
# be within 1-254 and not match our own
|
||||||
|
@ -218,7 +218,6 @@ def create_if(name, cfg, mac, dhcp_server_cfg):
|
|||||||
cfgip = network.network_address + 2
|
cfgip = network.network_address + 2
|
||||||
else:
|
else:
|
||||||
cfgip = network.network_address + 1
|
cfgip = network.network_address + 1
|
||||||
print(name, network.network_address, cfgip, otherip.ip)
|
|
||||||
dhcp_server_cfg.append((network.with_netmask, [(str(otherip.ip), str(otherip.ip))]))
|
dhcp_server_cfg.append((network.with_netmask, [(str(otherip.ip), str(otherip.ip))]))
|
||||||
result['IPADDR'] = str(cfgip)
|
result['IPADDR'] = str(cfgip)
|
||||||
else: # subnet with multiple adresses -> static adresses only. dhcp range not yet implemented
|
else: # subnet with multiple adresses -> static adresses only. dhcp range not yet implemented
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
[NETWORK]
|
|
||||||
; please refer to README.md for help
|
|
||||||
enp1s0=192.168.127.1/24
|
|
||||||
enp2s0=192.168.2.1/24
|
|
||||||
enp3s0=192.168.3.1/24
|
|
||||||
enp4s0=dhcp
|
|
||||||
|
|
||||||
[ROUTER]
|
|
||||||
; please refer to README.md for help
|
|
||||||
3000=/dev/ttyUSB0
|
|
||||||
5900=192.168.2.33
|
|
||||||
8080=192.168.127.254:80
|
|
||||||
3001=192.168.127.254:3001
|
|
10
servercfg/flame-mag_591fac.cfg
Normal file
10
servercfg/flame-mag_591fac.cfg
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[NETWORK]
|
||||||
|
; please refer to README.md for help
|
||||||
|
enp1s0=192.168.127.254
|
||||||
|
enp2s0=192.168.2.1
|
||||||
|
enp3s0=192.168.3.5
|
||||||
|
enp4s0=dhcp
|
||||||
|
|
||||||
|
[ROUTER]
|
||||||
|
; please refer to README.md for help
|
||||||
|
5900=192.168.2.1
|
Reference in New Issue
Block a user