...
Customer will hit all or some of the below issues. 1. Router loses "rtp-port range" command after reload. 2. Router loses "ip nat" config after reload if it uses the port which falls in voip rtp process range 8000 - 48198 Steps to Reproduce : Configure rtp port range "rtp-port range ". e.g. rtp-port range 16384 32676 Configure ip nat with port outside of configured rtp range and within max voip rtp range. e.g. ip nat inside source static udp 20000 40000 egress-interface GigabitEthernet0/0/1 extendable Reload the router. 3. Unable to unconfigure "rtp-port range" command if ip nat is configured with any port in the range of 8000 - 48198 Steps to Reproduce : Configure rtp port range "rtp-port range " Configure ip nat with port outside of rtp range and below the max value. Unconfigure voip rtp range. ISR4451#show run | sec ip nat ip nat inside source static udp 20000 40000 egress-interface GigabitEthernet0/0/1 extendable ISR4451#conf t Enter configuration commands, one per line. End with CNTL/Z. ISR4451(config)#voice service voip ISR4451(conf-voi-serv)#no rtp-port range 16384 32676 % port range can not be changed while ports in this range are being used by the system ISR4451(conf-voi-serv)# 4. Intermittently sometimes unable to un configure "rtp-port range" command even without any ip nat configuration. Steps to Reproduce : Configure rtp port range "rtp-port range " Unconfigure voip rtp range. ISR4451# ISR4451#show run | beg voice service voip voice service voip rtp-port range 16384 32676 ISR4451#conf t ISR4451(config)#voice ser voip ISR4451(conf-voi-serv)#no rtp-port range 16384 32676 % port range can not be changed while ports in this range are being used by the system ISR4451(conf-voi-serv)#do show run | sec ip nat ISR4451(conf-voi-serv)# 5. Intermittently sometimes unable to configure "rtp-port range" command even without any ip nat configuration. Steps to Reproduce : Reload router without rtp-port command. Once router comes up, configure rtp-port range. ISR4451#conf t Enter configuration commands, one per line. End with CNTL/Z. ISR4451(config)#voice service voip ISR4451(conf-voi-serv)#rtp-port range 16384 32676 % port range can not be changed while ports in this range are being used by the system ISR4451(conf-voi-serv)#do show run | sec ip nat ISR4451(conf-voi-serv)# ISR4451(conf-voi-serv)#end ISR4451#
Issue seen in: IOS XE 17.9.5a
Apply "rtp port range" manually again after reload. If the command fails again, then check for "show ip ports reservation" or "show ip ports all" to see if any other process reserved the same ports which rtp is now trying to reserve. If so, try to unconfigure/shut down that process and see if the port is released by checking "show ip ports reservation" or "show ip ports all" output. If the port is released then reconfigure "rtp port range"
After the reload the below error is coming in bootup logs which is avoiding the startup config to get applied properly: 000087: *Mar 1 11:05:36.407: voiprtp_tpm_re_reserve_port_range: Free ports failed, min: 8000, max: 48198 ports: 40199, error: 2 When trying to configure "rtp-port range" command the below error is seen on console % port range can not be changed while ports in this range are being used by the system