先查看一下主机的网卡名称及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) |