Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UDP Forwarding

Status
Not open for further replies.

Sabap

IS-IT--Management
Sep 22, 2002
8
US
I am setting up a SIP phone on my network. I need to open a range of UDP ports to make/accept calls.

Givin the string:
ip nat inside source static udp 172.16.5.100 [port] interface Ethernet0 [port]

Is there a way to specify a range of ports in a single command? Instead of writing 20 static NAT translations?

Thanks,
Matt
 
Perhaps someone can help me out here, but I seem to remember you can use the "range" parameter? Something like range first address last address?

Andy Leates MCSE CCNA MCP+I
 
Andy,

The range parameter can be used when defining access lists, but not in a NAT statement. (Although it might be way useful)

So I guess you will need to make it as accurate as possible(tuning a couple of SIP ports) or allow this source access to all ports. At least in the NAT statement.

ip nat inside source static 172.16.5.100 interface Ethernet0

and if security is an issue, perhaps by your using ACLs you may achieve your initial objective:
For instance:
access-list 101 permit udp ip 172.16.5.100 range PORT1 PORTn any
...

hope it helps
 
BWY

Come to think I guess the "ip nat inside source static 172.16.5.100 interface Ethernet0" won't map your SIP udp ports as needed.

Is there a way of getting a global ip address, aside of the Ethernet, you can NAT to?

cheers,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top