Open main menu

Funtoo β

Changes

Networking

16 bytes removed, 1 year ago
Server Network Configuration
Then, you would create an {{c|/etc/conf.d/net.eth0}} configuration file that would specify which template to use from the {{c|/etc/netif.d}} directory:
{{file|name=/etc/conf.d/neteth0net.eth0|lang=bash|body=
template="interface"
ipaddr="10.0.1.200/24"
To complete our static IP network configuration we would need to:
<{{console>|body=# ##i##rc-update add net.eth0 default</console>}}When configuring your own static network interface, one of <tt>{{c|ipaddr</tt> }} or <tt>{{c|ipaddrs</tt> }} is required and should specify the IP address(es) to configure for this interface, in &quot;a.b.c.d/netmask&quot; format. Optional parameters include <tt>{{c|gateway</tt>}}, which defines a default gateway for your entire network, and if set should specify the gateway's IP address. In addition, <tt>{{c|domain</tt> }} and <tt>{{c|nameservers</tt> }} (space-separated if more than one) can be used to specify DNS information for this interface.
=== Configuration Variables ===
wiki-staff
1,105
edits