routejxwpx(config)#dial-peer voice 1 pots
routejxwpx(config-dial-peer)# destination-pattern 2001
routejxwpx(config-dial-peer)# port 1/0/0
routejxwpx(config)# dial-peer voice 10 voip
routejxwpx(config-dial-peer)# destination-pattern 1001
routejxwpx(config-dial-peer)# session target ipv4:192.168.1.1
routejxwpx(config)#in f0/0
routejxwpx(config-if)#ip add 192.168.1.2 255.255.255.0
routejxwpx(config-if)#no shut
routejxwpx(config-if)#exit
routejxwpx(config)#ip route 192.168.3.0 255.255.255.0 192.168.1.1
routejxwpx(config-dial-peer)# destination-pattern 2001
routejxwpx(config-dial-peer)# port 1/0/0
routejxwpx(config)# dial-peer voice 10 voip
routejxwpx(config-dial-peer)# destination-pattern 1001
routejxwpx(config-dial-peer)# session target ipv4:192.168.1.1
routejxwpx(config)#in f0/0
routejxwpx(config-if)#ip add 192.168.1.2 255.255.255.0
routejxwpx(config-if)#no shut
routejxwpx(config-if)#exit
routejxwpx(config)#ip route 192.168.3.0 255.255.255.0 192.168.1.1
本文转自 jxwpx 51CTO博客,原文链接:http://blog.51cto.com/jxwpx/193513,如需转载请自行联系原作者