設定ファイル | 設定内容 |
/etc/netmasks | ネットワークアドレスとサブネットマスクを記述する。 192.168.1.0 255.255.255.0 |
/etc/defaultrouter | ネットワークのゲートウェイとなるIPアドレスを記述する。 192.168.1.1 |
/etc/nodename | マシンのホスト名を記述する。 netr01 |
/etc/hosts | ネットワーク内のIPアドレスとホスト名を記述する。 # # Internet host table # 127.0.0.1 localhost 192.168.1.8 netr01.hebo.test netr01 loghost |
/etc/hostname.hme0 | 自分のマシンのホスト名を記述する。netr01 |
/etc/inet/ipnodes(NEW) | ::1 localhost 127.0.0.1 localhost 192.168.1.8 netr01 loghost |
/etc/nsswitch.conf | hosts: files dns |
/etc/resolv.conf | ドメイン名とネームサーバのIPアドレスを記述する。 domain hebo.test nameserver 192.168.1.1 |
#dladm show-dev
#useradd -u 10001 -g 100 -m -d /export/home/hama -s /bin/csh hama
passwd hama New Password: Re-enter new Password: passwd: password successfully changed for hama
# groupadd wheel
# vi /etc/group
wheel::100:hama
# chgrp wheel /usr/bin/su /usr/local/bin/su
# chmod 4750 /usr/bin/su /usr/local/bin/su
# vi /etc/profile #ident "@(#)profile 1.19 01/03/13 SMI" /*SVr4.0 1.3*/ # The profile that all logins get before using theirown .profile. 追加>>PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/sfw/bin:/usr/ucb/bin 追加>>export PATH&br()trap "" 2 3&br()export LOGNAME PATH ........ umask 022 trap 2 3 追加>>bash
# crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/ucb/lib:/usr/local/lib:/usr/sfw/lib
#eeprom kbd-type=Japanese\(106\)
set bell-style none
#kdmconfig (Monitorは「MultiFrequency」の1つ上の解像度を選択するのが コツみたい。以下は我が家の設定。) XF86-I810 82845G MultiFrequency38KHz - 1024*768 1024*768 16777216colors BuildIn 3Button PS2 mouse
/boot/grub/menu.listを編集する。
/etc/profileの末尾に以下を追記 stty erase "^H"
# eeprom local-mac-address?=true # init 6
# cat /etc/hosts 192.168.1.39 ncomp.aaa.test ncomp loghost
# vi /etc/hostname.rge0 ncomp netmask + broadcast + group test up addif 192.168.1.37 netmask + broadcast + deprecated -failover up
# vi /etc/hostname.rge0 192.168.1.38 netmask + broadcast + deprecated group test -failover standby up
# init 6
# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 rge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 192.168.1.39 netmask ffffff00 broadcast 192.168.1.255 groupname test ether 0:90:cc:e9:2c:c5 rge0:1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2 inet 192.168.1.37 netmask ffffff00 broadcast 192.168.1.255 rge1: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 1500 index 3 inet 192.168.1.38 netmask ffffff00 broadcast 192.168.1.255 groupname test ether 0:a:79:98:c3:bd
# prtconf -pv > prtconf.txt(テキストに保存) # prtconf -pv | grep Eth
model: 'Ethernet controller' ・・・・・・・・・ vendor-id: 000010ec device-id: 00008136 ・・・・・・・・・
rge "pci10ec,8136"
set ip:dohwcksum = 0
# ifconfig rge0 plumb
# sys-unconfig