CAFE

Win2000

vmware 네트웍설정

작성자r00t|작성시간08.06.17|조회수525 목록 댓글 0

1. XP (hosting pc)

VMnet 0 이랑 VMnet 8 이 설치되어 있습니다.
(VMnet 0 대신 VMnet 1이 있다면, VMnet 1을 VMnet 0 으로 생각하라.)
(VMnet 0 or VMnet 1)은 [사용안함] 으로 설정합니다

VMnet 8 부분에
VMware Bridge Protocol 부분에 체크박스를 체크한다.


VMnet 8의 TCP/IP 부분에 아래의 사항으로 설정한다
IP : 192168.60.1     <--- 번경 가능하다
서브넷 : 255.255.255.0
게이트웨이 : 없음
DNS : 168.126.63.1

 

2.guest OS

1) 현재 자신이 사용하는 게스트 OS의 네트웍 설정은 NAT로 설정 합니다
2) Edit --> Virtual Network Edit 로 설정에 들어 갑니다
3) NAT 텝 부분에 gateway IP 부분을 WinXP의 VMnet8부분과 다르게 설정합니다. EX) 192.168.60.100

 

3. <Solaris 8, Solaris 9는 설정이 제대로 먹히지 않을수 있으므로 직접 번경하여야 한다>

1) 솔라리스 자체 IP를 DHCP 텝 부분에 VMnet8의  Properties의 부분에 시작 IP 와 끝 IP 사이에 아무런 값을
    가지고 합니다

2) 라우터 IP를 Edit -> Virtual Network Edit -> NAT의 gateway IP 와 같게 입력합니다

3) DNS도메인을 ns.kornet.net, DNS IP를 168.126.63.1 으로 입력합니다

4)Solaris 8, Solaris 9 에서의 설정방법 (sys-unconfig로 사용한다면, 잘못된 설정으로 다시 게스트 OS를 설치할수 있다)

EX)# grep network /etc/path_to_instt

# cat /etc/hostname.pcn0    //자신으ㅢ 호스트 명을 확인합니다.
# vi /etc/hosts
 
127.0.0.1  localhost
192.168.60.128    solarsis8 loghost

# vi /etc/defaultrouter

192.168.60.100

# vi /etc/resolv.conf

nameserver 168.126.63.1

# vi /etc/nsswitch.conf

......... 생략 .............
hosts : file dns

#ifconfig -a
#ifconfig pcn0 down
#ifconfig pcn0 unplumb
#ifconfig pcn0 plumb
#ifconfig pcn0 plumb 192.168.60.128 up
#ifconfig pcn0 netmask 255.255.255.255.0 broadcast + up or
#ifconfig pcn0 plumb 192.168.60.128 netmask 255.255.255.0 broadcst  +up or
#ifconfig -a
#netstat -rn
#nslookup www.naver.com

다 하신 후, 리부팅 한번 해주세요..

 

4. << 포트 포워딩 >>

1) Edit  -> Virtual Network Edit 로 설정에 들어갑니다.
2) NAT 텝 부분에 [Edit]로 들어가서 [Port Forwarding ] 을 선택합니다.
3) 그리고 원하시는 host 포트( 외부 접속시 필요한 포트)를 적어 넣으세요
4) IP에는 솔라리스 자체IP를 선택하고 port는 제공할 솔라리스 port를 설정하시면 됩니다.
5) 아래와 같이 하여 rloging,  SSH 등의 기타 서비스들을 설정 할수 있습니다

EX) 저 같은 경우 텔넷 서비스를 제공하기 위해
       호스트 포트 : 23
      버추얼 아이피 : 솔라리스아이피 포트 : 23
      이렇게 설정해서 접속할때 ADSL 에서 받은 IP로 하고  포트를 23으로 설정하고 텔넷 접속하니 솔라리스
      접속이 가능하였습니다.

 

------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------

 

VMware에서 네트웍을 사용할때 host-only, bridged, NAT 방식이 있다.

host-only는 VMware가 깔리는 머신과 가상머신사이에만 통하는 네트웍이고
bridge는 VMware가상머신이 VMware host머신과 같은 네트웍상에서 똑같이 real ip상에서 동작하도록 하는것이며
NAT방식은 VMware가 자체적으로 내부네트웍대역을 할당하고 자체 DHCP서버도 띄워서 NAT기능을 지원하는것이다.


