vintage_net_ethernet v0.9.0 VintageNetEthernet View Source
Support for common wired Ethernet interface configurations
Configurations for this technology are maps with a :type field set to
VintageNetEthernet. The following additional fields are supported:
:ipv4- IPv4 options. See VintageNet.IP.IPv4Config.:dhcpd- DHCP daemon options if running a static IP configuration. See VintageNet.IP.DhcpdConfig.
An example DHCP configuration is:
%{type: VintageNetEthernet, ipv4: %{method: :dhcp}}An example static IP configuration is:
%{
type: VintageNetEthernet,
ipv4: %{
method: :static,
address: {192, 168, 0, 5},
prefix_length: 24,
gateway: {192, 168, 0, 1}
}
}