Ethernet

Configuration

Address

set interfaces ethernet <interface> address <address | dhcp | dhcpv6>

Configure interface <interface> with one or more interface addresses.

  • address can be specified multiple times as IPv4 and/or IPv6 address, e.g. 192.0.2.1/24 and/or 2001:db8::1/64
  • dhcp interface address is received by DHCP from a DHCP server on this segment.
  • dhcpv6 interface address is received by DHCPv6 from a DHCPv6 server on this segment.

Example:

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
set interfaces ethernet <interface> ipv6 address autoconf

SLAAC RFC 4862. IPv6 hosts can configure themselves automatically when connected to an IPv6 network using the Neighbor Discovery Protocol via ICMPv6 router discovery messages. When first connected to a network, a host sends a link-local router solicitation multicast request for its configuration parameters; routers respond to such a request with a router advertisement packet that contains Internet Layer configuration parameters.

Note

This method automatically disables IPv6 traffic forwarding on the interface in question.

set interfaces ethernet <interface> ipv6 address eui64 <prefix>

EUI-64 as specified in RFC 4291 allows a host to assign iteslf a unique 64-Bit IPv6 address.

set interfaces ethernet eth0 ipv6 address eui64 2001:db8:beef::/64

Speed/Duplex

set interfaces ethernet <interface> duplex <auto | full | half>

Configure physical interface duplex setting.

  • auto - interface duplex setting is auto-negotiated
  • full - always use full-duplex
  • half - always use half-duplex

VyOS default will be auto.

set interfaces ethernet <interface> speed <auto | 10 | 100 | 1000 | 2500 | 5000 | 10000 | 25000 | 40000 | 50000 | 100000>

Configure physical interface speed setting.

  • auto - interface speed is auto-negotiated
  • 10 - 10 MBit/s
  • 100 - 100 MBit/s
  • 1000 - 1 GBit/s
  • 2500 - 2.5 GBit/s
  • 5000 - 5 GBit/s
  • 10000 - 10 GBit/s
  • 25000 - 25 GBit/s
  • 40000 - 40 GBit/s
  • 50000 - 50 GBit/s
  • 100000 - 100 GBit/s

VyOS default will be auto.