If you want networking to work in minix3, you have to do some homework before you start installing Minix3. You need to know which network card you are having. Minix3 currently supports few network cards, the list is
0. No Ethernet card (no networking)
1. Intel Pro/100
2. 3Com 501 or 3Com 509 based card
3. Realtek 8139 based card
4. Realtek 8029 based card (also emulated by Qemu)
5. NE2000, 3com 503 ro WD based card (also emulated by Bochs)
6. AMD LANCE (also emulated by VMWare)
7. Different Ethernet Card (no networking)
You can find out your network card type by using following command in linux
`lspci`. If your network card is not in list, then you have following options
1. Add another network card.
2. Wait till support for your network card is added.
3. Don't use networking
4. Write network driver yourself for your network card ;-)
If you have supported network card, then you can choose the proper network card in installation process, and then it should go fine. You are lucky if you have dhcp server running, In that case, minix3 should pickup the networking configuration automatically, reducing your work ;-)
Most of the work is done by `dhcpd` daemon which can work both as client and server. I personally do not not much about how exactly it works, you can find out at it's man page
and http://www.minix3.org/manpages/man5/dhcp.conf.5.html
If you don't have dhcp available, then you need to setup the static network ip by using `ifconfig` command, which is used to provide the ip address to the network interface.
manpage for ifconfig
There are two interfaces which are available
`/dev/ip` and `\dev\ip0`. The ifconfig command is something like following
ifconfig -I /dev/ip -h 192.168.0.2 -n 255.255.255.0
I had confusion that which device should I specify, `/dev/ip` or `/dev/ip0`
But it seems, ifconfig command is smart enough to find out which device to use.
So, you can get away by just giving command
ifconfig -h 192.168.0.2 -n 255.255.255.0
and minix3 will choose best device.
I still don't know what /dev/ip represents and why there are two devices,
This is just a temporary way around the confusion.
Other than this, another useful command is `add_route`.
man page for add_route
and example use of this command is
add_route -g 192.168.0.1
which will set 192.168.0.1 as your default gateway.
Another useful command is `pr_routes` which displays the routing table.
For setting up DNS, you can edit the file `/etc/resolve.conf`,
manpage for resolve.conf
Typical resolv.conf should look something like
nameserver 192.168.1.254
The best way to find out, whether you are in business or not is by pinging your gateway.
so, cross your fingers and give the command
ping 192.168.0.1
and Hope that Minix will say
192.168.0.1 is alive
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment