Denis писал(а):
Вот что надо добавить, чтобы нат работал:
AP200(config)# interface ether1.0
AP200(config-ether1.0)# ip nat-group 0 pat ether0.0
Работать адпак с сипнетом, если адрес динамически должен нормально. Просто сделайте таймаутом, чтобы перерегистрировался на сервере почаще.
Все равно не работает. Интернета нет.
Ниже результат:
1 RS232 Serial Console Interface
2 Ethernet/IEEE 802.3 Interface
AP200 System software Revision 8.12
Released at Wed Jul 28 20:00:00 2004
Program is 1792936 bytes, checksum is 0xe588c0d
Local Time : Fri Jul 2 09:18:45 2010
Copyright (c) by AddPac Technology Co., Ltd. Since 1999.
Voice Module type (0): FXS
Interface ethernet0.0, changed state to UP
Interface ethernet1.0, changed state to UP
Voice Module Ready
DSP S/W download (0): .. OK
The System is ready. Please login to system.
login:
VoipGateway::Init1 - No IP address on the VoIP Interface
Set DNS Address Primary 213.234.192.7 Secondary 85.21.192.5
Line protocol on interface ether0.0, changed state to UP
Set ether0.0 our 78.106.252.5 his 89.179.76.192 mask 255.0.0.0
VOIP_INTERFACE_UP : (78.106.252.5)
login: ZZZZZZZ
password:
AP200B - Login : ZZZZZZ at Console on Fri Jul 2 09:21:50 2010
AP200# show run
!
version 8.12
!
hostname AP200
!
!
no bridge spanning-tree
!
proxy-arp
!
dhcp-list 0 type server
dhcp-list 0 address server 10.10.10.2 10.10.10.254 255.255.255.0
dhcp-list 0 option dhcp-lease-time 7200
dhcp-list 0 option router-option 10.10.10.1
!
dhcp-list 1 type server
dhcp-list 1 address server 10.1.1.2 10.1.1.254 255.255.255.0
dhcp-list 1 option dhcp-lease-time 600
!
nat-list 0 pat address 78.106.252.5
!
no ip-share enable
ip-share interface net-side ether0.0
ip-share interface local-side ether1.0
!
interface ether0.0
no ip address
encapsulation ppp-pptp
mtu 1400
pptp ip remote 89.179.76.192
ppp authentication chap callin
ppp chap hostname ZZZZZZZZ
ppp chap password ZZZZZZZZ
ppp pap sent-username ZZZZZZ password ZZZZZZZ
ppp timeout 60
ppp echo interval 20
ppp ipcp ms-dns
ppp ipcp default-route
qos-control 4096 2000
line-ctrl promiscuous
bridge
!
interface ether1.0
ip address 10.10.10.1 255.255.255.0
line-ctrl promiscuous
bridge
ip nat-group 0 pat ether0.0
ip dhcp-group 0
!
interface pptp0
ip address dhcp
!
snmp contact
snmp location
snmp name AP200B
no snmp trap-authentication
!
no arp reset
!
route 192.168.1.0 255.255.255.0 ether0.0
route 10.10.10.0 255.255.255.0 ether1.0
route 0.0.0.0 0.0.0.0 10.10.10.1
!
dnshost nameserver 212.96.107.3
dnshost nameserver 212.96.96.38
!
auto-script autorun.inf
VoIP configuration.
!
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 0
fax rate 9600
h323 call start fast
busyout monitor gatekeeper
busyout monitor voip-interface
!
!
! Voice port configuration.
!
voice-port 0/0
! FXS
!
!
voice-port 0/1
! FXS
caller-id enable
!
!
voice service voip
minimize-voip-port multiply 1
!
! Pots peer configuration.
!
dial-peer voice 1 pots
destination-pattern XXXXXXXX
port 0/1
!
! Voip peer configuration.
!
dial-peer voice 1000 voip
destination-pattern T
session target sip-server
session protocol sip
dtmf-relay rtp-2833
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.1.41
!
!
! SIP UA configuration.
!
sip-ua
sip-username XXXXXXXXX
sip-password XXXXXXXXXX
sip-server 212.53.35.244
register e164
!
!
! MGCP configuration.
!
mgcp
epid-type
codec g711ulaw
!
!
! Tones