tech-net archive

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

Re: Trouble with networking on Google Compute Engine (NetBSD 7)



Hi Benny

On 29/12/16 12:22, Benny Siegert wrote:
> Hi!
> 
> I am still trying to get NetBSD 7 running on Google Compute Engine natively. The only remaining issue (AFAICT) is networking.
> 
> Here is how the GCE networking works: Each VM in a given project gets a private IP address, for example 10.240.0.4, with a netmask of 255.255.255.255. The DHCP response contains a „classless static route“ extension (121) to set a direct route to 10.240.0.1/32 on the same interface. In addition, there is a default route with 10.240.0.1 as gateway.
> 
> With -current and dhcpcd (not dhclient), this works fine.
> 
> With NetBSD 7 and the dhcpcd there (which AIUI is an older version), I get several error messages (that I forgot to write down) and no working network. wiz@ recommended dhcpcd-6.11.3 from pkgsrc, and that only emits a single error message: „add to routing socket: network is unreachable“ when adding the default route.
> 
> I tried adding the routes manually but that gets me the same error message:
> 
> route flush
> route add -host 10.240.0.1 -interface vioif0
> route add default 10.240.0.1
> 
> The last command fails with the „network is unreachable“ message.
> 
> I suspect that at this point, I may be running into a kernel bug / limitation that has been fixed in -current. Any ideas? 
> 
> —Benny.
> 

Try this:
route flush
route add -net 10.240.0.1/32 -interface vioif0
route add default 10.240.0.1

dhcpcd-6.8 does that so it should work in the pkgsrc version as well.

Roy


Home | Main Index | Thread Index | Old Index