修改Solaris 10主机名步骤
2012-04-01 09:26
417 查看
http://dancfan.blogbus.com/logs/54602671.html
1、
bash-3.00# hostname
tianyu
bash-3.00# pwd
/etc
bash-3.00# vi hosts
"hosts" [Read only] 5 lines, 76 characters
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.119 tianyujiajia loghost
2、
bash-3.00# vi hostname.e1000g0
"hostname.e1000g0" 1 line, 7 characters
tianyujiajia
3、
bash-3.00# vi nodename
"nodename" 1 line, 7 characters
tianyujiajia
~
4、重启 init 6
5、检查已经修改成功
-bash-3.00$ hostname
tianyujiajia
-bash-3.00$
Solaris 10修改网卡IP地址
修改前IP
bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.119 netmask ffffff00 broadcast 192.168.1.255
ether 0:c:29:11:af:6c
1、
bash-3.00# vi hosts
"hosts" [Read only] 5 lines, 82 characters
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.118 tianyujiajia loghost
2、
bash-3.00# pwd
/etc/inet
bash-3.00# vi ipnodes
"ipnodes" [Read only] 6 lines, 91 characters
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.1.118 tianyu loghost
3、
bash-3.00# pwd
/etc
bash-3.00# vi netmasks ---由于此次修改的IP和以前是同网段的,所以这里的文件可以不需要修改
"netmasks" [Read only] 15 lines, 382 characters
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
192.168.1.0 255.255.255.0
4、
bash-3.00# pwd
/etc
bash-3.00# vi defaultrouter ---由于此次修改的IP和以前是同网段的,所以这里的文件可以不需要修改
"defaultrouter" 1 line, 14 characters
192.168.1.254
5、重启init 6
修改后IP
bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.118 netmask ffffff00 broadcast 192.168.1.255
ether 0:c:29:11:af:6c
1、
bash-3.00# hostname
tianyu
bash-3.00# pwd
/etc
bash-3.00# vi hosts
"hosts" [Read only] 5 lines, 76 characters
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.119 tianyujiajia loghost
2、
bash-3.00# vi hostname.e1000g0
"hostname.e1000g0" 1 line, 7 characters
tianyujiajia
3、
bash-3.00# vi nodename
"nodename" 1 line, 7 characters
tianyujiajia
~
4、重启 init 6
5、检查已经修改成功
-bash-3.00$ hostname
tianyujiajia
-bash-3.00$
Solaris 10修改网卡IP地址
修改前IP
bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.119 netmask ffffff00 broadcast 192.168.1.255
ether 0:c:29:11:af:6c
1、
bash-3.00# vi hosts
"hosts" [Read only] 5 lines, 82 characters
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.118 tianyujiajia loghost
2、
bash-3.00# pwd
/etc/inet
bash-3.00# vi ipnodes
"ipnodes" [Read only] 6 lines, 91 characters
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.1.118 tianyu loghost
3、
bash-3.00# pwd
/etc
bash-3.00# vi netmasks ---由于此次修改的IP和以前是同网段的,所以这里的文件可以不需要修改
"netmasks" [Read only] 15 lines, 382 characters
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
192.168.1.0 255.255.255.0
4、
bash-3.00# pwd
/etc
bash-3.00# vi defaultrouter ---由于此次修改的IP和以前是同网段的,所以这里的文件可以不需要修改
"defaultrouter" 1 line, 14 characters
192.168.1.254
5、重启init 6
修改后IP
bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.118 netmask ffffff00 broadcast 192.168.1.255
ether 0:c:29:11:af:6c
相关文章推荐
- Solaris 10主机名和IP地址步骤
- Unix Study--Solaris 10修改主机IP和主机名
- Unix Study--Solaris 10修改主机IP和主机名
- Solaris 10 下 Samba 的详细配置步骤和常见问题解决
- 转://SIHA环境修改主机名实施步骤
- SOLARIS10系统开启telnet/FTP/更改主机名称/网卡IP地址
- Solaris修改主机名和ip
- 修改ip、主机名步骤
- Solaris 10 下 Samba 的详细配置步骤和常见问题解决
- Solaris 10下开启Root远程访问的步骤
- SIHA环境修改主机名实施步骤
- Solaris 10 下 Samba 的详细配置步骤和常见问题解决
- 虚拟机中Solaris 10和主机之间建立共享文件夹(好不容易弄出来的,记录一下以免以后忘了vv)
- solaris10修改IP
- solaris 10笔记之更改主机名
- 史上最详细Solaris 10上Oracle 10g安装步骤图解新手教程
- Solaris - 修改IP和主机名
- Solaris修改IP和主机名
- 修改Solaris系统的主机名和IP地址
- 解决xmanager不能远程登录Solaris10主机的问题