My neorouter server (nrserver 0.9-9.1528) is running on a debian box.
From neorouter configuration explorer (neorouter network explorer 0.9.9.1528[1] running on WinXP), settings, I configured DHCP subnet to 172.23.45.0, mask 255.255.255.0 and restarted neorouter server.
Somehow, the server switched to the new subnet with wrong mask 255.255.0.0. it seems that this mask is fixed, I changed my netmask to 255.255.255.0, 255.255.240.0, but the server side always used 255.255.0.0.
the output of ifconfig nrtap:
Code:
nrtap Link encap:Ethernet HWaddr ce:d0:91:44:e2:4d
inet addr:172.23.45.7 Bcast:172.23.255.255 Mask:255.255.0.0
inet6 addr: fe80::ccd0:91ff:fe44:e24d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1300 Metric:1
RX packets:175 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:23026 (22.4 KiB) TX bytes:468 (468.0 B)
the output of route -n
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.23.0.0 0.0.0.0 255.255.0.0 U 0 0 0 nrtap
5.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 ham0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
on the other hand, WinXP side's 'ipconfig' looks correctly:
the output of ipconfig of neorouter's NIC:
Code:
Ethernet adapter NeoRouter Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 172.23.45.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
but 'route print' has mixed masks, the output of route print:
Code:
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.10.1.1 10.10.20.10 10
...
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
172.23.45.0 255.255.255.0 172.23.45.1 172.23.45.1 20
172.23.45.1 255.255.255.255 127.0.0.1 127.0.0.1 20
172.23.255.255 255.255.255.255 172.23.45.1 172.23.45.1 20
...