Skip to content

haboustak/linkctl

Repository files navigation

linkctl

A utility for managing systemd-networkd virtual interfaces.

linkctl is a tool for managing systemd-networkd virtual interfaces

Usage:
    linkctl [-h] [-a] [-t] [-version] COMMAND [arguments]

Options:
   -a           show all links
   -h           show this help
   -t           only print link names
   -version     print version information

Commands:
    list        list netdev links
    enable      enable a netdev link
    disable     disable a netdev link
    rename      rename a netdev link

Examples

List all enabled and available netdev links.

# linkctl list [-a]
$ linkctl list -a
NAME           TYPE           STATUS
othernet       vlan           user-defined
test.300       vlan           enabled
test.301       vlan           enabled
test.302       vlan           disabled
test.310       vlan           disabled
test.555       vlan           enabled
test.600       vlan           disabled
testroot       vlan           disabled

Enable a link

# linkctl enable LINK
$ sudo linkctl enable test.300

Rename a link

# linkctl rename LINK [NEWNAME]
$ sudo linkctl rename test.600 lan

About

Utility to manage systemd-networkd netdevs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages