You are not logged in.

#1 2019-09-08 05:26:29

Werge
Member
Registered: 2019-09-08
Posts: 1

[DHCPD] pushing static routes to Android

Hello. I'm trying configure my DHCP server (on dhcpd daemon) and everything working except pushing static routes to Android devices. Is it possible? Thanks in advance.
/etc/dhcpd.conf:

option domain-name "corp.example.com";
option domain-name-servers 192.168.0.6;
option routers 192.168.0.1; # also_tried_without_this_string
option broadcast-address 192.168.0.255;
option ms-classless-static-routes code 249 = array of unsigned integer 8;
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
# tried specifiy "option ms-classless-static-routes ****" and "option rfc3442-classless-static-routes ****" here too
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
option ms-classless-static-routes
  24, 192,168,1, 192,168,0,8,
  24, 192,168,3, 192,168,0,8
  ;
option rfc3442-classless-static-routes
  24, 192,168,1, 192,168,0,8,
  24, 192,168,3, 192,168,0,8,
  0, 192,168,0,1 # also_tried_without_this_string
  ;
range 192.168.0.100 192.168.0.200;
host vpn {hardware ethernet 54:52:00:c2:a5:33; fixed-address 192.168.0.8;}
}

ip route on Linux machines:

default via 192.168.0.1 dev enp0s3 proto dhcp metric 1024 
192.168.0.0/24 dev enp0s3 proto kernel scope link src 192.168.0.104 
192.168.1.0/24 via 192.168.0.8 dev enp0s3 proto dhcp metric 23 
192.168.3.0/24 via 192.168.0.8 dev enp0s3 proto dhcp metric 516

route print on Windows machines:

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.155     40
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
      192.168.0.0    255.255.255.0         On-link     192.168.0.155    296
    192.168.0.155  255.255.255.255         On-link     192.168.0.155    296
    192.168.0.255  255.255.255.255         On-link     192.168.0.155    296
      192.168.1.0    255.255.255.0      192.168.0.8    192.168.0.155     41
      192.168.3.0    255.255.255.0      192.168.0.8    192.168.0.155     41
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link     192.168.0.155    296
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link     192.168.0.155    296

ip route on Android devices:

100.66.33.172/30 dev rmnet_data1 proto kernel scope link src 100.66.33.174
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.103

Offline

Board footer

Powered by FluxBB