Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34 - 1
# -*- text -*-
2
######################################################################
3
#
4
#	This is a virtual server that handles DHCP relaying
5
#
6
#	Only one server can listen on a socket, so you cannot
7
#	do DHCP relaying && run a DHCP server at the same time.
8
#
9
######################################################################
10
 
11
server dhcp.eth1 {
12
	# When the machine is not Linux, or has only one network interface, use
13
	# the following listener:
14
	listen {
15
		# Listen for broadcasts + unicast on eth1
16
		ipaddr = *
17
		port = 67
18
		type = dhcp
19
		interface = eth1
20
	}
21
	# When the machine is Linux and has multiple network interfaces, use
22
	# the following listeners instead:
23
	listen {
24
		# Listen for broadcasts on eth1
25
		ipaddr = 255.255.255.255
26
		port = 67
27
		type = dhcp
28
		interface = eth1
29
	}
30
	listen {
31
		# Listen for unicast on our IP address, not bound to any
32
		# interface but telling on which interface to forward the
33
		# packets to.
34
		ipaddr = 192.0.100.2
35
		port = 67
36
		type = dhcp
37
		arp_interface = eth1
38
	}
39
 
40
	#  Packets received on the socket will be processed through one
41
	#  of the following sections, named after the DHCP packet type.
42
	#  See dictionary.dhcp for the packet types.
43
	dhcp DHCP-Discover {
44
		update config {
45
			# IP Address of the DHCP server
46
			DHCP-Relay-To-IP-Address := 192.0.1.2
47
		}
48
		update request {
49
			# IP Address of the DHCP relay (eth1)
50
			DHCP-Gateway-IP-Address := 192.0.100.2
51
		}
52
		ok
53
	}
54
 
55
	dhcp DHCP-Request {
56
		update config {
57
			# IP Address of the DHCP server
58
			DHCP-Relay-To-IP-Address := 192.0.1.2
59
		}
60
		update request {
61
			DHCP-Gateway-IP-Address := 192.0.100.2
62
		}
63
		ok
64
	}
65
}