diff options
Diffstat (limited to 'docs/interfaces/ethernet.rst')
-rw-r--r-- | docs/interfaces/ethernet.rst | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/docs/interfaces/ethernet.rst b/docs/interfaces/ethernet.rst index 95aef851..6d7d049f 100644 --- a/docs/interfaces/ethernet.rst +++ b/docs/interfaces/ethernet.rst @@ -10,31 +10,17 @@ Configuration Address ------- -.. cfgcmd:: set interfaces ethernet <interface> address <address | dhcp | dhcpv6> +.. cmdinclude:: ../_include/interface-address.txt + :var0: ethernet + :var1: eth0 - .. include:: common-ip-ipv6-addr.txt +.. cmdinclude:: ../_include/interface-ipv6-addr-autoconf.txt + :var0: ethernet + :var1: eth0 - Example: - - .. code-block:: none - - set interfaces ethernet eth0 address 192.0.2.1/24 - set interfaces ethernet eth0 address 192.0.2.2/24 - set interfaces ethernet eth0 address 2001:db8::ffff/64 - set interfaces ethernet eth0 address 2001:db8:100::ffff/64 - -.. cfgcmd:: set interfaces ethernet <interface> ipv6 address autoconf - - .. include:: common-ipv6-addr-autoconf.txt - -.. cfgcmd:: set interfaces ethernet <interface> ipv6 address eui64 <prefix> - - :abbr:`EUI-64 (64-Bit Extended Unique Identifier)` as specified in - :rfc:`4291` allows a host to assign iteslf a unique 64-Bit IPv6 address. - - .. code-block:: none - - set interfaces ethernet eth0 ipv6 address eui64 2001:db8:beef::/64 +.. cmdinclude:: ../_include/interface-ipv6-addr-eui64.txt + :var0: ethernet + :var1: eth0 Speed/Duplex ------------ |