Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1120091
  • 博文数量: 168
  • 博客积分: 4445
  • 博客等级: 上校
  • 技术积分: 1307
  • 用 户 组: 普通用户
  • 注册时间: 2005-11-02 14:04
文章分类

全部博文(168)

文章存档

2018年(2)

2017年(5)

2016年(7)

2015年(1)

2014年(8)

2013年(1)

2012年(4)

2011年(54)

2010年(8)

2009年(19)

2008年(18)

2007年(36)

2006年(1)

2005年(4)

分类:

2011-01-04 17:09:54

# 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 
阅读(1160) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-01-05 11:09:03

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com