Modify

Ticket #2782 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

DHCP Service > Default gateway

Reported by: lioncub@… Owned by: ejhernandez@…
Milestone: 2.2 Component: dhcp
Severity: normal Keywords:
Cc:

Description

In DHCP "Common options" Default gateway as "None". But in /etc/dhcp3/dhcpd.conf option routers exist and clients assigned to a gateway:

clients:

route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.10.41   0.0.0.0         UG    100    0        0 eth0

Zentyal server /etc/dhcp3/dhcpd.conf:

# DHCP server is authoritative for all networks
authoritative;

# extra options
# RFC3442 routes
option rfc3442-classless-static-routes code 121 = array of integer 8;
# MS routes
option ms-classless-static-routes code 249 = array of integer 8;

pid-file-name "/var/run/dhcp3-server/dhcpd.pid";

ddns-update-style none;

option domain-name-servers 192.168.10.41;


default-lease-time 1800;
max-lease-time 7200;


shared-network eth0 {
	subnet 192.168.10.0 netmask 255.255.255.0 {
                option routers 192.168.10.51;
          	option domain-name-servers 192.168.10.41;
                default-lease-time 1800;
                max-lease-time 7200;
            pool {
                range 192.168.10.1 192.168.10.50;
            }
        }
        group {        
                option routers 192.168.10.51;
          	option domain-name-servers 192.168.10.41;
                default-lease-time 1800;
                max-lease-time 7200;
        }
}

Attachments

Change History

comment:1 Changed 2 years ago by jamor@…

  • Status changed from new to closed
  • Resolution set to fixed

(In [20897]) Fixed 'routers' option when gateway is set to 'none' closes #2782

comment:2 Changed 2 years ago by jamor@…

Thanks to lioncub for his report

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.