! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname cisco3660 ! enable secret 5 $1$CbVH$SBFia/5yuKy0cuHXa8UeR0 enable password cisco ! ip subnet-zero ! ! fax interface-type fax-mail mta receive maximum-recipients 0 ! ! interface FastEthernet0/0 ip address 172.16.0.1 255.255.255.0 定义外网IP duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.0.1 255.255.255.0 定义内网IP duplex auto speed auto ! router rip 定义路由协议 network 172.16.0.0 network 192.168.0.0 ! ip classless ip http server ip pim bidir-enable ! ! ! ! call rsvp-sync ! voice-port 3/0/0 ! voice-port 3/0/1 ! voice-port 3/1/0 ! voice-port 3/1/1 ! ! mgcp profile default ! dial-peer cor custom ! ! ! dial-peer voice 20001 pots 定义FXS端口电话号码 destination-pattern 20001 port 3/0/0 ! dial-peer voice 20002 pots destination-pattern 20002 port 3/0/1 ! dial-peer voice 20003 pots destination-pattern 20003 port 3/1/0 ! dial-peer voice 20004 pots destination-pattern 20004 port 3/1/1 ! ! dial-peer voice 301 voip 定义指定号码的路由方向 destination-pattern 301.. .或*为通配符 session target ipv4:172.16.0.2 ! dial-peer voice 302 voip destination-pattern 302.. session target ipv4:172.16.0.3 ! ! line con 0 line aux 0 line vty 0 4 password cisco login ! ! end |