change if names from enp*s0 to eth*
including all cfg files!
This commit is contained in:
22
README.md
22
README.md
@ -17,10 +17,10 @@ content of the config files:
|
||||
|
||||
```
|
||||
[NETWORK]
|
||||
enp1s0=192.168.127.254 # leftmost socket: connect here a moxa with factory settings
|
||||
enp2s0=192.168.2.2 # connected device will get this ip via DHCP
|
||||
enp3s0=192.168.3.3 # or must be configured static to this IP
|
||||
enp4s0=dhcp # rightmost socket is the uplink
|
||||
eth0=192.168.127.254 # leftmost socket: connect here a moxa with factory settings
|
||||
eth1=192.168.2.2 # connected device will get this ip via DHCP
|
||||
eth2=192.168.3.3 # or must be configured static to this IP
|
||||
eth3=dhcp # rightmost socket is the uplink
|
||||
|
||||
[ROUTER]
|
||||
3000=/dev/ttyUSB0 # routing 3000 to the internal serial port /dev/ttyUSB0
|
||||
@ -38,14 +38,12 @@ startup_text=startup...|HOST|ADDR # startup text, 3 lines separated with |
|
||||
## network configuration
|
||||
|
||||
The example above fits the most cases.
|
||||
Remark: as the control boxes (MLZ type) are labelled with 'eth0' etc., the names might be given in this form.
|
||||
Internally the more modern names like 'enp1s0' are used.
|
||||
|
||||
Here a detailed description of possible settings:
|
||||
|
||||
### fixed IP
|
||||
```
|
||||
enp2s0=192.168.3.5
|
||||
eth1=192.168.3.5
|
||||
```
|
||||
Configure the IP address of the connected device to get the specified IP via DHCP or
|
||||
configure the device to with this static IP. The last number must be within 1..254,
|
||||
@ -53,8 +51,8 @@ the APU port itself will get 1 (or 2, if the specified IP is 1).
|
||||
|
||||
### custom network
|
||||
```
|
||||
enp3s0=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
|
||||
eth2=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
|
||||
```
|
||||
24 means 24 bit = 3 bytes network address.
|
||||
A local network with static addresses. This way, the APU can get an other address than
|
||||
@ -63,20 +61,20 @@ Probably needed rarely.
|
||||
|
||||
### uplink via DHCP
|
||||
```
|
||||
enp4s0=wan # or enp4s0=dhcp
|
||||
eth0=wan # or eth0=dhcp
|
||||
```
|
||||
Uplink configured for DHCP in any network n.x.y.z with n < 192
|
||||
|
||||
### customized uplink
|
||||
```
|
||||
enp1s0=wan,192.168.1.0/24
|
||||
eth0=wan,192.168.1.0/24
|
||||
```
|
||||
Add more networks to the allowed uplink range. More than one range is allowed, comma separated.
|
||||
Must not overlap networks specified for other ports!
|
||||
|
||||
### disabled port
|
||||
```
|
||||
enp3s0=off # disabled
|
||||
eth3=off # disabled
|
||||
```
|
||||
|
||||
## display
|
||||
|
Reference in New Issue
Block a user