Сперва надо определиться, как нас звут, и какой у нас IP-адрес.
Например:
hostname: sun20
IP-адрес: 195.0.0.66
Домен: mfu.msk.su
Мост(gateway): router1.mgts.msk.su 195.0.0.68
Заполняем файлы /etc/nodename, /etc/hostname.le0, /etc/hosts,
/etc/nsswitch.conf, /etc/resolv.conf
/etc/defaultdomain, /etc/defaultgateway, и перезагружаемся. Все.
/etc/nodename :-------------------------------------------------
sun20
/etc/hostname.le0 :---------------------------------------------
sun20
/etc/defaultdomain :--------------------------------------------
mfu.msk.su
/etc/defaultgateway :-------------------------------------------
router1
/etc/resolv.conf :----------------------------------------------
domain ips.ras.ru
search ips.ras.ru ras.ru
nameserver 193.124.148.65
nameserver 193.124.148.73
/etc/nsswitch.conf :----------------------------------------------
/etc/hosts:
# . . .
195.0.0.66 sun20.mfu.msk.su sun20
195.0.0.68 router1.mfu.msk.su router1
75) I keep getting "data corruption" when using NFS over a wan,
or slip/ppp link. What do I do? or
Does anybody know how to enable UDP checksum on NFS?
The usually cause for this(at least for SunOS4.x) is not
having udp checksumming turned on.
You can turn it at boot and while the machine is running
by using the following adb script:
#!/bin/sh
adb -w -k /vmunix /dev/mem << EOF
udp_cksum?W1
udp_cksum/W1
EOF
Install or call this script from rc.local.
Or edit /usr/kvm/sys/netinet/in_proto.c and change the
udp_cksum line (near the end from udp_cksum = 0 to udp_cksum =1
and reconfigure your kernel and reboot)
For Solaris2.3:
udp checksumming is turned on by default under SunOS5.x.
Популярность: 16, Last-modified: Tue, 06 Aug 1996 18:48:41 GmT