X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsystemd.network.xml;h=538f4b8e7b37624ac792b08a9521820b05226a81;hb=a2cc708a88087e903bd915ecd1d91370f4347c17;hp=c48b294551be95f8cb609eb1a3ed88e8578df4e9;hpb=6f209cb01d3d85d9073b9d6ca6f5dc3ae49c37dd;p=thirdparty%2Fsystemd.git diff --git a/man/systemd.network.xml b/man/systemd.network.xml index c48b294551b..538f4b8e7b3 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -57,7 +57,7 @@ /run/systemd/network directories. Drop-in files in /etc take precedence over those in /run which in turn take precedence over those in /usr/lib. Drop-in files under any of these - directories take precedence over the main netdev file wherever located. + directories take precedence over the main network file wherever located. Note that an interface without any static IPv6 addresses configured, and neither DHCPv6 nor IPv6LL enabled, shall be considered to have no IPv6 support. IPv6 will be automatically @@ -90,7 +90,7 @@ MACAddress= A whitespace-separated list of hardware addresses. Use full colon-, hyphen- or dot-delimited hexadecimal. See the example below. - This option may appear more than one, in which case the lists are merged. If the empty string is assigned to this option, the list + This option may appear more than once, in which case the lists are merged. If the empty string is assigned to this option, the list of hardware addresses defined prior to this is reset. Example: @@ -153,6 +153,36 @@ + + WLANInterfaceType= + + A whitespace-separated list of wireless network type. Supported values are + ad-hoc, station, ap, + ap-vlan, wds, monitor, + mesh-point, p2p-client, p2p-go, + p2p-device, ocb, and nan. If the + list is prefixed with a "!", the test is inverted. + + + + + SSID= + + A whitespace-separated list of shell-style globs matching the SSID of the currently + connected wireless LAN. If the list is prefixed with a "!", the test is inverted. + + + + + BSSID= + + A whitespace-separated list of hardware address of the currently connected wireless + LAN. Use full colon-, hyphen- or dot-delimited hexadecimal. See the example in + MACAddress=. This option may appear more than one, in which case the + lists are merged. If the empty string is assigned to this option, the list of BSSID defined + prior to this is reset. + + Host= @@ -324,8 +354,8 @@ specified through DHCP is not used for name resolution. See option below. - See the [DHCP] section below for further configuration options for the DHCP client - support. + See the [DHCPv4] or [DHCPv6] section below for + further configuration options for the DHCP client support. @@ -654,11 +684,10 @@ IPv6AcceptRA= - Takes a boolean. Controls IPv6 Router Advertisement (RA) reception support for the interface. - If true, RAs are accepted; if false, RAs are ignored, independently of the local forwarding state. - If unset, the kernel's default is used, and RAs are accepted only when local forwarding - is disabled for that interface. When RAs are accepted, they may trigger the start of the DHCPv6 client if - the relevant flags are set in the RA data, or if no routers are found on the link. + Takes a boolean. Controls IPv6 Router Advertisement (RA) reception support + for the interface. If true, RAs are accepted; if false, RAs are ignored, independently of the + local forwarding state. When RAs are accepted, they may trigger the start of the DHCPv6 + client if the relevant flags are set in the RA data, or if no routers are found on the link. Further settings for the IPv6 RA support may be configured in the [IPv6AcceptRA] section, see below. @@ -668,10 +697,11 @@ documentation regarding accept_ra, but note that systemd's setting of 1 (i.e. true) corresponds to kernel's setting of 2. - Note that if this option is enabled a userspace implementation of the IPv6 RA protocol is - used, and the kernel's own implementation remains disabled, since `networkd` needs to know all - details supplied in the advertisements, and these are not available from the kernel if the kernel's - own implementation is used. + Note that kernel's implementation of the IPv6 RA protocol is always disabled, + regardless of this setting. If this option is enabled, a userspace implementation of the IPv6 + RA protocol is used, and the kernel's own implementation remains disabled, since + systemd-networkd needs to know all details supplied in the advertisements, + and these are not available from the kernel if the kernel's own implementation is used. @@ -876,8 +906,8 @@ lease expires. This is contrary to the DHCP specification, but may be the best choice if, e.g., the root filesystem relies on this connection. The setting dhcp implies dhcp-on-stop, and yes implies - dhcp and static. Defaults to - dhcp-on-stop. + dhcp and static. Defaults to no. + @@ -1016,9 +1046,9 @@ - MACAddress= + LinkLayerAddress= - The hardware address of the neighbor. + The link layer address (MAC address or IP address) of the neighbor. @@ -1086,8 +1116,9 @@ Table= - Specifies the routing table identifier to lookup if the rule - selector matches. The table identifier for a route (a number between 1 and 4294967295). + Specifies the routing table identifier to lookup if the rule selector matches. Takes + one of default, main, and local, + or a number between 1 and 4294967295. Defaults to main. @@ -1138,6 +1169,39 @@ A boolean. Specifies whether the rule to be inverted. Defaults to false. + + Family= + + Takes a special value ipv4, ipv6, or + both. By default, the address family is determined by the address + specified in To= or From=. If neither + To= nor From= are specified, then defaults to + ipv4. + + + + + + + [NextHop] Section Options + The [NextHop] section accepts the + following keys. Specify several [NextHop] + sections to configure several nexthop. Nexthop is used to manipulate entries in the kernel's nexthop + tables. + + + + Gateway= + + As in the [Network] section. This is mandatory. + + + + Id= + + The id of the nexthop (an unsigned integer). If unspecified or '0' then automatically chosen by kernel. + + @@ -1224,15 +1288,19 @@ Protocol= The protocol identifier for the route. Takes a number between 0 and 255 or the special values - kernel, boot and static. Defaults to - static. + kernel, boot, static, + ra and dhcp. Defaults to static. Type= - Specifies the type for the route. If unicast, a regular route is defined, i.e. a + Specifies the type for the route. Takes one of unicast, + local, broadcast, anycast, + multicast, blackhole, unreachable, + prohibit, throw, nat, and + xresolve. If unicast, a regular route is defined, i.e. a route indicating the path to take to a destination network address. If blackhole, packets to the defined route are discarded silently. If unreachable, packets to the defined route are discarded and the ICMP message "Host Unreachable" is generated. If prohibit, packets @@ -1294,14 +1362,21 @@ Note that if IPv6 is enabled on the interface, and the MTU is chosen below 1280 (the minimum MTU for IPv6) it will automatically be increased to this value. - + + + IPServiceType= + + Takes string; "CS6" or "CS4". Used to set IP service type to CS6 (network control) + or CS4 (Realtime). IPServiceType defaults to CS6 if nothing is specified. + + - [DHCP] Section Options - The [DHCP] section configures the - DHCPv4 and DHCP6 client, if it is enabled with the + [DHCPv4] Section Options + The [DHCPv4] section configures the + DHCPv4 client, if it is enabled with the DHCP= setting described above: @@ -1317,6 +1392,14 @@ project='man-pages'>resolv.conf5. + + RoutesToDNS= + + When true, the routes to the DNS servers received from the DHCP server will be + configured. When UseDNS= is disabled, this setting is ignored. + Defaults to false. + + UseNTP= @@ -1325,6 +1408,14 @@ and take precedence over any statically configured ones. + + UseSIP= + + When true (the default), the SIP servers received + from the DHCP server will be saved at the state files and can be + read via sd_network_link_get_sip_servers() function. + + UseMTU= @@ -1530,7 +1621,51 @@ SendRelease= When true, the DHCPv4 client sends a DHCP release packet when it stops. - Defaults to false. + Defaults to true. + + + + + BlackList= + + A whitespace-separated list of IPv4 addresses. DHCP offers from servers in the list are rejected. + + + + + RequestOptions= + + A whitespace-separated list of integers in the range 1–254. + + + + + SendOption= + + Send an arbitrary option in the DHCPv4 request. Takes a DHCP option number and an arbitrary + data string separated with a colon + (option:value). The + option number must be an interger in the range 1..254. Special characters in the data string may + be escaped using + C-style + escapes. This option can be specified multiple times. If an empty string is specified, + then all options specified earlier are cleared. Defaults to unset. + + + + + + + [DHCPv6] Section Options + The [DHCPv6] section configures the DHCPv6 client, if it is enabled with the + DHCP= setting described above, or invoked by the IPv6 Router Advertisement: + + + + UseDNS= + UseNTP= + + As in the [DHCPv4] section. @@ -1564,14 +1699,15 @@ - BlackList= + PrefixDelegationHint= - A whitespace-separated list of IPv4 addresses. DHCP offers from servers in the list are rejected. + Takes an IPv6 address with prefix length as Addresss= in + the "[Network]" section. Specifies the DHCPv6 client for the requesting router to include + a prefix-hint in the DHCPv6 solicitation. Prefix ranges 1-128. Defaults to unset. - - + [IPv6AcceptRA] Section Options @@ -1729,6 +1865,19 @@ DNS=. + + EmitSIP= + SIP= + + Similar to the EmitDNS= and + DNS= settings described above, these + settings configure whether and what SIP server information + shall be emitted as part of the DHCP lease. The same syntax, + propagation semantics and defaults apply as for + EmitDNS= and + DNS=. + + EmitRouter= @@ -1846,7 +1995,7 @@ - + [IPv6Prefix] Section Options One or more [IPv6Prefix] sections contain the IPv6 prefixes that are announced via Router Advertisements. See @@ -1891,6 +2040,37 @@ + + [IPv6RoutePrefix] Section Options + One or more [IPv6RoutePrefix] sections contain the IPv6 + prefix routes that are announced via Router Advertisements. See + RFC 4191 + for further details. + + + + + Route= + + The IPv6 route that is to be distributed to hosts. + Similarly to configuring static IPv6 routes, the setting is + configured as an IPv6 prefix routes and its prefix route length, + separated by a/ character. Use multiple + [IPv6PrefixRoutes] sections to configure multiple IPv6 + prefix routes. + + + + LifetimeSec= + + Lifetime for the route prefix measured in + seconds. LifetimeSec= defaults to 604800 seconds (one week). + + + + + + [Bridge] Section Options The [Bridge] section accepts the @@ -2111,6 +2291,56 @@ + + [TrafficControlQueueingDiscipline] Section Options + The [TrafficControlQueueingDiscipline] section manages the Traffic control. It can be used + to configure the kernel packet scheduler and simulate packet delay and loss for UDP or TCP applications, + or limit the bandwidth usage of a particular service to simulate internet connections. + + + + Parent= + + Specifies the parent Queueing Discipline (qdisc). Takes one of root + or clsact. Defaults to root. + + + + + NetworkEmulatorDelaySec= + + Specifies the fixed amount of delay to be added to all packets going out of the + interface. Defaults to unset. + + + + + NetworkEmulatorDelayJitterSec= + + Specifies the chosen delay to be added to the packets outgoing to the network + interface. Defaults to unset. + + + + + NetworkEmulatorPacketLimit= + + Specifies the maximum number of packets the qdisc may hold queued at a time. + An unsigned integer ranges 0 to 4294967294. Defaults to 1000. + + + + + NetworkEmulatorLossRate= + + Specifies an independent loss probability to be added to the packets outgoing from the + network interface. Takes a percentage value, suffixed with "%". Defaults to unset. + + + + + + [BridgeVLAN] Section Options The [BridgeVLAN] section manages the VLAN ID configuration of a bridge port and accepts @@ -2176,6 +2406,27 @@ DHCP=yes en (i.e. ethernet interfaces). + + IPv6 Prefix Delegation + + # /etc/systemd/network/55-ipv6-pd-upstream.network +[Match] +Name=enp1s0 + +[Network] +DHCP=ipv6 + + # /etc/systemd/network/56-ipv6-pd-downstream.network +[Match] +Name=enp2s0 + +[Network] +IPv6PrefixDelegation=dhcpv6 + + This will enable IPv6 PD on the interface enp1s0 as an upstream interface where the + DHCPv6 client is running and enp2s0 as a downstream interface where the prefix is delegated to. + + A bridge with two enslaved links