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