2009年4月16日星期四

cnc-gk-gw配置模板(转贴)

网守的配置模板:
version 12.0
service timestamps debug uptime
service timestamps log datetime msec
service timestamps debug date msec
no service password-encryption
!
hostname xxxx
!
!
!
!
ip subnet-zero
ip domain-name cnc.net.cn
ip name-server 10.0.10.109
!
interface FastEthernet0/0
ip address <x.x.x.x> 255.255.255.128
no ip redirects
no ip directed-broadcast
duplex auto
speed auto
standby 1 timers 5 15
standby 1 priority xxx(gk1: 110, gk2: 100) preempt(gk1 only)
standby 1 ip x.x.x.x(HSRP address)
!
ip classless
ip route 0.0.0.0 0.0.0.0 x.x.x.x(IP gateway address)
no ip http server
!
logging trap errors
logging x.x.x.x(syslog server address)
!
snmp-server community snmp view v1default RO
snmp-server community cncvoiplic RO
snmp-server community cncvoip2000 RW
snmp-server community public view v1default RO
snmp-server enable traps syslog
snmp-server host < CVM IP > snmp
snmp-server host < CVM IP> public
snmp-server host <CiscoWorks IP> snmp
snmp-server host <CiscoWorks IP > public
!
gatekeeper
zone local <zone name>(same with city name)
<domain name> x.x.x.x(local HSRP address)
!
!
!
zone remote < cnc-dir-gk > <CNC domain Name> <dir-gk IP > 1719
!
zone prefix <zone name> <prefix>
!
!
no zone subnet <zone name> default enable
zone subnet <zone name> x.x.x.x/mask (for GW) enable

!

zone prefix <cnc-dir-gk> *
gw-type-prefix 1#* default-technology
no shutdown
!
!
line con 0
transport input none
line aux 0
modem Dialin
modem autoconfigure discovery
speed 38400
line vty 0 4
exec-timeout 180 0
password cisco
login
!
ntp server <Primary NTP server > prefer
ntp server <Secondary NTP server>
end


网关的配置模板:

!International route 4, fail-over route for all world call
dial-peer voice 8<xx>000 voip (xx—tech prefix)
preference 5
destination-pattern 00T
dtmf-relay cisco-rtp h245-signal h245-alphanumeric
fax-rate 9600
tech-prefix <xx># (xx --- tech prefix)
voice-class codec 88
session target ras
!
process-max-time 200
gateway
!
interface Loopback0
ip address <IP address> <subnet mask>
no ip directed-broadcast
h323-gateway voip interface
h323-gateway voip id <zone name> ipaddr <GK IP addr> 1719
h323-gateway voip h323-id <GW-id> (same with hostname)
h323-gateway voip tech-prefix 2#
!
interface Ethernet0
ip address <IP address> <subnet mask>
no ip directed-broadcast
!
interface FastEthernet0
ip address <IP address> <subnet mask>
no ip directed-broadcast
!
no ip http server
ip classless
!
ip route 0.0.0.0 0.0.0.0 x.x.x.x (local gateway ip address)
!
ip radius source-interface Loopback0

0 评论: