# vi /etc/hosts
127.0.0.1 localhost
192.168.1.186 Solaris2 loghost
192.168.1.185 Ceshi
# vi /etc/nodename
Solaris2
# vi /etc/netmasks
10.11.11.0 255.255.255.0
192.168.1.0 255.255.255.192
192.168.1.64 255.255.255.192
192.168.1.128 255.255.255.128
# cd /etc
# ls hostname*
hostname.e1000g0 hostname6.e1000g0
# more hostname.e1000g0
Solaris2
# vi hostname.e1000g0:1
"hostname.e1000g0:1"[新文件]
Ceshi
# cd /etc/inet
# ls
datemsk.ndpd ipaddrsel.conf ipsecalgs netmasks secret
dhcpsvc.conf ipnodes ipsecinit.sample networks services
hosts ipqosconf.1.sample mipagent.conf-sample ntp.client slp.conf.example
ike ipqosconf.2.sample mipagent.conf.fa-sample ntp.server sock2path
inetd.conf ipqosconf.3.sample mipagent.conf.ha-sample protocols wanboot.conf.sample
# more ipnodes
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost Solaris2.trrt.edu.cn
192.168.1.186 Solaris2 loghost
192.168.1.185 Ceshi
# more /etc/inet/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost Solaris2.trrt.edu.cn
192.168.1.186 Solaris2 loghost
192.168.1.185 Ceshi
# vi /etc/defaultrouter
"/etc/defaultrouter" 1行,12个字符
192.168.1.129
# sync;
# sync;
# sync;
# sync;
# init 6
# 挂起
$ su root
口令:
# bash
# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843 mtu 1500 index 2
inet 192.168.1.186 netmask ffffff80 broadcast 192.168.1.255
ether 0:d:60:ab:cf:13
e1000g0:1: flags=1000843 mtu 1500 index 2
inet 192.168.1.185 netmask ffffff80 broadcast 192.168.1.255
lo0: flags=2002000849 mtu 8252 index 1
inet6 ::1/128
e1000g0: flags=2004841 mtu 1500 index 2
inet6 fe80::20d:60ff:feab:cf13/10
ether 0:d:60:ab:cf:13
阅读(1246) | 评论(1) | 转发(0) |