Home NAS 구축
[FreeNAS] ESXi 가상스위치 사용시 Jail 네트워킹 문제
늙은M군
2016. 2. 1. 11:46
ESXi 환경에서 FreeNAS 를 가상머신으로 구동시 Freenas Jails 컨테이너가 연결이 되지 않는 문제가 있다.
이는 메뉴얼을 참조하면 ESXi vSwitch 를 Promiscuous Mode ( 모든 패킷 송수신 모드 = 스니핑 모드 ) 로 설정해야 정상 작동한다.
( If you are using VMware, make sure that the vswitch is set to “promiscuous mode”.)
== vSphere 여건이 되지 않을 시 Cli 입력하기
( 해당 Jail 까지 통하는 모든 스위치에 해당됨.. 홈나스는 wan단의 vSwitch0 과 거기서 다시 FreeNAS 로 통하는 LAN 단의 vSwitch1 두 개 다
promiscuous mode 를 해줘야 한다 )
#esxcli network vswitch standard policy security set -v vSwitch0 --allow-promiscuous=yes ( WAN 스위치 )
#esxcli network vswitch standard policy security set -v vSwitch1 --allow-promiscuous=yes ( LAN 스위치 )
둘 다 허용하면 내부 컨테이너에서 외부로 핑이 통하게 된다.
당연한 이야기지만, 모든 작업은 당연히 ESXi 하이퍼바이저의 SSH root 권한에서 실행한다.