cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2884
Views
0
Helpful
2
Replies

Is it possible to configure loopback interface as source ip for dialpeer voip?

gregkurten
Level 1
Level 1

Hi everyone

I am wondering if anyone can help me. I am trying to establish an FXS PLAR connection between the two sites. Everything works fine if the remote router knows the route to the network of outgoing interface of the local router but unfortunately, outgoing interface of the local router is a WAN interface whose IP cannot be advertised.

Is it possible to configure dialpeer voip in a way that it chooses the IP of the loopback interface while sending the voip packets out to the remote router??

Part of the Config of local router

int loopback 0
ip address 1.1.1.1 255.255.255.255

voice-port 0/0/0
connection plar 222

dial-peer voice 1 pots

destination-pattern 111

port 0/0/0

dial-peer voice 2 voip
destination-pattern 22.

session target ipv4:2.2.2.2

Part of the config of remote router

int loopback 0

ip address 2.2.2.2 255.255.255.255

voice-port 0/0/0

connection plar 111

dial-peer voice 1 pots

destination-pattern 222

port 0/0/0

dial-peer voice 2 voip

destination-pattern 11.

session target ipv4:1.1.1.1

Both routers have the routes to reach to  the loopback IPs of each other but don't have any information regarding the IP of outgoing interfaces from where router normally sends the voip packets. I want router to use loopback ip as a source ip while sending voip packets out so that PLAR can be established.

Thanks

1 Accepted Solution

Accepted Solutions

In the configuration of dial-peers you don't have specified the "session protocol" option, so your gateway uses H.323.

In this case you must use the "h323-gateway voip bind srcaddr command".

interface Loopback0
ip address 1.1.1.1 255.255.255.0
h323-gateway voip bind srcaddr 1.1.1.1

If you use SIP as signaling protocol you must use these commands:

voice service voip

  sip

  bind all source-interface Loopback0

Regards.

View solution in original post

2 Replies 2

In the configuration of dial-peers you don't have specified the "session protocol" option, so your gateway uses H.323.

In this case you must use the "h323-gateway voip bind srcaddr command".

interface Loopback0
ip address 1.1.1.1 255.255.255.0
h323-gateway voip bind srcaddr 1.1.1.1

If you use SIP as signaling protocol you must use these commands:

voice service voip

  sip

  bind all source-interface Loopback0

Regards.

Thank you so much for the reply.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: