NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Static ip on NetBSD / My rc.conf



On 28 November 2011 15:47, George Ember <sk8harddiefast%gmail.com@localhost> 
wrote:

> rc_configured=YES
> wscons=YES
> hostname=NetBSD
> defaultroute=192.168.1.1
> inetd=YES
> routed=YES
> dhclient=NO
>

As others have said, I use an ifconfig.xxN file, here's my example, with a
static route:

(root:/usr/src)# cat /etc/ifconfig.re0
ip4csum tcp4csum udp4csum tso4
inet 1.2.3.4 netmask  255.255.252.0
! /sbin/route add default 1.2.3.5
(root:/usr/src)#

Cheers,

Ian


Home | Main Index | Thread Index | Old Index