Interface AddressShowOptions

Address show options.

Hierarchy

  • AddressShowOptions

Properties

-dadfailed?: true

(IPv6 only) only list addresses which have not failed duplicate address detection.

-deprecated?: true

(IPv6 only) only list addresses not being deprecated.

-dynamic?: true
-permanent?: true
-primary?: true

This is an alias for temporary or secondary.

-secondary?: true

Aliases for primary.

See

primary

-temporary?: true
-tentative?: true

Aliases for primary.

See

primary

autojoin?: true
dadfailed?: true

(IPv6 only) only list addresses which have failed duplicate address detection.

deprecated?: true

(IPv6 only) only list deprecated addresses.

dev?: string

The name of the device to filter and show its addresses.

dynamic?: true
home?: true
label?: string

Only list addresses with labels matching the PATTERN. PATTERN is a usual shell style pattern.

master?: string

Only list interfaces enslaved to this master device.

mngtmpaddr?: true
nodad?: true
noprefixroute?: true
optimistic?: true
permanent?: true

(IPv6 only) only list addresses installed due to stateless address configuration or only list permanent (not dynamic) addresses.

These two flags are inverses of each other, so -dynamic is equal to permanent and -permanent is equal to dynamic.

primary?: true

List only primary addresses, in IPv6 exclude temporary ones. This flag is the inverse of temporary and secondary.

scope?: number | AddressScopes

Only list addresses with this scope.

secondary?: true
temporary?: true

List temporary IPv6 or secondary IPv4 addresses only. The Linux kernel shares a single bit for those, so they are actually aliases for each other although the meaning differs depending on address family.

tentative?: true

(IPv6 only) only list addresses which have not yet passed duplicate address detection.

to?: string

Only show addresses matching this prefix.

type?: LinkTypes

Only list interfaces of the given type.

Note that the type name is not checked against the list of supported types - instead it is sent as-is to the kernel. Later it is used to filter the returned interface list by comparing it with the relevant attribute in case the kernel didn't filter already.

Therefore any string is accepted, but may lead to empty output.

up?: true

Only list running interfaces.

vrf?: string

Only list interfaces enslaved to this vrf.

Generated using TypeDoc