CUCM 설정시 dhcp서버를 linux에서 돌려야 할경우 와 tftp server 가 두개가 될경우

회사 VDI (Verde)서버에서  PXE 부팅을 위한 DHCP서버와 Tftp 서버가 함께 돌고 있다 

VM ware 가 돌고 있는 다른 서버에서 CUCM 서버를 올리고 전화기를 붙였더니..

이상하게 아이피는 받아오는데 등록이 되지 않았다

확인해보니 CUCM 서버의 tftp server를 바라보지 않고

VDI 서버의 tftp 서버와 연결되어 xml 파일을 찾고 있는것이 아닌가…..

참으로 난감한 상황이었다….

답은 의외로 간단하였다!

따로 분리할수는 없으니 같이 돌려야 겠다는 생각을 했고

이리 저리 같이 돌릴 수 있는 방법을 생각을 하다

검색을 해보니 예전에 애먹은 적이 있던 option 150

그것이 해답을 주었다!!!!

dhcp.conf의 내용이다

ddns-update-style interim;

ignore client-updates;

option option-150 code 150 = ip-address;

subnet 123.456.123.456 netmask 255.255.255.224 {

        option routers 123.456.123.225;

        option subnet-mask 255.255.255.224;123.456.123.456

        range dynamic-bootp 123.456.123.241 123.456.123.249;

        option domain-name-servers 164.124.101.2;

        option broadcast-address 123.456.123.255;

        default-lease-time 21600;

        option option-150 123.456.123.236;

        max-lease-time  432000;

        # IP of the tftp server

        next-server 123.456.123.231;

        # This path is relative to the tftpboot directory

        filename “LEAF-1.4.10.2018-r550.16048-i686-ZERO/pxelinux.0”;

        # root-path=nfs|nfs4:<server-ip>:<root-dir>[:<nfs-options>]

        # man 8 mount.nfs for info on NFS mount options

        option root-path “nfs4:123.456.123.231:/var/lib/tftpboot/LEAF-1.4.10.2018-r550.16048-i686-ZERO:ro,vers=4”;

        # Setting host-name to leaf_installer will start the LEAF Installer

        #option host-name “leaf_installer”;

두 줄을 추가하여 CUCM용 tftp를 분리 할수 있었다