=====================================================================
---------------------------------------------------
[조동국] 물리적/논리적 네트워크 인터페이스 설정
---------------------------------------------------
작성일 : 2009.01.18(일)
작성자 : 조동국
[문제1] 물리적인 네트워크 인터페이스 카드의 IP에 관련한 설정을 한다.
(조건) Physical Network Interface Card(NIC)의 IP 설정
기존의 IP를 192.168.50.XXX 로 변경한다.(Putty 접속하기위해서 아이피변경)
이때 Netmask 값은 255.255.255.0 으로 한다.
부팅 이후에도 설정이 되어 있어야 한다.
IP 설정의 확인은 반드시 리부팅을 하고 확인한다.
과정을 자세하게 기술하여라.
(해결) 1.ifconfig -a 명령어를 실행하여 현재 네트워크정보를 확인한다.
2.IP설정은 /etc/hosts 파일을 편집한다.(부팅시 적용)
3.Netmask값은 /etc/netmask 파일을 편집한다.(부팅시 적용)
4.리부팅 후 ifconfig -a 명령어를 실행하여 확인 !!
(TEST)
[solaris10@/]# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
pcn0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.50.100 netmask ffffff00 broadcast 192.168.50.255
ether 0:c:29:10:4a:e2
[solaris10@/]# vi /etc/hosts
1 #
2 # Internet host table
3 #
4 ::1 localhost
5 127.0.0.1 localhost
6 192.168.50.203 solaris10 loghost
[solaris10@/]# reboot.........................
[solaris10@/]# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
pcn0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.50.203 netmask ffffff00 broadcast 192.168.50.255
ether 0:c:29:10:4a:e2
[solaris10@/]# 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.
#
# 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.50.0 255.255.255.0
[solaris10@/]# cat /etc/hostname.pcn0
solaris10
-------------------------------------------------------------------------
[문제2] 논리적인 네트워크 인터페이스 카드의 IP에 관련한 설정을 한다.
(조건) Logical Network Interface Card(NIC)의 IP 설정
기존에 존재하는 인터페이스에(예: e1000g0) 새로운 논리적인 네트워크 인터페이스 카드를 추가한다.
새로운 가상 인터페이스(Logical NIC)에 할당할려고 하는 IP는 192.168.20.XXX 이다.
이때 Netmask 값은 255.255.255.0 이다.
부팅 이후에도 설정이 되어 있어야 한다.
IP 설정의 확인은 반드시 리부팅을 하고 확인 한다.
과정을 자세하게 기술하여라
(해결) 1.ifconfig -a 명령어를 이용 현재 인터페이스 확인
2.ifconfig pcn0:1 plumb up 명령으로 가상인터페이스 추가(1번부터사용)
3./etc/hosts 파일에 IP 192.168.20.203 virtual 추가(IP,hostname 설정)
4./etc/hostname.pcn0:1 파일에 virtual 추가(hostname 설정)
5./etc/netmasks 파일에 192.168.20.0 255.255.255.0 추가(netmask 설정)
(TEST) reboot 후~
[solaris10@/]# cat /etc/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.50.203 solaris10 loghost
192.168.20.203 virtual
[solaris10@/]# cat /etc/hostname.pcn0:1
virtual
[solaris10@/]# 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.
#
# 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.50.0 255.255.255.0
192.168.20.0 255.255.255.0
[solaris10@/]# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
pcn0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.50.203 netmask ffffff00 broadcast 192.168.50.255
ether 0:c:29:10:4a:e2
pcn0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.20.203 netmask ffffff00 broadcast 192.168.20.255
[solaris10@/]#
========================================================================================
(결과) pcn0:1번 가상 랜카드가 추가되고, 네트워크 설정이 완료된걸 확인할수있다.
첫댓글 완전 깔끔한데요... ㅋㅋㅋㅋ..... 필요한 중요 포인트는 색깔 표시 부탁드려요. ^^