Skip to content

Commit

Permalink
added slices of isc-dhcp-server config and proposed /etc/network/inte…
Browse files Browse the repository at this point in the history
…rfaces
  • Loading branch information
Esgariot committed Dec 7, 2016
1 parent 2f593be commit 18a50d6
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
19 changes: 19 additions & 0 deletions dhcpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# requires isc-dhcp-server package
#

allow booting;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.3 192.168.0.253;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
filename "ZMIENNAZWEPLIKUPXE.0";
}

group {
next-server 192.168.0.2;
host tftpclient {
filename "ZMIENNAZWEPLIKUPXE.0";
}
}
25 changes: 25 additions & 0 deletions interfaces
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
auto lo
iface lo inet loopback

# Make sure that these are assigned to right VBox network cards

# NAT
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

# Internal network
auto eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 10.0.2.15

# Host-only
auto eth2
allow-hotplug eth2
iface eth2 inet static
address 192.168.56.123
netmask 255.255.0.0

0 comments on commit 18a50d6

Please sign in to comment.