bug in /ip pool ?

Dear All,

i just did the following:

 /ip pool add p2pA ranges=10.10.10.1/255.255.255.252
 /ip pool add p2pB ranges=10.10.10.1/30

Then i assigned one of them to a ppp user and established ovpn connection.

/ppp profile print 
 0   name="ovpn-cli" local-address=p2pA remote-address=p2pA use-compression=default
     use-vj-compression=default use-encryption=required only-one=no change-tcp-mss=yes



 /ppp secret print detail
 0   name="user1" service=ovpn caller-id="" password="xxx" profile=ovpn-cli routes=""
     limit-bytes-in=0 limit-bytes-out=0

As a result the ovpn server local address is

#   ADDRESS            NETWORK         BROADCAST       INTERFACE
 5 D 10.10.10.3/32      10.10.10.2      0.0.0.0         <ovpn-user1>

and the remote address is

inet addr: 10.10.10.2  P-t-P:10.10.10.3  Mask:255.255.255.255

I think this is wrong. It should yield:

Network:     10.10.10.0/30         
HostMin:     10.10.10.1 	
HostMax:     10.10.10.2 
Broadcast:   10.10.10.3

What do you think?

huh, I didn’t know that local-address can be a pool %)

yeah, RouterOS Pool works a bit strange: first it distributes addresses from max to min, and then - back from min to max =)

p.s. there’s no network and broadcast addresses on p2p link

p.p.s. so, what’s wrong? =)

Well, i thought local server address settings should be

#   ADDRESS            NETWORK         BROADCAST       INTERFACE
5 D 10.10.10.1/32      10.10.10.2      10.10.10.3         <ovpn-user1>

so, set local-address=10.10.10.1

p.s. there’s no ‘broadcast’ address on p2p links, so it’s 0.0.0.0. ‘network’ address for every dynamic IP is client’s address