Chinaunix首页 | 论坛 | 博客
  • 博客访问: 278827
  • 博文数量: 121
  • 博客积分: 3050
  • 博客等级: 中校
  • 技术积分: 1262
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-25 12:18
文章分类

全部博文(121)

文章存档

2016年(3)

2011年(17)

2010年(34)

2009年(16)

2008年(40)

2007年(2)

2006年(9)

我的朋友

分类:

2011-03-27 20:53:10

先查看一下主机的网卡名称及IP地址。
[root@XX01p /]ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=1000843 mtu 1500 index 2
        inet 192.168.108.129 netmask fffffff0 broadcast 192.168.108.143
        ether 0:3:ba:1d:69:73
[root@XX01p /]cat /etc/host
hostname.hme0  hosts          
[root@XX01p /]cat /etc/hostname.hme0
XX01p
[root@XX01p /]uname -a
SunOS XX01p 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Fire-880
[root@XX01p /]


[root@XX01p /]cat /etc/inet/netmasks
#
# 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.108.128   255.255.255.240
[root@XX01p /]

[root@XX01p /]cat /etc/inet/ipnodes
#
# Internet host table
#
::1     localhost       
127.0.0.1       localhost       
192.168.108.195   hddll01
192.168.108.132   XX01
192.168.108.129   XX01p       loghost
[root@XX01p /]
阅读(1788) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~