Unix/Solaris °ü·Ã°Ô½ÃÆÇ

2000/07/19(19:56) from 203.254.154.69
ÀÛ¼ºÀÚ : °­ÁÙ±â (jkkang65@hanmail.net) Á¶È¸¼ö : 1899 , ÁÙ¼ö : 92
network setup
1. ÇöÀç ³×Æ®¿÷ ÀÎÅÍ ÆäÀ̽º¸¦ Ãâ·Â

blue# ifconfig -a
lo0: flags=849 mtu 8232
       inet 127.0.0.1 netmask ff000000
le0: flags=863 mtu 1500
       inet 203.239.175.2 netmask ffffff00 broadcast 203.239.175.255
       ether 8:0:20:82:bf:4f

2. ¸¸¾à  IP address¸¦ 203.239.175.3À¸·Î ¹Ù²Ü°æ¿ì

blue# vi /etc/hosts
#
# Internet host table
#
127.0.0.1       localhost
203.239.175.2   blue.jic.co.kr blue    loghost
 

º¯°æÈÄ
127.0.0.1           localhost
203,239,175,3    blue.jic.co.kr blue loghost
# reboot

rebooting ÈÄ

blue# ifconfig -a
lo0: flags=849 mtu 8232
       inet 127.0.0.1 netmask ff000000
le0: flags=863 mtu 1500
       inet 203.239.175.3 netmask ffffff00 broadcast 203.239.175.255
       ether 8:0:20:82:bf:4f

/etc/hostname.le0 (10 Mb) , /etc/hostname.hme0(100 Mb) ¿¡ÀÖ´Â hostname°ú /etc/hosts file¿¡ÀÖ´Â hostnameÀÌ µ¿ÀÏ ÇؾßÇÔ

# cat /etc/hostsname.le0
blue
 

3. defaultrouterÀÇ IP addressº¯°æ

# vi /etc/defaultrouter
  203.239.175.1        -> À̾îµå·¹½º¸¦ º¯°æ

# rebootÀ» Çϰųª
# route add net default 203.239.175.254 1

4. netmask º¯°æ

# vi /etc/netmasks

  128.253.0.0     255.255.255.0
  158.233.0.0     255.255.255.blue

5.nameserver º¯°æ

blue# more /etc/resolv.conf
domain jic.co.kr
nameserver 203.239.175.1    -> ÀÌ IP address¸¦ º¯°æ
 

blue# more /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
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
blue#
 
 
´ë»ó O/S : Solaris 2.X

Modify Delete Post Reply Backward Forward List
Powered by Kang Jul Ki