| 64 | ====== Seeting up DNSMASQ ====== |
| 65 | |
| 66 | Edit /etc/dnsmasq.conf and at the end of the file add |
| 67 | |
| 68 | {{{ |
| 69 | interface=eth0,eth1,eth3 |
| 70 | dhcp-range=10.1.0.0,static,12h |
| 71 | dhcp-range=10.10.0.0,static,12h |
| 72 | dhcp-range=10.20.0.0,static,12h |
| 73 | dhcp-option=3 |
| 74 | dhcp-option=option:ntp-server,10.10.0.1 |
| 75 | dhcp-boot=net:control,pxelinux.0 |
| 76 | enable-tftp |
| 77 | tftp-root=/tftpboot |
| 78 | |
| 79 | }}} |
| 80 | |
| 81 | Edit /etc/dnsmasq.d/omf_testbed.conf and add separate entries for the CM,control and data interfaces |
| 82 | |
| 83 | {{{ |
| 84 | # CM |
| 85 | dhcp-host=00:20:4a:d5:94:28,10.1.0.1,cons1-1 |
| 86 | dhcp-host=00:20:4a:d5:94:2a,10.1.0.2,cons1-2 |
| 87 | dhcp-host=00:20:4a:d5:94:27,10.1.0.3,cons1-3 |
| 88 | |
| 89 | |
| 90 | # CTRL |
| 91 | dhcp-host=net:control,00:03:1d:0c:d3:7e,node1,10.10.0.1 |
| 92 | dhcp-host=net:control,00:03:1d:0c:d3:61,node2,10.10.0.2 |
| 93 | dhcp-host=net:control,00:03:1d:0c:d3:63,node3,10.10.0.3 |
| 94 | |
| 95 | |
| 96 | # DATA |
| 97 | dhcp-host=00:03:1D:0c:d3:7e,10.20.0.1,node1-1 |
| 98 | dhcp-host=00:03:1D:0c:d3:60,10.20.0.2,node1-2 |
| 99 | dhcp-host=00:03:1D:0c:d3:62,10.20.0.3,node1-3 |
| 100 | |
| 101 | }}} |