VMware는 안쓰는 NAT대역을 자동으로 할당하는데 만약 192.168.19.* 식으로 NAT 대역이 할당되면
192.168.19.1 은 host머신의 ip가 되고
192.168.19.2는 가상머신에서 gateway,DNS로 설정되며
192.168.19.3~127 까지는 수동으로 설정하는 ip대역이되며
192.168.19.128~254 는 VMware의 자체 DHCP가 자동으로 할당하는 대역이다.

DHCP를 쓰려면 가상머신에서 DHCP로 설정하면 자동으로 ip와 gateway,DNS정보를 받아서 설정되고,

수동으로 아이피를 설정한다면 gateway,DNS를 192.168.19.2로 수동으로 설정해줘야한다.

그렇지 않으면 외부인터넷을 쓸수 없게 된다.


LINUX가 가상머신이라면 (Redhat 기준)

/etc/sysconfig/network에

NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.19.2
GATEWAYDEV=eth0

위처럼 GATEWAY를 192.168.19.2 로 설정해야 된다.


그리고 /etc/resolv.conf 에는
nameserver 192.168.19.2
처럼 DNS도 192.168.19.2 로 설정해야된다.


그리고 NAT환경에서는 가상머신에서 돌리는 http,ftp등의 서비스는 외부 인터넷에서 접속하지 못하는데

vmware의 NAT은 port 포워딩을 통해 가상머신의 서비스에 접속할 수 있도록 해준다.

호스트 머신이 windows라면 c:\winnt\system32\vmnetnat.conf 파일에서

[incomingtcp]
8888 = 192.168.19.129:80
[incomingudp]
6000 = 192.168.19.129:6001


이런식으로 host머신의 8888로 들어오는 요청은 가상머신의 80번 으로 포워딩하고
6000으로 들어오는 요청은 6001으로 포워딩하게 한다.
만약에 가상머신 80에 web서비스가 돌아간다면 host머신의 ip의 8888포트로 접근하면 가상머신의 web서비스를 이용할 수 있는것이다.


출처:http://bbs.kldp.org/viewtopic.php?t=1052
출처:http://cafe.naver.com/secureos.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=52

==================================================================================

VM 의 도움말

In this panel, you can change your virtual network adapter (NIC) and add additional virtual network adapters.

Under Device status:

Connected — Check or uncheck this option while the virtual machine is running to connect or disconnect the virtual network adapter.
Connect at power on — Check this option if you want the virtual network adapter to automatically connect to the virtual machine when it powers on. If you do not check this option,the network adapter is not available to the virtual machine when it first powers on.
Under Network connection, you can choose:

Bridged — If the host computer is on an Ethernet network, bridged networking is often the easiest way to give your virtual machine access to that network. With bridged networking, the virtual machine appears as an additional computer on the same physical Ethernet network as the host. A virtual machine with bridged networking may transparently use any of the services available on the network to which it is bridged, including file servers, printers, gateways and so on. Likewise, any physical host or other virtual machine configured with bridged networking can use resources of that virtual machine.
NAT (Network Address Translation) — If you want to connect to the Internet or other TCP/IP network using the host computer's dial-up networking connection and you are not able to give your virtual machine an IP address on the external network, this is often the easiest way to give the virtual machine access to that network. The virtual machine does not have its own IP address on the external network. Instead, a separate private network is set up on the host computer. The virtual machine obtains an address on that network from the VMware virtual DHCP server.
Host-only — When you use this type of network connection, the virtual machine is connected to the host operating system on a virtual private network, which normally is not visible outside the host. Multiple virtual machines configured with host-only networking on the same host are on the same network.
Custom — If you want to set up a more complex networking configuration, select Custom for one or more of the virtual network adapters. After selecting Custom, choose a virtual switch (VMnet2-VMnet7or VMnet9) from the drop-down list. This connects your virtual machine's adapter to that switch. All virtual machines running on the same host computer and connected to the same virtual switch are on the same virtual network.
If the virtual machine is part of a team, you have the option of connecting the virtual NIC to a team LAN segment, a virtual private network for the team. To connect to a team LAN segment, select Team: LAN segment. Use the drop-down menu to specify the team LAN segment to which you want to connect. For more information on configuring team LAN segments, see LAN Settings.
Note: NICs configured with connections through a DHCP server cannot connect to a team LAN segment.

Note: A virtual NIC can connect to only one LAN segment at a time. To connect a virtual machine to multiple LAN segments, the virtual machine must be configured with multiple NICs.

If you are adding a new virtual NIC, click Add to install the device.

To remove an existing virtual NIC, select that NIC, then click Remove.

Click OK to save the configuration and close the virtual machine settings editor.

다음검색
현재 게시글 추가 기능 열기

댓글

댓글 리스트
맨위로

카페 검색

카페 검색어 입력폼