Kitten needs to be explicitly configured to use networking. Currently only a subset of the networking configurations are supported. To enable an Ethernet network you should enable the following options:
The other options are not supported, and enabling them will probably break the kernel compilation.
To allow Kitten to communicate with the QEMU network card you also
need to enable the appropriate device driver:
NE2K Device Driver (rtl8139)
The driver then needs to be listed as a Kernel Command Line argument
in the ISOIMAGE configuration. To do this add
net=rtl819 to the end of the argument string.
Kitten currently does not support the dynamic assignment or IP
addresses at runtime. Because of this it is necessary to hardcode the
IP address into the device driver. For the rtl8139 network driver look
in the file drivers/net/ne2k/rtl8139.c for the function
rtl8139_init.
There should be a block of code that looks like the following:
struct ip_addr ipaddr = { htonl(0 | 10 << 24 | 0 << 16 | 2 << 8 | 16 << 0) };
struct ip_addr netmask = { htonl(0xffffff00) };
struct ip_addr gw = { htonl(0 | 10 << 24 | 0 << 16 | 2 << 8 | 2 << 0) };
This sets the IP address as 10.0.2.16, netmask 255.255.255.0 and gateway address 10.0.2.2. Change these assignments to match your configuration.