Solaris ネットワーク設定

Solaris 8 ネットワーク設定

1)ネットワーク確認
2)ゲートウエイ確認
3)ルーテイング情報設定確認
4)DNS確認
5)netmask確認

ットワーク確認

ネットワークカードが設定できているか確認。
#ifconfig -a

lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet XXX.XXX.XXX.XXX netmask ffffff00 broadcast XXX.XXX.XXX.255
        ether 8:0:20:8e:da:9f

ゲートウエイ確認

デフォルトゲートウエイの設定確認。
#netstat -rn

Routing Table: IPv4

  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
XXX.XXX.XXX.0        XXX.XXX.XXX.XXX       U        1      2  hme0
224.0.0.0            XXX.XXX.XXX.XXX       U        1      0  hme0
default              XXX.XXX.XXX.XXX       UG       1     10
127.0.0.1            127.0.0.1             UH       2     48  lo0

ルーテイング情報設定確認

ルーテイング情報設定確認
#cat etc/defaultrouter

#default router
XXX.XXX.XXX.XXX

DNS設定

”/etc/resolv.conf”を作成。
同じマシンがDNSサーバーとして稼働している場合は、nameserverの アドレスとして0.0.0.0を指定する。
ファイルを変更した場合でも、リブートなどは必要ない。

#cat etc/resolv.conf

domain hogehoge

nameserver      XXX.XXX.XXX.XXX
nameserver      XXX.XXX.XXX.XXX

”/etc/nsswitch.conf”を編集。
”hosts   files” と書かれた行を ”hosts  files dns”と書き換える。
このように指定すると、file(/etc/hosts)を検索してホスト名が見つからなかった場合には、
DNSに問い合わせを行うようになる。
ファイルを変更した場合でも、リブートなどは必要ない。

#cat etc/nsswitch.conf

#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:     files
group:      files
hosts:      files dns
ipnodes:    files
networks:   files
protocols:  files
rpc:        files
ethers:     files
netmasks:   files
bootparams: files
publickey:  files
# At present there isn't a 'files' backend for netgroup;  the system will
#   figure it out pretty quickly, and won't use netgroups at all.
netgroup:   files
automount:  files
aliases:    files
services:   files
sendmailvars:   files
printers:       user files

auth_attr:  files
prof_attr:  files
project:    files

netmask確認

#cat etc/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.  Currently this number is restricted to being a class
# A, B, or C network number.  In the future we should be able to support
# arbitrary network numbers per the Classless Internet Domain Routing
# guidelines.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
#               128.32.0.0 255.255.255.0
#
XXX.XXX.XXX.0   255.255.255.0

 

Solaris9 SPARC版
カテゴリー
OS関連しごと部屋
Mac OSX server & Xserver
カテゴリー
OS関連しごと部屋