===== Network configuration in NetBSD ===== === Dynamic IP address === * ''/etc/rc.conf'' hostname=netbsd-test.luma.lan dhcpcd=YES dhcpcd_flags="-qM vioif0" === Static IP address === * ''/etc/rc.conf'' hostname=vpn-netbsd.luma.lan defaultroute="10.0.0.254" auto_ifconfig=NO net_interfaces="vioif0" * ''/etc/ifconfig.vioif0'' up 10.0.0.5 netmask 255.255.255.0 * ''/etc/resolv.conf'' domain luma.lan nameserver 92.245.0.16 nameserver 92.245.2.162 === Bridge === * ''/etc/rc.conf'' net_interfaces="... bridge0 ..." * ''/etc/ifconfig.bridge0'' !brconfig $int add wm0 add tap0 up !brconfig $int stp wm0 stp tap0 up === TAP === * ''/etc/rc.conf'' net_interfaces="... tap0 ..." * ''/etc/ifconfig.tap0'' up === VLAN === * ''/etc/rc.conf'' net_interfaces="... vlan100 ..." * ''/etc/ifconfig.vlan100'' !ifconfig vlan100 vlan 100 vlanif wm0 up 172.16.100.100 netmask 255.255.255.0