VirtualBox가 아무래도 무료이다보니 (라이센스 정책이 바뀌였다면 OTL)
자주 사용하게 되어집니다. (뭐 불볍경로로 굳이 Vmware를 사용하지 않아도 되기때문에)
하지만 이노무 네트워크가 브릿지 네트워크를 구성하기가 여간 까다로운게 아닙니다.
그래서 VirtualBox에서 CLI에서 해당 환경을 구성할수 있는 부분을 제공하고 있습니다.
VBoxManage라는 툴을 통해서 가능하며 사용 예제는 아래와 같습니다.
=======================================================================
cd c:\Program Files\Oracle\VirtualBox
@echo "ssh"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/sshd/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/sshd/HostPort" 22
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/sshd/GuestPort" 22
@echo "smtp"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/smtpd/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/smtpd/HostPort" 25
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/smtpd/GuestPort" 25
@echo "pop"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/popd/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/popd/HostPort" 110
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/popd/GuestPort" 110
@echo "imap"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/imapd/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/imapd/HostPort" 143
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/imapd/GuestPort" 143
@echo "http"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpd/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpd/HostPort" 80
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpd/GuestPort" 80
@echo "http_admin"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/webadmin/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/webadmin/HostPort" 8000
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/webadmin/GuestPort" 8000
@echo "http_admin"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/mysql/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/mysql/HostPort" 3306
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/mysql/GuestPort" 3306
@echo "http"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpdd/Protocol"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpdd/HostPort"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpdd/GuestPort"
@echo "squid"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/HostPort" 8888
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/GuestPort" 8888
@echo "notes"
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/HostPort" 25
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/GuestPort" 25
@echo "notes"
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/HostPort" 80
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/GuestPort" 80
@echo "notes"
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/HostPort" 110
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/GuestPort" 110
@echo "notes"
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/HostPort" 1352
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/GuestPort" 1352
@echo "check port"
VBoxManage getextradata "linux" enumerate
pause
=======================================================================
샘플을 긁어 보면 아래와 같습니다.
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VboxManage [setextradata] [VirtualBox에 등록되어진 명칭] [Vbox의 eth 카드 정보] [통신유형] 입니다.
사실 저도 다른쪽에서 여차저차 찾아서 사용하고 있었던 데이터라, 지금은 기억이 가물가물하지만 분명 저 세팅방법을 통해서 하면 되어집니다.
물론! 윈도우즈 방화벽도 해제 해두셔야 합니다
그리고 저 네트워크 카드는 아마도 PCNET-FAST III 일겁니다.
자주 사용하게 되어집니다. (뭐 불볍경로로 굳이 Vmware를 사용하지 않아도 되기때문에)
하지만 이노무 네트워크가 브릿지 네트워크를 구성하기가 여간 까다로운게 아닙니다.
그래서 VirtualBox에서 CLI에서 해당 환경을 구성할수 있는 부분을 제공하고 있습니다.
VBoxManage라는 툴을 통해서 가능하며 사용 예제는 아래와 같습니다.
=======================================================================
cd c:\Program Files\Oracle\VirtualBox
@echo "ssh"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/sshd/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/sshd/HostPort" 22
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/sshd/GuestPort" 22
@echo "smtp"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/smtpd/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/smtpd/HostPort" 25
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/smtpd/GuestPort" 25
@echo "pop"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/popd/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/popd/HostPort" 110
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/popd/GuestPort" 110
@echo "imap"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/imapd/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/imapd/HostPort" 143
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/imapd/GuestPort" 143
@echo "http"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpd/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpd/HostPort" 80
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpd/GuestPort" 80
@echo "http_admin"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/webadmin/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/webadmin/HostPort" 8000
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/webadmin/GuestPort" 8000
@echo "http_admin"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/mysql/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/mysql/HostPort" 3306
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/mysql/GuestPort" 3306
@echo "http"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpdd/Protocol"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpdd/HostPort"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/httpdd/GuestPort"
@echo "squid"
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/HostPort" 8888
VBoxManage setextradata "linux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/GuestPort" 8888
@echo "notes"
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/HostPort" 25
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/GuestPort" 25
@echo "notes"
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/HostPort" 80
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/GuestPort" 80
@echo "notes"
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/HostPort" 110
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/GuestPort" 110
@echo "notes"
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/HostPort" 1352
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/GuestPort" 1352
@echo "check port"
VBoxManage getextradata "linux" enumerate
pause
=======================================================================
샘플을 긁어 보면 아래와 같습니다.
VBoxManage setextradata "notes" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/squid/Protocol" TCP
VboxManage [setextradata] [VirtualBox에 등록되어진 명칭] [Vbox의 eth 카드 정보] [통신유형] 입니다.
사실 저도 다른쪽에서 여차저차 찾아서 사용하고 있었던 데이터라, 지금은 기억이 가물가물하지만 분명 저 세팅방법을 통해서 하면 되어집니다.
물론! 윈도우즈 방화벽도 해제 해두셔야 합니다
그리고 저 네트워크 카드는 아마도 PCNET-FAST III 일겁니다.
'03. Network' 카테고리의 다른 글
iptables 정책 새워보기 (0) | 2011.06.02 |
---|---|
tethereal을 통한 packet 분석 (0) | 2011.05.02 |
Subnet mask (0) | 2009.09.16 |
tcpdump 사용하여 packet dump확인하기 (0) | 2008.06.04 |
linux network ethnet 변경 (이더넷 설정변경 ethtool , mii-tool, modprobe ) (0) | 2008.06.03 |