mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-31 04:58:21 +00:00
1 line
2.6 KiB
JSON
1 line
2.6 KiB
JSON
{"pageProps":{"metadata":{"date":"2021-08-07 20:01:23 +08:00","date_modified":"2021-08-07 20:06:47 +08:00","language":"en","source":""},"title":"systemd-networkd","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"With a systemd-ful environment, you can run the network daemon (i.e., "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"systemd-networkd"}]},{"type":"text","value":").\nOnce enabled, you can run "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"networkctl"}]},{"type":"text","value":" to list all of the network devices. "}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-shell"]},"children":[{"type":"text","value":"networkctl\n"}]}]},{"type":"element","tagName":"pre","properties":{"className":["fixed-width"]},"children":[{"type":"text","value":"IDX LINK TYPE OPERATIONAL SETUP\n 1 lo loopback carrier unmanaged\n 2 enp1s0 ether routable configured\n 3 wlan0 wlan routable configured\n\n3 links listed."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"\nTo configure network manager, you can create a network file in one of systemd unit file paths in the system.\nEach of the device will be assigned an IP address.\nYou can either assign an IP address or dynamically assign them in some way.\nOne of the common ways to do dynamic IP addresses is installing a DHCP server (which is another thing to be configured).\nHere's an example of configuring any wireless devices and assigning a dynamic IP addresses with "},{"type":"element","tagName":"a","properties":{"href":"https://wiki.archlinux.org/title/Network_configuration#DHCP"},"children":[{"type":"text","value":"DHCP"}]},{"type":"text","value":".\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"[Match]\nType=wlan\n\n[Network]\nDHCP=yes\nIPv6PrivacyExtensions=yes\n\n[DHCPv4]\nRouteMetric=1024\n\n[DHCPv6]\nRouteMetric=1024\n"}]}]}]},"backlinks":[{"path":"/linux.network-configuration","title":"Network configuration in Linux"},{"path":"/linux.systemd","title":"systemd"}]},"__N_SSG":true} |