NetBSD network configuration
-
RFC 1918 - Address Allocation for Private Internets
Network configuration files
The network configuration is defined in a set of text configuration files.
- /etc/rc.conf - rc.conf(5) specifies system services, including the network services, to be automatically started at system initialisation.
- /etc/hosts - hosts(5) the most basic hostname/IP map.
- /etc/myname - the fully qualified hostname (unless set via hostname in /etc/rc.conf).
- /etc/mygate - default gateway. Usually better put as defaultroute in /etc/rc.conf, or you can run routed(8).
- /etc/ifconfig.{IF}. - the definition of network interface IF, used by /etc/rc.d/network at system initialisation, to configure a network interface. See ifconfig.if(5). An alternative is setting ifconfig_IF="..." in /etc/rc.conf.
- /etc/ifaliases - ifaliases(5) a single interface can be aliased to more than one IP number. The aliases are specified here, and used by /etc/rc.d/network at system initialisation.
-
/etc/resolv.conf - resolv.conf(5) specifies how to resolve IP numbers to their hostnames. Most commonly, this contains a line specifying the domains to search and one or more IPs of the nameservers.
Comments
No comments yet. Be first!