본문 바로가기
+ OS/Linux & Unix

[Solaris] 네트워크 설정

by :: Teacher :: 2019. 10. 8.
728x90
반응형

1. Solaris 네트워크 설정  수동 / 일시 사용

Ifconfig <디바이스명> plumb

Ifconfig <디바이스명> <IP> netmaks <Subnetmask> broadcast + up

Ifconfig –a

Route add default <게이트웨이>

 

Ex)

Ifconfig hme0 plumb

Ifconfig hme0 192.168.253.100 netmaks 255.255.255.0 broadcast + up

Ifconfig –a

Route add default 192.168.1.1

728x90

2. Solaris 네트워크 설정  수동 / IP변경 및 NIC 추가

- ifconfig <디바이스명> plumb 이후 아래 설정 파일 변경

1) /etc/hosts 수정

# Internet host table

#

127.0.0.1       localhost

<서버 IP>       <호스트명>

 

Ex)

192.168.253.100     banggucha

 

2) /etc/hostname.<디바이스명>  // 없을 경우 생성

<호스트명>

 

Ex)

banggucha

 

3) /etc/netmasks

# The netmasks file associates Internet Protocol (IP) address

# masks with IP network numbers.

# 

#       network-number  netmask

#

#               128.32.0.0 255.255.255.0

#

<네트워크 대역>        <서브넷 마스크>

 

Ex)

192.168.253.0          255.255.255.0


  4) /etc/defaultrouter

<게이트웨이 IP>

 

Ex)

192.168.1.1

 

5) DNS 설정 /etc/resolv.conf  /etc/nsswitch.conf

/etc/resolv.conf

Nameserver 168.126.63.1

 

/etc/nsswitch.conf

Hosts: file  → hosts: file dns로 변경

 

6) 인터페이스 UP / DOWN

- ifconfig <디바이스 명> up

- ifconfig <디바이스 명> down

 

7) 인터페이스 사용 및 사용안함

- ifconfig <디바이스 명> plumb

- ifconfig <디바이스 명> unplumb

 

 

 재부팅 시에도 유지를 위한 설정 파일

- /etc/hosts

- /etc/hostname.<디바이스명>

- /etc/defaultrouter

 

※ 인터넷 관련 설정 파일

- /etc/resolv.conf

- /etc/nsswitch.conf

728x90
반응형

댓글


loading