diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2019-08-11 01:37:36 +0200 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2019-08-11 01:41:28 +0200 |
commit | 7ecb124df28e40ac0541e44312d5a863f644275e (patch) | |
tree | f3db26641ffb9ec04432cf9978d09d016a06561f /docs | |
parent | 0309ede4b87d5127b7d70f4ac506603d01041e50 (diff) |
Replace static network config script with iproute2 batch file
A lot simpler than make-shift DSL parsing with bash.
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/network.md | 44 |
1 files changed, 5 insertions, 39 deletions
diff --git a/docs/network.md b/docs/network.md index 3403932..3a76c9a 100644 --- a/docs/network.md +++ b/docs/network.md @@ -34,46 +34,12 @@ Extension cards or external network adapters should be given a different prefix to avoid changes in the order as they come and go. -## Interface Configuration +## Static Interface and Route Configuration -After interface renaming, for each network interface, the configuration path is -scanned for files with the same name as the interface. - -Each successfully found configuration file is processed line by line, top to -bottom. Each line may contain a keyword, followed by multiple arguments. - -The following keywords can be used to add IPv4 or IPv6 network addresses to -an interface: - - * address - * addr - * ip - * ip6 - * ipv6 - -Those commands are expected to be followed by an IPv4 or IPv6 address and -network mask. - - -Furthermore, the following commands can be used for configuring interface -parameters: - - * `arp {on|off}` - * `multicast {on|off}` - * `mtu <value>` - * `offload [rx {on|off}] [tx {on|off}] [sg {on|off}] [tso {on|off}]` - * `offload [gso {on|off}] [gro {on|off}] [lro {on|off}] [rxvlan {on|off}]` - * `offload [txvlan {on|off}] [ntuple {on|off}] [rxhash {on|off}]` - * `offload [ufo {on|off}]` - - -## Route Configuration - -After interface configuration is done, routes and rules are restored from a -file named `routes` in the same configuration path. - -The file may contain lines starting with `route` or `rule`. Everything that -follows is passed on to `ip route add` or `ip rule add` respectively. +After interface renaming, an iproute2 batch script `/etc/netcfg/static` is +executed with the `-force` option is set, i.e. it will plough throug the +entire script without aborting, but the service will be marked as having +failed if any of the batch lines fail. ## Net Filter Tables |