View Single Post
  #1   (View Single Post)  
Old 27th November 2011
openbsd openbsd is offline
New User
 
Join Date: May 2009
Location: athens
Posts: 2
Exclamation NetBSD static ip

Hi. I am new on this forum. I am a FreeBSD user. I am trying to setup a NetBSD with XEN.
My problem is static ip. Using DHCP I can have access to internet. Trying to setup static ip I get this error:
Code:
route: writing to routing socket:Network is unreachable
add net default: gateway 192.168.1.1: Network is unreachable
My rc.conf
Code:
defaultroute=192.168.1.1
hostname=NetBSD
My resolv.conf
Code:
nameserver 192.168.1.1
My hosts
Code:
192.168.1.2 NetBSD NetBSD
My ifconfig.re0
Code:
192.168.1.2 netmask 255.255.255.0 media autoselect
What's wrong? Is something that I miss?
Reply With Quote