NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: NetBSD static ip / XEN
On Mon, Nov 28, 2011 at 10:19:40AM +0200, George Ember wrote:
> Hi. 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
I guess you're using the PV kernel, so remove "media autoselect",
and rename the file to ifconfig.xennet0.
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index