b2a81c0b524fee0a1713720462b6db5c302c3933 |
|
26-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
networkd: optinally use DHCP lease domain info for routing only
This changes the UseDomains= setting of .network files to take an optional third value "route", in addition to the
boolean values. If set, the passed domain information is used for routing rules only, but not for the search path
logic. |
27cb34f57458758ee8615d72c6a60a39d4b92226 |
|
26-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
networkd: rename a few Network object properties to be more like the configuration settings
All booleans called dhcp_xyz are now called ".dhcp_use_xyz", to match their respective configuration file settings. This
should clarify things a bit, in particular as there is a DHCP hostname that was previously called just ".hostname"
because ".dhcp_hostname" was already existing as a bool. Since this confusion is removed now because the bool is called
".dhcp_use_hostname", the string field is now renamed to ".dhcp_hostname". |
3df9bec57c3e2d96f7e2a25961585cfa609b61eb |
|
26-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
networkd: rework Domains= setting
Previously, .network files only knew a vaguely defined "Domains=" concept, for which the documentation declared it was
the "DNS domain" for the network connection, without specifying what that means.
With this the Domains setting is reworked, so that there are now "routing" domains and "search" domains. The former are
to be used by resolved to route DNS request to specific network interfaces, the latter is to be used for searching
single-label hostnames with (in addition to being used for routing). Both settings are configured in the "Domains="
setting. Normal domain names listed in it are now considered search domains (for compatibility with existing setups),
while those prefixed with "~" are considered routing domains only. To route all lookups to a specific interface the
routing domain "." may be used, referring to the root domain. An alternative syntax for this is the "*", as was already
implemented before using the "wildcard" domain concept.
This commit adds proper parsers for this new logic, and exposes this via the sd-network API. This information is not
used by resolved yet, this will be added in a later commit. |
8a516214c4412e8a40544bd725a6d499a30cbbbf |
|
06-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
resolved: introduce support for per-interface negative trust anchors |
ad6c04756115809d615dede330213d73edf732a8 |
|
05-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
resolved,networkd: add a per-interface DNSSEC setting
This adds a DNSSEC= setting to .network files, and makes resolved honour
them. |
aaa297d4e5401fd4466632555432774863457f1d |
|
05-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
networkd,resolved: add a per-interface mdns configuration option |
af49ca27ffd790d78dbbb465b978266dfd5c93da |
|
05-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
resolved,networkd: unify ResolveSupport enum
networkd previously knew an enum "ResolveSupport" for configuring
per-interface LLMNR support, resolved had a similar enum just called
"Support", with the same value and similar pasers.
Unify this, call the enum ResolveSupport, and port both daemons to it. |
b69c318040acaefdd02a710998676312d764040b |
|
10-Nov-2015 |
Susant Sahani <ssahani@gmail.com> |
networkd: Add support to configure IPV6 hop limit
This patch adds support to configure IPV6 hop limit.
For example:
/proc/sys/net/ipv6/conf/wlp3s0/hop_limit |
8749cbcd4fe989709c6e680c4a141e34496e74d9 |
|
16-Oct-2015 |
Susant Sahani <ssahani@gmail.com> |
networkd: add support for configure IPv6 DAD
Configures Ipv6 Duplicate Address Detection.
10 |
0d07e595cc22379ec7388406c2f4f2a74eea9083 |
|
24-Sep-2015 |
Jens Kuske <jenskuske@gmail.com> |
networkd: add support to configure preferred source of static routes |
4f2e437ad7b04bc0690d1f8202577cbf47acb215 |
|
12-Sep-2015 |
Susant Sahani <ssahani@gmail.com> |
networkd:add support to configure ipv6 acceprt ra
This patch support to configure the ipv6 acceprt ra option.
for more information see
http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/proc-sys-net-ipv6..html |
9b3a67c55b7df6642a0389306c513b17c211f280 |
|
31-Aug-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: dhcp-server - allow configuration of the pool
The constraints we place on the pool is that it is a contiguous
sequence of addresses in the same subnet as the server address, not
including the subnet nor broadcast addresses, but possibly including
the server address itself. If the server address is included in the
pool it is (obviously) reserved and not handed out to clients. |
1a04db0fc9d08fffe80d6d7b5b60459295922b11 |
|
27-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
dhcp,network: support emitting DNS/NTP server information from DHCP server
For now, this is very simple and IP addresses have to be configured
manually. |
586ac6f711e2eccceb12421df22fca4f117226c4 |
|
27-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: make DHCP lease timeouts configurable |
8eb9058dc1f99a5eb9b8726a978fcc0720837a10 |
|
26-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
dhcp,network: implement RFC 4833 (DHCP Timezone option)
This one is simply to add: encode the tzdata timezone in the DHCP
options and optionally make use of it. |
a7e5da6e33de9ad9b5bc594fdc74e3e4098a5751 |
|
25-Aug-2015 |
Daniel Mack <daniel@zonque.org> |
sd-network: make LLMNR specific config parser generic
Rename the enum, the lookup functions and the parser for LLMNRSupport so
the type can be reused for mDNS. |
f33ff02b1aca5272ec678d3f4a211b4337882348 |
|
27-Jul-2015 |
Susant Sahani <ssahani@gmail.com> |
networkd: add support for macvtap
This patch add support for macvtap.
see http://virt.kernelnewbies.org/MacVTap |
23da66bb402cc6d9bca2eb34e090ccc24dfbf3f5 |
|
25-Jul-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
networkd: rename RootBlock to AllowPortToBeRoot
Justification is similar to BPDUGuard rename. "Positive" values
are easier. This is a rather uncommon option, so using a slightly
longer name should not be a problem, and may in fact may make it
easier to guess what the option does without reading the
documentation. |
84c3409631f48869dcb59c0a74eba6d4ac40ad93 |
|
25-Jul-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
networkd: rename BPDUGuard to UseBPDU
Rename to follow the follow the style of other options.
In general "positive" options are preferred to "negative" ones,
because they are easier to describe and easier for humans to
parse (c.f. the shortening on the man page entry). |
eb7ff4dd5f89bd5f811176be499bbdf9b0da6ec9 |
|
23-Jul-2015 |
Susant Sahani <susant@redhat.com> |
networkd: add bridge link properties
new bridge properties
br.network
[Match]
Name=enp0s25
[Network]
Bridge=br-test
[Bridge]
Cost=332
BPDUGuard = true
HairPin = true
FastLeave = true
RootBlock = true
UnicastFlood = true |
a7d0ef446e5f28b37688743de22052abc8136a94 |
|
10-Jul-2015 |
Susant Sahani <susant@redhat.com> |
networkd: DHCP override hostname
This patch enhances the DHCP client to send the hostname
reference
http://lists.freedesktop.org/archives/systemd-devel/2014-July/021550.html
Tested with
Example conf:
[Match]
Name=eth1
[Network]
DHCP=v4
[DHCP]
SendHostname=true
Hostname=test |
49092e22c2893118304bac1b3b706cd88f90590d |
|
05-Jul-2015 |
Susant Sahani <susant@redhat.com> |
networkd: Add support for ipv6 privacy extension
This patch add support for ipv6 privacy extensions.
The variable /proc/sys/net/ipv6/conf/<if>/use_tempaddr
can be changed via the boolean
IPv6PrivacyExtensions=[yes/no/prefer-temporary]
When true enables privacy extensions, but prefer public addresses over
temporary addresses.
prefer-temporary prefers temporary adresses over public addresses.
Defaults to false.
[Match]
Name=enp0s25
[Network]
IPv6PrivacyExtensions=prefer-temporary |
8add5f79709f323f1b077dde8a4a1aa7f560886f |
|
11-Jun-2015 |
Nick Owens <nick.owens@coreos.com> |
networkd: create "kernel" setting for IPForwarding
In 5a8bcb674f71a20e95df55319b34c556638378ce, IPForwarding was introduced
to set forwarding flags on interfaces in .network files. networkd sets
forwarding options regardless of the previous setting, even if it was
set by e.g. sysctl. This commit creates a new option for IPForwarding,
"kernel", that preserves the sysctl settings rather than always setting
them.
See https://bugs.freedesktop.org/show_bug.cgi?id=89509 for the initial
bug report. |
301f4073fe1c2757e602aef24cee9ccf5f81a3a3 |
|
15-Mar-2015 |
Michael Marineau <michael.marineau@coreos.com> |
network: add UseNTP DHCP option
Despite having the internal logic in place to enable/disable using NTP
servers provided by DHCP the network config didn't expose the option. |
3e43b2cd97bd82efe6a09e8b9b2e6b5f33f578a0 |
|
04-Mar-2015 |
Jan Janssen <medhefgo@web.de> |
networkd: Make DHCP client ID creation configurable |
0d4ad91dd4fc831c31a9775b0eadf97fea6cd7f6 |
|
27-Feb-2015 |
Alin Rauta <alin.rauta@intel.com> |
networkd: add support for Uplink Failure Detection
Introduce BindCarrier= to indicate the set of links that determine if
the current link should be brought UP or DOWN.
[tomegun: add a bit to commit message] |
60c35566600f45350c37f152c1093018972bd9a5 |
|
14-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: network - rename ipv6token parser
Too generic name. |
56fd6bf795926409b087bce406ea851ad89f9fe8 |
|
14-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: .network - rename LinkLocal to LinkLocalAddressing
Makes it a bit less ambiguous. |
5256e00e8b9015dd1a976d647fc71dc7efbd8cf8 |
|
10-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
net: support globbing and disjunction in Match logic
Match{Name,OrginalName,Type,Driver,Path} can now take a space-separated glob of matches. |
769b56a308c3f3d3952eda87fd4fb004207f4f49 |
|
09-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: support route scopes
For now we only support the hardcoded values RT_SCOPE_{UNIVERSE,LOCAL,HOST},
and not numerical values or values from /etc/iproute2/rt_scopes.
This addresses https://bugs.freedesktop.org/show_bug.cgi?id=88508. |
7f77697a1744f8df2089848b9d718faf7ba6c665 |
|
09-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: add support for IPv6 tokens
This allows the admin to set the host-specific part of IPv6 addresses, but still
receive the prefix via SLAAC.
.network file snippet:
[Network]
IPv6Token=::12
gives:
$ ip token
token ::12 dev eth0
This closes https://bugs.freedesktop.org/show_bug.cgi?id=81177. |
d0d6a4cd70477970812bff0a37e70f66208d7c14 |
|
09-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: generalize IPv4LL to LinkLocal
This allows both IPv4 and IPv6 link-local addresses to be enabled or disabled. By default
we still enable IPv6LL and disable IPv4LL. The old config option is kept for backwards
compatibility, but removed from the documentation. |
c4a5ddc9f29cf910fac9d814cd898b4cc2bd79b1 |
|
19-Jan-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: netdev - add ipvlan support |
769d324c99aab129148bd25f5f663ef441287d86 |
|
13-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: make IP forwarding for IPv4 and IPv6 individually configurable |
5a8bcb674f71a20e95df55319b34c556638378ce |
|
13-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
networkd: add minimal IP forwarding and masquerading support to .network files
This adds two new settings to networkd's .network files:
IPForwarding=yes and IPMasquerade=yes. The former controls the
"forwarding" sysctl setting of the interface, thus controlling whether
IP forwarding shall be enabled on the specific interface. The latter
controls whether a firewall rule shall be installed that exposes traffic
coming from the interface as coming from the local host to all other
interfaces.
This also enables both options by default for container network
interfaces, thus making "systemd-nspawn --network-veth" have network
connectivity out of the box. |
ce43e484465050c619ea9a1991d49b3d6215028b |
|
19-Dec-2014 |
Susant Sahani <susant@redhat.com> |
networkd: integrate LLDP
This patch integrates LLDP with networkd.
Example conf:
file : lldp.network
[Match]
Name=em1
[Network]
LLDP=yes |
b98b483bac585af754e8a22ea890db8486905d8a |
|
18-Dec-2014 |
Alin Rauta <alin.rauta@intel.com> |
networkd: add FDB support |
7303ec8f3009d6630a994644ad9e539813badc52 |
|
10-Dec-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: rename section [BridgePort] → [Bridge]
Let's stick to generic sections that describe the general technology,
instead of specific per-object sections, unless we really have a reason
to do that otherwise. |
c106cc36b9b8e8998eb95299b02f1db9c1209122 |
|
05-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add basic [Link] settings to .network files
This allows the default link settings (set in .link files) to be overridden per Network. Only MTU and MACAddress is supported for now. |
9e7e440835c43d81ffdbc299d2c07daaa641ed50 |
|
04-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add support for source routing |
e1853b00ef7cb56cafd908327dd44b3ab48b402c |
|
04-Dec-2014 |
Susant Sahani <susant@redhat.com> |
networkd: Add bridge port path cost
This patch add support to specify path cost of the
bridge port to be configured via conf file.
Exampe: conf
file: br.netdev
[NetDev]
Name=br-test
Kind=bridge
file: br.network
[Match]
Name=em1
[Network]
Bridge=br-test
[BridgePort]
Cost=332
bridge link
2: em1 state UP : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master
br-test state disabled priority 32 cost 332 |
84b5b79a8f7b423c5b7cad4170eb68d57fe5e26c |
|
08-Sep-2014 |
Angus Gibson <angus@agibson.me> |
networkd: allow specification of DHCP route metric
This lets the routing metric for links to be specified per-network,
still defaulting to DHCP_ROUTE_METRIC (1024) if unspecified. Hopefully
this helps with multiple interfaces configured via DHCP. |
6192b846ca0d15602e94ddb5da4420b7c60d64a5 |
|
15-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add support for Domains= to .network files
This allows the search/routing domanis to be specified per link/network and be passed
on to resolved. |
ad0734e890b25751ef8229e47210ff11ae8fa3f3 |
|
15-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: rename UseDomainName to UseDomains
This option will also apply to the search domains, so make it plural. |
bd8f65387673e29f46136a4ed172097035002c23 |
|
04-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add and expose per-link LLMNR config option |
6a0a2f860f1ca4a10932da3b41dbc3c0139757cc |
|
28-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: unify handling of stacked netdevs |
bfa695b5cc37aeb78737c57c84e9e69ea08152c0 |
|
25-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: ipv4ll - default to setting up ipv4ll routes
This is necessary for non-ipv4ll hosts to communicate with ipv4ll-only hosts on the same link. Defaults
to being enabled, but can be opted out.
See: <http://avahi.org/wiki/AvahiAutoipd#Routes> |
b0e39c8284b5195850a58e4efcce2f059bdcc6ad |
|
23-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: merge DNS and NTP entries when exporting
In the state files, do not distinguish where the various entries came from
(static or DHCP), but include them all in the same list. |
f5de5b00204f041aaec828d336c8afd9e860a5c3 |
|
15-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
sd-dhcp-client: make request broadcasts opt-in
It appears there is no good way to decide whether or not broadcasts should be enabled,
there is hardware that must have broadcast, and there are networks that only allow
unicast. So we give up and make this configurable.
By default, unicast is used, but if the kernel were to inform us abotu certain
interfaces requiring broadcast, we could change this to opt-in by default in
those cases. |
dde2efef37b25f759a8690be7b8be353daa3ff75 |
|
14-Jul-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add back route destination support
This was accidentally dropped when adding metric support. |
edb85f0d8d0a84f27308a3728f3fde3c52b9dce2 |
|
14-Jul-2014 |
Susant Sahani <susant@redhat.com> |
networkd: dhcp add vendor class indentifier option 60
Vendor Class Identifier be used by DHCP clients to identify
their vendor type and configuration. When using this option,
vendors can define their own specific identifier values, such
as to convey a particular hardware or operating system
configuration or other identifying information.
Vendor-specified DHCP options—features that let administrators assign
separate options to clients with similar configuration requirements.
For example, if DHCP-aware clients for example we want to separate
different gateway and option for different set of people
(dev/test/hr/finance) in a org or devices for example web/database
servers or let's say in a embedded device etc and require a different
default gateway or DNS server than the rest of clients. |
5d8e593dce074bff966fc0a46579c61b4f3bc33a |
|
14-Jul-2014 |
Susant Sahani <susant@redhat.com> |
networkd: make metric of routes configurable
Now route metric can be configuted via conf file:
example conf:
[Match]
Name=em1
[Route]
Gateway=192.168.1.12
Metric=10
Test:
ip route output
default via 192.168.1.12 dev em1 metric 10
[tomegun: squash TODO update and reword man page a bit] |
c081882f07617e56bcbce54105068137e4e0bb52 |
|
07-Jul-2014 |
Susant Sahani <susant@redhat.com> |
networkd: add support for peer address
This patch adds peer address support for
networkd . In the [Address] a new configurable
param is Peer.
[Match]
Name=ipip-tun
[Address]
Address=10.0.0.1/32
Peer=10.0.0.2/32 |
72165d619173e9d17190180d71a023d9d4f23301 |
|
01-Jul-2014 |
Filipe Brandenburger <filbranden@google.com> |
networkd: fix alignment of gperf source |
4cc7a82c9490a3c5ae03b1d6d168ce40ba499e23 |
|
01-Jul-2014 |
Eugene Yakubovich <eugene.yakubovich@coreos.com> |
networkd: send hostname to dhcp server
Send hostname (option 12) in DISCOVER and REQUEST messages so the
DHCP server could use it to register with dynamic DNS and such.
To opt-out of this behaviour set SendHostname to false in [DHCP]
section of .network file
[tomegun: rebased, made sure a failing set_hostname is a noop and moved
config from DHCPv4 to DHCP] |
e1ea665edac17d75fce01b72dadfa3211b60df2c |
|
29-Jun-2014 |
Eugene Yakubovich <eyakubovich@gmail.com> |
Add support for DHCP static route options
This adds support for DHCP options 33 and 121: Static Route and
Classless Static Route. To enable this feature, set UseRoutes=true
in .network file. Returned routes are added to the routing table. |
ed942a9eb22d50f667909ad6184b45015d28d054 |
|
29-Jun-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: merge DHCPv4 and DHCPv6 config
If there are v4 or v6 specific options we can keep those in separate sections,
but for the common options, we will use only one.
Moreovere only use DHCP=[yes/both|no/none|v4|v6] to enable or disable the clients. |
4138fb2c7936758da709eaed3f6b4f3df1d04eff |
|
19-Jun-2014 |
Patrik Flykt <patrik.flykt@linux.intel.com> |
networkd: Add initial DHCPv6 support
Enable DHCPv6 support by creating a DHCPv6 boolean in the Network
section. Add necessary DHCPv6 structures and initial function calls. |
326cb4061a7d6ec4107f298b6f947d645512ad76 |
|
16-Jun-2014 |
Susant Sahani <susant@redhat.com> |
networkd: introduce vxlan
This patch enables netwokd to create vxlan
Changes:
Added:
1. File networkd networkd-vxlan.c
2. to netdev
bool learning
struct in_addr group
uint64_t vxlanid;
3. VXLAN subsection and config
parameters |
dd43110f781a9245ec00531456fee68ed763a179 |
|
13-Jun-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add dhcp server support
When enabled in [Network] it will set up a dhcp server on the interface, listening
on one of its statically configured IPv4 addresses and with a fixed size pool of
leases determined from it.
Example:
[Match]
Name=ve-arch-tree
[Network]
Address=192.168.12.5/24
DHCPServer=yes
[Route]
Gateway=192.168.12.5
Destination=192.168.12.0/24
In this case we will configure ve-arch-tree with the address 192.168.12.5 and
hand out addresses in the range 192.168.12.6 - 192.168.12.38.
In the future, we should (as suggested by Lennart) introduce a syntax to pick the
server address automatically. |
bcb7a07e0a785bda1eed658e984ff6b4a11cba9a |
|
19-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd/sd-network: expose statically configured NTP servers |
7951dea20911969287878e6897b3eca348721ade |
|
12-May-2014 |
Susant Sahani <susant@redhat.com> |
networkd: introduce ipip tunnel
This patch enables basic ipip tunnel support.
It works with kernel module ipip
example conf:
file: ipip.netdev
[NetDev]
Name=ipip-tun
Kind=ipip
MTUBytes=1480
[Tunnel]
Local=192.168.223.238
Remote=192.169.224.239
TTL=64
file: ipip.network
[Match]
Name=em1
[Network]
Tunnel=ipip-tun
[tomegun:
- drop unused variable
- take ref when enslaving] |
69a93e7db47addc4495a6ec9dc0fc74092a6ebee |
|
09-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: network - merge all netdev parsing into one function |
c6f7c917a1b494d4455800823472227463f87438 |
|
21-Mar-2014 |
Tom Gundersen <teg@jklm.no> |
libsystemd-network: move network-utils from src/shared
This does not belong in shared as it is mostly a detail of our networking subsystem.
Moreover, now we can use libudev here, which will simplify things. |
5c1d3fc93d91384bbac29adf01074fa4375317ea |
|
03-Mar-2014 |
Umut Tezduyar Lindskog <umut.tezduyar@axis.com> |
sd-network: IPv4 link-local support [v2]
Implements IPv4LL with respect to RFC 3927
(http://tools.ietf.org/rfc/rfc3927.txt) and integrates it
with networkd. Majority of the IPv4LL state machine is
taken from avahi (http://avahi.org/) project's autoip.
IPv4LL can be enabled by IPv4LL=yes under [Network]
section of .network file.
IPv4LL works independent of DHCP but if DHCP lease is
aquired, then LL address will be dropped.
[tomegun: removed a trailing newline and a compiler warning] |
fe6b2d55bcb379d01664ed28cea40634cb6b52e3 |
|
25-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: add basic support for MACVLANs |
edbb03e95a3c31bf719d5c6c46eec14d0bcb9c8f |
|
21-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
.network/.netdev/.link: allow to match on architecture |
c0dda18697e0994272c0c9616d36f6777b60e2c7 |
|
20-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: netdev - allow filtering on kernel cmdline, host and virt |