I've read Cisco IOS command reference, but I'm still not sure about the purpose of "h323-gateway voip interface" command.
Moreover, I was trying to understand the difference between "h323-gateway voip interface" and "h323-gateway voip bind srcaddr".
Here's my config on the gateway router:
ip address 192.168.1.254 255.255.255.0
h323-gateway voip bind srcaddr 192.168.1.254
ip address 10.1.1.254 255.255.255.0
h323-gateway voip interface
h323-gateway voip id GK ipaddr 10.2.2.254
h323-gateway voip h323-id CUCME
h323-gateway voip tech-prefix 408
From my understanding, the "h323-gateway voip interface" command should dictate the source address that being used to communicate with gatekeeper. i.e. it should be 10.1.1.254 (loopback0)
However, when I do a "show gatekeeper endpoint" command on the gatekeeper router, it's showing the RAS address as 192.168.1.1.254 (Fa0/0). How can I make the gateway router to use loopback0 communicate with GK, while using the Fa0/0 interface communicate with other H323 peers (such as CUCM)?
GK#show gatekeeper endpoint
GATEKEEPER ENDPOINT REGISTRATION
CallSignalAddr Port RASSignalAddr Port Zone Name Type Flags
--------------- ----- --------------- ----- --------- ---- -----
192.168.1.254 1720 192.168.1.254 60745 GK VOIP-GW
Voice Capacity Max.= Avail.= Current.= 0
Total number of active registrations = 1
Just to add, I always thought the "h323-gateway voip bind srcaddr X.X.X.X" commend was to tell the destination where the IP packets came from particular if you have loopback address otherwise you can have one way transmission , loss of packets etc