> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siderolabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Physical Links

> Learn how to configure physical network interfaces.

export const VersionWarningBanner = () => {
  const latestVersion = "v1.13";
  const [latestUrl, setLatestUrl] = useState(null);
  const [currentVersion, setCurrentVersion] = useState(null);
  const [isBeta, setIsBeta] = useState(false);
  const parseVersion = v => v.replace("v", "").split(".").map(Number);
  const isGreaterVersion = (a, b) => {
    const [aMajor, aMinor] = parseVersion(a);
    const [bMajor, bMinor] = parseVersion(b);
    if (aMajor > bMajor) return true;
    if (aMajor === bMajor && aMinor > bMinor) return true;
    return false;
  };
  useEffect(() => {
    if (typeof window === "undefined") return;
    const {pathname, hash, search} = window.location;
    const match = pathname.match(/\/talos\/(v\d+\.\d+)\//);
    if (!match) return;
    const detectedVersion = match[1];
    if (detectedVersion === latestVersion) return;
    setCurrentVersion(detectedVersion);
    if (isGreaterVersion(detectedVersion, latestVersion)) {
      setIsBeta(true);
    }
    const newPath = pathname.replace(`/talos/${detectedVersion}/`, `/talos/${latestVersion}/`);
    setLatestUrl(`${newPath}${search}${hash}`);
  }, []);
  if (!latestUrl || !currentVersion) return null;
  return <div className="not-prose sticky top-6 z-50 my-6">
      <div className="border border-yellow-500/30 bg-yellow-500/10 px-4 py-3 rounded-xl">
        <div className="text-sm">
          {isBeta ? <>
              ⚠️ You are viewing a <strong>beta version</strong> of Talos ({currentVersion}).
              This version may be unstable.
              <a href={latestUrl} className="ml-2 underline text-yellow-400 hover:text-yellow-300 font-medium">
                View latest stable version {latestVersion} →
              </a>
            </> : <>
              ⚠️ You are viewing an older version of Talos ({currentVersion}).
              <a href={latestUrl} className="ml-2 underline text-yellow-400 hover:text-yellow-300 font-medium">
                View the latest version {latestVersion} →
              </a>
            </>}
        </div>
      </div>
    </div>;
};

<VersionWarningBanner />

## Configuration

Physical network interfaces (links) can be configured in Talos Linux using the [LinkConfig](../../reference/configuration/network/linkconfig) configuration objects.

The following properties can be configured for physical links:

* MTU (`mtu`): sets the Maximum Transmission Unit for the interface (default is 1500).
* bring the link up or down (`up`): controls whether the interface is administratively up or down.

Here is an example of configuring a physical network interface with a specific MTU and bringing it up:

```yaml theme={null}
apiVersion: v1alpha1
kind: LinkConfig
name: enp0s3
mtu: 9000
up: true
```

[Link aliases](./aliases) can also be used to refer to physical links in a more user-friendly way:

```yaml theme={null}
apiVersion: v1alpha1
kind: LinkAliasConfig
name: mgmt
selector:
    match: mac(link.permanent_addr) == "00:1a:2b:3c:4d:5e"
---
apiVersion: v1alpha1
kind: LinkConfig
name: mgmt
mtu: 9000
up: true
```

For low-level control over physical link properties, such as offloading features, refer to the [Ethernet configuration](./../advanced/ethernet-config) documentation.

## Observing status

Use `talosctl` to observe the status of all links:

```bash theme={null}
$ talosctl get links
NODE         NAMESPACE   TYPE         ID          VERSION   ALIAS   TYPE       KIND     HW ADDR                                           OPER STATE   LINK STATE
172.20.0.2   network     LinkStatus   bond0       1                 ether      bond     3e:f0:5c:84:4b:5e                                 down         false
172.20.0.2   network     LinkStatus   dummy0      1                 ether      dummy    1e:e5:74:54:52:21                                 down         false
172.20.0.2   network     LinkStatus   enp0s2      3         net0    ether               ae:48:3d:ca:38:28                                 up           true
172.20.0.2   network     LinkStatus   flannel.1   2                 ether      vxlan    fa:1a:43:6d:23:e1                                 unknown      true
172.20.0.2   network     LinkStatus   ip6tnl0     1                 tunnel6    ip6tnl   00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00   down         false
172.20.0.2   network     LinkStatus   lo          2                 loopback            00:00:00:00:00:00                                 unknown      true
172.20.0.2   network     LinkStatus   sit0        1                 sit        sit      00:00:00:00                                       down         false
172.20.0.2   network     LinkStatus   teql0       1                 void                                                                  down         false
172.20.0.2   network     LinkStatus   tunl0       1                 ipip       ipip     00:00:00:00                                       down         false
```

The output shows all network links, their operational state, and other relevant information.

To see the list of links managed by Talos, use the following:

```bash theme={null}
$ talosctl get linkspecs
NODE         NAMESPACE   TYPE       ID       VERSION
172.20.0.2   network     LinkSpec   enp0s2   6
172.20.0.2   network     LinkSpec   lo       2
```

To see the list of link configuration broken down by configuration source, add `--namespace=network-config` flag:

```bash theme={null}
$ talosctl get links --namespace=networkconfig
NODE         NAMESPACE        TYPE       ID                     VERSION
172.20.0.2   network-config   LinkSpec   configuration/enp0s2   1
172.20.0.2   network-config   LinkSpec   default/lo             1
172.20.0.2   network-config   LinkSpec   dhcp4/enp0s2/enp0s2    1
```
