you learn something new every day.  i didn't know about the -p option to 
ip/ipconfig.

the function that does the work for dhcp and ip/ipconfig is parseipmask(2).
parseipmask does not differentiate between "255.255.255.0" and "/120",
so it is not likely to be the problem.

the other difference in your ndb entries is the missing dns entry in
the second.  how did you check that the network doesn't work?  have you tried to
ping the gateway?
        ip/ping 10.0.2.2
if that works, it's a dns problem.

- erik

Armando Camarero <[EMAIL PROTECTED]> writes

| I'm trying to manually configure the NIC in a normal Plan 9 install on
| QEMU. If I run ip/ipconfig (so it gets configured using DHCP) /net/ndb
| looks:
| 
| ip=10.0.2.15 ipmask=255.255.255.0 ipgw=10.0.2.2
|     dns=10.0.2.3
| 
| and network works fine.
| 
| But if I run ip/ipconfig -g 10.0.2.2 ether /net/ether0 10.0.2.15
| 255.255.255.0 it looks:
| 
| ip=10.0.2.15 ipmask=/120 ipgw=10.0.2.2
| 
| and I can't use network. Is "ipmask=/120" correct?
| 
| Is this what makes Plan 9 not boot using network in QEMU?
| 
| Armando.

Reply via email to