apt-get remove --purge network-manager
apt-get remove --purge resolveconf
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # STATIC Configuration for eth0 auto eth0 iface eth0 inet static address 129.97.xxx.xxx netmask 255.255.255.0 broadcast 129.97.xxx.255 network 129.97.xxx.0 gateway 129.97.xxx.1 mtu 1492
127.0.0.1 localhost 127.0.1.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters # Backup server 129.97.167.240 backup-0.cs.uwaterloo.ca backup-0.cs backup-0 backup.cs.uwaterloo.ca backup.cs backup
search . cs.uwaterloo.ca uwaterloo.ca nameserver 127.0.0.1 nameserver 172.19.32.5 nameserver 172.19.32.6 nameserver 172.19.47.6
# We turn all lines in /etc/dnsmasq.conf to comments # Except the line: conf-file=/etc/dnsmasq.hosts # All configuration goes here # ONLY the listen-address line changes when moving this to a new host # ================================================================ include=dnsmasq.common # ================================================================ # ONLY the listen-address line changes when moving this to a new host # listen-address replaced with interface for this system # listen-address=127.0.0.1,192.168.2.1 # Private VLAN on eth1 - you can add as many as you wish # Example 192.168.2.1 interface=eth1 # External interface except-interface=eth0 no-dhcp-interface=eth0 bind-interfaces #This program assumes that the dhcp-range is in the following order # tag,min,max,ttl dhcp-range=comm,192.168.2.2,192.168.2.254,255.255.255.0,12h dhcp-option=option:router,192.168.2.1 # The option numbers below conform to DHCP RFC's # 3 = route # 6 = DNS dhcp-option=comm,3,192.168.2.1 # a comma separated list of DNS servers at the end of this statement dhcp-option=comm,6,192.168.2.1 # ============================================================== # ============================================================== # Syntax: # IP,MAC,NAME[,CNAME] # subnet=192.168.8 (currently only doing /24 networks) # ttl=1440m (whatever dnsmasq accepts for ttl) # ============================================================== # COMM # eth1 ttl=1440m subnet=192.168.2 # Head Node Private Network Address 1,00:25:90:18:e2:8f,head-node # Nodes 101,00:25:90:29:eb:ed,node-1,node-1-local 102,00:25:90:29:eb:f9,node-2,node-2-local 103,00:25:90:2b:df:71,node-3,node-3-local
resolv-file=/etc/resolv.conf dhcp-leasefile=/var/lib/misc/dnsmasq.leases local=/localnet/ enable-tftp tftp-root=/tftpboot/pxes dhcp-boot=pxelinux.0 dhcp-authoritative domain-needed bogus-priv strict-order
time
time
is a ttl
as per the dnsmasq man pages
subnet
specify the subnet subnet
is a subnet specification - LIMITATIONS mkhosts uses hard coded /24 network - first 24 bits
ip
is the last digit
of the subnet only
mac
is the MAC address of the interface you want to assign the address to
cname
a common separated list of cnames
dhcp-host=192.168.2.101,00:25:90:29:eb:ec,m160-1-local-comm,1440m ptr-record=101.2.168.192.in-addr.arpa.,"m160-1-local-comm" address=/m160-1-local-comm/192.168.2.101 cname=m160-1,m160-1-local-comm
I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
ext | Makefile | r1 | manage | 0.3 K | 2012-12-21 - 10:05 | MikeGore | |
ext | default | r2 r1 | manage | 1.3 K | 2012-12-21 - 10:26 | MikeGore | |
common | dnsmasq.common | r1 | manage | 0.2 K | 2012-12-21 - 10:06 | MikeGore | |
conf | dnsmasq.conf | r2 r1 | manage | 0.1 K | 2012-12-21 - 10:12 | MikeGore | |
hosts | dnsmasq.hosts | r3 r2 r1 | manage | 4.6 K | 2012-12-21 - 10:25 | MikeGore | |
m160 | dnsmasq.source.m160 | r1 | manage | 3.2 K | 2011-12-09 - 11:59 | MikeGore | |
cs | dnsmasq.source.m160.cs | r1 | manage | 3.7 K | 2012-12-21 - 10:14 | MikeGore | |
novo1 | dnsmasq.source.novo1 | r1 | manage | 2.5 K | 2012-12-21 - 10:25 | MikeGore | |
ext | hosts | r3 r2 r1 | manage | 1.7 K | 2012-12-21 - 10:24 | MikeGore | |
common | hosts.common | r2 r1 | manage | 0.3 K | 2012-12-21 - 10:06 | MikeGore | |
c | mkhosts.c | r3 r2 r1 | manage | 12.4 K | 2012-12-21 - 10:17 | MikeGore | |
common | resolv.common | r2 r1 | manage | 0.1 K | 2012-12-21 - 10:06 | MikeGore | |
conf | resolv.conf | r3 r2 r1 | manage | 0.3 K | 2012-12-21 - 10:25 | MikeGore | |
ext | restart | r4 r3 r2 r1 | manage | 3.1 K | 2012-12-21 - 10:20 | MikeGore |