Amiga Unix — 68040 · 68060

Networking

The network comes up at every boot from /etc/inet/interfaces. The first boot writes it from your answers; after that you edit it as root. See interfaces(4).

DHCP

* dhcp

Every network card asks a DHCP server for its address. This is the default. Add a line hostname dhcp if the machine should also take its name from the server; otherwise a DHCP server never changes it.

A fixed address

One line per card: its name, static, the address with its prefix length, and the router.

zen0 static 192.0.2.20/24 gw 192.0.2.1 name amix
dns 192.0.2.1
domain example.org

zen0 is the Z3660's Ethernet, aen0 an A2065: the two network cards 1.1 has drivers for. A card's station (MAC) address can stand in for its name, so one disk image can serve several machines. A card is set up by the line with its station address, else the line with its name, else the * line; with none of them it stays down. A mistake in its line also leaves it down.

domain only completes this machine's full name in /etc/inet/hosts; it is never added to the names you look up.

Applying a change

Check the file first: ifup -n prints every mistake with its line number. Then, as root on the console (over telnet, ifdown cuts your own session):

ifdown zen0; ifup zen0

A new name takes effect at once; programs already running keep the old name until they start again.

What it is now

When it does not come up

Services, SSH and the clock · First boot