Sign inSign up

dhgouveia2/glass-isc-dhcp

By dhgouveia2

Updated about 7 years ago

Glass - ISC DHCP Server Interface

Image
0

1.1K

dhgouveia2/glass-isc-dhcp repository overview

Glass - ISC DHCP Server Interface

I found the Glass project on github https://github.com/Akkadius/glass-isc-dhcp

Configure the DHCP Server

Create a dhcpd/dhcpd.conf file. Each subnet's IP address will automatically be matched to the local network interfaces. Any subnet not specified will not listen on the corresponding interface.


subnet 192.168.85.0 netmask 255.255.255.0 {
    range 192.168.85.100 192.168.85.200;
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.85.255;
    option routers 192.168.85.1;
}

# LAB1 Fixed Address
host lab1-vm {
  hardware ethernet 74:27:ea:02:c9:bc;
  fixed-address 192.168.85.101;
}

# LAB2 Fixed Address
host lab2-vm{
  hardware ethernet 02:81:46:cb:1a:0c;
  fixed-address 192.168.85.102;
}

# DHCP
authoritative;
default-lease-time 600;
max-lease-time 7200;

# DNS
option domain-name-servers 192.168.85.102, 8.8.8.8;
ddns-update-style none;

# Logging
log-facility local7;

Run the container

be sure to set the network to host, so that it can respond to link layer frames. Volumes are optional

docker run -itd -net=host \
        --name glass-isc-dhcp \
        --hostname glass-isc-dhcp \
        -e INF="eth0"
        -v $(pwd)/glass:/app/glass \
        -v $(pwd)/dhcp/dhcpd.leases:/var/lib/dhcp/dhcpd.leases \
        -v $(pwd)/dhcp/dhcpd.conf:/etc/dhcp/dhcpd.conf: \
        -p 3000:3000 dhgouveia2/glass-isc-dhcp:latest

Tag summary

Content type

Image

Digest

Size

102 MB

Last updated

about 7 years ago

docker pull dhgouveia2/glass-isc-dhcp