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
ifconfig zen0(oraen0,lo0): the card's address and flags. Name each card; do not rely onifconfig -a.netstat -in: the interfaces and their counters. (netstat -rndoes not work on this system.)dhcpc -q zen0: the lease a DHCP card holds, with its router and name servers.- The default route that was set:
/var/adm/rclog/ifup, the log of the last boot's bring-up.
When it does not come up
/var/adm/rclog/ifupand the boot log/var/adm/rc.log: what the bring-up did./var/adm/dhcpc.log: what DHCP did.- A slow DHCP server: the boot waits 20 seconds for a lease.
ifup_dhcpwait=30in/etc/rc.confwaits longer. - Two Z3660s on one network need different station addresses: the Z3660 page.