OK, found a way to power up the card without the UPS (luckily found Liebert GXT2 series UPS schematics, and found connector pinout where to apply +12V DC to the connector) and sniffed something. Both of the two different cheap working Chinese routers I've tried (Phicomm, Tenda - both generally crappy otherwise) sent the following sets of DHCP options, in the same order, differing only in default IPs and amount of padding at the end:while the MT routers (similar for 6.49.10 and 7.12.1) send fewer options:The router option is there but the subnet mask and broadcast address are missing. I'm surprised it works with most clients anyway, as if they assumed /24 based on the 192.168.x.x prefix (called C-class, obsolete long long ago, I thought only dinosaurs like me still remember that). I suspect the card doesn't make such assumption and requires the options. But I'm not sure how to test it, as trying to add the option manually doesn't seem to have any effect (it doesn't appear in captured DHCP packets):
Code:
Dynamic Host Configuration Protocol (Offer) Message type: Boot Reply (2) Hardware type: Ethernet (0x01) Hardware address length: 6 Hops: 0 Transaction ID: 0x0000794b Seconds elapsed: 0 Bootp flags: 0x8000, Broadcast flag (Broadcast) Client IP address: 0.0.0.0 Your (client) IP address: 192.168.2.166 Next server IP address: 192.168.2.1 Relay agent IP address: 0.0.0.0 Client MAC address: 00:02:99:10:e1:2d Client hardware address padding: 00000000000000000000 Server host name not given Boot file name not given Magic cookie: DHCP Option: (53) DHCP Message Type (Offer) Option: (54) DHCP Server Identifier (192.168.2.1) Option: (51) IP Address Lease Time Option: (58) Renewal Time Value Option: (59) Rebinding Time Value Option: (1) Subnet Mask (255.255.255.0) Option: (28) Broadcast Address (192.168.2.255) Option: (3) Router Option: (6) Domain Name Server Option: (255) End Padding: 0000000000000000
Code:
Dynamic Host Configuration Protocol (Offer) Message type: Boot Reply (2) Hardware type: Ethernet (0x01) Hardware address length: 6 Hops: 0 Transaction ID: 0x0000794b Seconds elapsed: 0 Bootp flags: 0x8000, Broadcast flag (Broadcast) Client IP address: 0.0.0.0 Your (client) IP address: 192.168.88.254 Next server IP address: 192.168.88.1 Relay agent IP address: 0.0.0.0 Client MAC address: 00:02:99:10:e1:2d Client hardware address padding: 00000000000000000000 Server host name not given Boot file name not given Magic cookie: DHCP Option: (53) DHCP Message Type (Offer) Option: (54) DHCP Server Identifier (192.168.88.1) Option: (51) IP Address Lease Time Option: (3) Router Option: (6) Domain Name Server Option: (255) End Padding: 0000000000000000000000000000000000000000000000000000000000000000
Code:
/ip dhcp-server optionadd code=1 name=option1 value="'255.255.255.0'"
Statistics: Posted by marekm — Tue Jan 02, 2024 10:54 pm