Problem with sip pri default gateway

Hello team
My network status
ens128: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.14 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fdf0:c850:c420:ab00:a616:617e:e7a7:e954 prefixlen 64 scopeid 0x0

ens133: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.204.55.22 netmask 255.255.255.252 broadcast 10.204.55.23

[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.204.55.21 0.0.0.0 UG 101 0 0 ens133
10.204.55.20 0.0.0.0 255.255.255.252 U 101 0 0 ens133
10.232.130.170 10.204.55.21 255.255.255.255 UGH 101 0 0 ens133
142.250.71.46 192.168.1.1 255.255.255.255 UGH 100 0 0 ens128
142.250.71.48 192.168.1.1 255.255.255.255 UGH 100 0 0 ens128
164.100.88.149 192.168.1.1 255.255.255.255 UGH 100 0 0 ens128
164.100.213.171 192.168.1.1 255.255.255.255 UGH 100 0 0 ens128
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 ens128
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
202.153.32.16 192.168.1.1 255.255.255.255 UGH 100 0 0 ens128

Issue is.
I want to use 192.168.1.1 as default gateway but if I make it 192 default , sip pri stop working, I mean it is still registering but communication stop for calls, like no voice.

nmcli connection modify eth0 +ipv4.routes “142.250.71.48 192.168.1.1”

Please suggest how to make default 192… to use freely internet and sip pri shoould limited to particular ip gateway.
pls see.

Is this SIP or is this PRI? It can’t be both.

This appears to be a SIP question, as PRI doesn’t use IP.

It is also a Linux question. You didn’t say which version of Linux, but, in any case, this is not a LInux questions forum.

It is also missing key details, about which interface should be used for the SIP endpoint, and the IP address of the endpoint. However, generally, you would use route add to temporarily add a route through a specific gateway. There will be a more permanent way of doing this, but details will vary between Linux distributions.

nmcli seems to be part of the Gnome GUI, and I would think that most people would not install a GUI on machines running Asterisk.

There is also no team. People answering here do so as individuals.

Having delved into the nmcli man page and other related pages, it would seem that:

  1. The routes setting is deprecated.

  2. It requires four parameters, of which you’ve only provided the first and third.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.