Техническая база знаний
Addpac
Настройка
Доступ к устройствам через telnet (пакет в gentoo: net-misc/netkit-telnetd)
- Login: root
- Password: router
- IP адрес по-умолчанию на ETH1: 192.168.10.1/24
Переход в административный режим редактирования конфигурации
enable conf term
Настройка сетевого интерфейса ETH0 (FastEthernet0/0)
interface FastEthernet0/0 ip address 192.168.24.68 255.255.255.0 speed auto no qos-control
Настройка шлюза по-умолчанию (делается в режиме (conf))
ip route 0.0.0.0 0.0.0.0 192.168.24.1
Сохранение конфигурации и выход
write end
Отладка
Посмотреть информацию об интерфейсах
> show interface
Посмотреть информацию о маршрутах
> show ip route
Дебаг звонка
# debug voip call extend-1
После этого надо включить вывод сообщений на экран
terminal monitor
Загрузка конфига через FTP
Полезные ссылки
Примеры конфигурационных файлов
Все параметры конфигурационного файла
AP-100 (NAT)
version 8.41.085 hostname AP100 username root password router administrator ! interface Loopback0 ip address 127.0.0.1 255.0.0.0 ! interface FastEthernet0/0 ip address 172.23.98.246 255.255.255.0 ip nat outside speed auto no qos-control ! interface FastEthernet0/1 ip address 10.25.0.50 255.255.0.0 ip nat inside speed auto no qos-control ! ip route 0.0.0.0 0.0.0.0 10.25.0.1 ip route 172.23.98.0 255.255.255.0 FastEthernet0/0 ! access-list 1 permit 10.0.0.0 0.255.255.255 ! ip nat inside source list 1 interface FastEthernet0/0 overload ip nat inside source static udp 10.139.0.5 5060 interface FastEthernet0/0 5060 ! snmp name AP100_G2 ! ftp server http server ! dns name-server 10.39.0.8 dns name-server 10.39.0.9 ! ! VoIP configuration. ! ! Voice service voip configuration. ! voice service voip fax protocol t38 redundancy 0 fax rate 9600 h323 call start fast h323 call tunnel enable ! ! Voice port configuration. ! ! FXS voice-port 0/0 description FromMos caller-id enable ! voice service voip minimize-voip-port multiply 1 ! ! Pots peer configuration. ! ! Voip peer configuration. ! ! Gateway configuration. ! gateway h323-id voip.10.25.1.3 public-ip 172.23.98.246 no ignore-msg-from-other-gk ! ! SIP UA configuration. ! sip-ua signaling-port 5066 ! ! MGCP configuration. ! mgcp vad ! ! Tones ! voip-interface ip FastEthernet0/1 ! line console ! line vty ! end
AP-1005
version 8.30W hostname AP1005 no bridge spanning-tree no ip-share enable interface ether0.0 ip address dhcp interface ether1.0 no ip address snmp name AP1005 snmp enable-trap dn-register 300 forcely-block no arp reset ! VoIP configuration. ! Voice service voip configuration. voice service voip fax protocol t38 redundancy 0 fax rate 9600 h323 call start fast h323 call tunnel enable ! Voice port configuration. ! FXO voice-port 0/0 connection plar 7426880 ring number 0 ring detect-timeout 70 busyout action tone caller-id enable caller-id type etsi caller-id name disable ! FXO voice-port 0/1 connection plar 7426881 ring number 0 ring detect-timeout 70 busyout action tone caller-id enable caller-id type etsi caller-id name disable ! FXO voice-port 0/2 no caller-id enable ! FXO voice-port 0/3 no caller-id enable ! Pots peer configuration. dial-peer voice 0 pots destination-pattern T port 0/0 user-name addpac user-password addpacPASS self-forwarding-caller-id dial-peer voice 1 pots port 0/1 user-name addpac user-password addpacpassword self-forwarding-caller-id ! Voip peer configuration. dial-peer voice 1000 voip destination-pattern 74268T session target sip-server session protocol sip voice-class codec 1 no vad dtmf-relay rtp-2833 ! Gateway configuration. gateway h323-id voip.192.168.100.191 no ignore-msg-from-other-gk ! Codec classes configuration. voice class codec 1 codec preference 1 g711ulaw codec preference 2 g711alaw ! SIP UA configuration. sip-ua sip-username addpac sip-password addpacpassword sip-server 192.168.100.188 register gateway ! MGCP configuration. mgcp no codec vad ! Tones
AP-1005
version 8.30W hostname AP1005 no bridge spanning-tree no ip-share enable interface ether0.0 ip address 192.168.0.7 255.255.255.0 interface ether1.0 no ip address line-ctrl promiscuous bridge 1 snmp name AP1005 snmp enable-trap dn-register 300 forcely-block no arp reset dnshost domain 8.8.8.8 ! VoIP configuration. ! Voice service voip configuration. voice service voip fax protocol bypass fax rate 9600 h323 call start fast h323 call tunnel enable announcement language english ! Voice port configuration. ! FXO voice-port 0/0 input gain 6 output gain 4 connection plar 101 description 4997204528 ring detect-timeout 70 busyout action tone no caller-id enable caller-id type etsi caller-id name disable ! FXO voice-port 0/1 input gain 6 output gain 4 connection plar 102 description 4997204529 ring detect-timeout 70 no caller-id enable ! FXO voice-port 0/2 input gain 6 output gain 4 connection plar 103 description 4957789294 no caller-id enable ! FXO voice-port 0/3 input gain 6 output gain 4 connection plar 104 description 4959796915 no caller-id enable ! Pots peer configuration. dial-peer voice 0 pots destination-pattern 777 port 0/0 dial-peer voice 11 pots destination-pattern 777 port 0/1 dial-peer voice 12 pots destination-pattern 777 port 0/2 dial-peer voice 13 pots destination-pattern 777 port 0/3 ! Voip peer configuration. dial-peer voice 100 voip destination-pattern T session target 192.168.0.106 no vad dtmf-relay h245-alphanumeric dial-peer voice 101 voip destination-pattern 777 session target 192.168.0.106 no vad dtmf-relay h245-alphanumeric dial-peer voice 1001 voip destination-pattern T session target 192.168.0.106 session protocol sip voice-class codec 0 no vad dtmf-relay rtp huntstop dial-peer ipaddr-prefix n dial-peer call-hold h dial-peer call-transfer h ! Gateway configuration. gateway h323-id voip.192.168.1.107 no ignore-msg-from-other-gk ! Codec classes configuration. voice class codec 0 codec preference 1 g711alaw codec preference 2 g729 voice class codec 1 codec preference 1 g711alaw codec preference 2 g711ulaw voice class codec 711 codec preference 1 g711ulaw codec preference 2 g711alaw ! SIP UA configuration. sip-ua sip-username 777 sip-password 777 sip-server 192.168.1.1 sip-server 192.168.0.106 timeout treg 600 srv enable register e164 ! MGCP configuration. mgcp no codec vad ! Tones
AP-GS1002 (GSM)
! version 8.51.009 ! hostname GS1002 ! username root password router administrator username guest password guest user ! ! interface Loopback0 ip address 127.0.0.1 255.0.0.0 ! interface FastEthernet0/0 ip address dhcp no ip dhcp unicast speed auto no qos-control ! interface FastEthernet0/1 no ip address speed auto no qos-control ! interface FastEthernet0/0:1 no ip address ! ! ip route 0.0.0.0 0.0.0.0 192.168.0.1 via dhcp ! ! ! ip dhcp pool default network FastEthernet0/1 range FastEthernet0/0 ! ! dhcp server http server ! ! dns name-server 192.168.0.1 via dhcp ! ! ip connect default inside FastEthernet0/1 outside FastEthernet0/0 ! logging command logging event 4-warning logging host server ip 192.168.0.219 logging on ! ! ! ! ! ! VoIP configuration. ! ! ! Voice service voip configuration. ! voice service voip protocol sip dtmf-relay out-of-band fax protocol t38 redundancy 0 fax rate 9600 h323 call start fast h323 call tunnel enable no call-barring unconfigured-ip-address no voip-inbound-call-barring enable ! ! ! Voice port configuration. ! ! GSM voice-port 0/0 connection plar 89672077797 dial-tone-generate no caller-id enable caller-id type etsi ! ! ! GSM voice-port 0/1 connection plar 89852273223 dial-tone-generate no caller-id enable caller-id type etsi ! ! ! ! ! service port group configuration. ! ! ! ! Pots peer configuration. ! dial-peer voice 1 pots destination-pattern 01T port 0/0 user-name gsmline1 user-password addpacPASS translate-outgoing called-number 1 ! dial-peer voice 2 pots destination-pattern 02T port 0/1 user-name gsmline1 user-password addpacPASS translate-outgoing called-number 2 ! ! ! ! Voip peer configuration. ! dial-peer voice 0 voip destination-pattern 89T session target ip 192.168.0.219 5060 session protocol sip voice-class codec 1 no vad dtmf-relay rtp-2833 ! ! ! dial-peer call-hold h dial-peer call-transfer h ! dial-peer hunt 2 ! ! gatekeeper ! ! ! Gateway configuration. ! gateway h323-id voip.192.168.0.219 ignore-msg-from-other-gk ! ! ! Codec classes configuration. ! voice class codec 0 codec preference 1 g711ulaw codec preference 2 g711alaw codec preference 3 g729 ! ! ! ! Translation Rule configuration. ! translation-rule 0 rule 0 T T ! translation-rule 1 rule 0 01T T ! translation-rule 2 rule 0 02T T ! ! ! ! SIP UA configuration. ! sip-ua user-register sip-server 192.168.0.219 timeout tregtry 10 remote-party-id session-refresh update register e164 ! ! ! Tones ! ! ! ! ! SMS delivery configuration ! sms-delivery ! ! ! line console ! line vty ! mobile dev-restart-by-unreg 300 mobile dev-restart-by-unknown-error mobile cell-monitor 30 ! mobile 0/0 gsm sms-language utf8 ! mobile 0/1 gsm sms-language utf8 !
AP-GS1002 (GSM)
! version 8.51.009 ! hostname GS1002 ! username root password router administrator username guest password guest user ! ! interface Loopback0 ip address 127.0.0.1 255.0.0.0 ! interface FastEthernet0/0 ip address 192.168.24.68 255.255.255.0 speed auto no qos-control ! interface FastEthernet0/1 ip address 192.168.10.1 255.255.255.0 speed auto no qos-control ! ip route 0.0.0.0 0.0.0.0 192.168.24.1 ! ! ! ip dhcp pool default network FastEthernet0/1 range FastEthernet0/0 ! ! dhcp server http server ! ip connect default inside FastEthernet0/1 outside FastEthernet0/0 ! logging command logging event 4-warning logging host server ip 192.168.0.219 logging on ! ! ! ! ! ! VoIP configuration. ! ! ! Voice service voip configuration. ! voice service voip protocol sip dtmf-relay out-of-band fax protocol t38 redundancy 0 fax rate 9600 h323 call start fast h323 call tunnel enable no call-barring unconfigured-ip-address no voip-inbound-call-barring enable ! ! ! Voice port configuration. ! ! GSM voice-port 0/0 connection plar 101 dial-tone-generate no caller-id enable caller-id type etsi ! ! ! GSM voice-port 0/1 connection plar 101 dial-tone-generate no caller-id enable caller-id type etsi ! ! ! FXO voice-port 0/2 no caller-id enable ! ! ! FXO voice-port 0/3 no caller-id enable ! ! ! ! ! service port group configuration. ! ! ! ! Pots peer configuration. ! dial-peer voice 1 pots destination-pattern T port 0/0 user-name addpac user-password addpacPASS translate-outgoing called-number 0 dial-peer voice 2 pots destination-pattern T port 0/1 user-name addpac user-password addpacPASS translate-outgoing called-number 0 ! ! ! ! Voip peer configuration. ! dial-peer voice 0 voip destination-pattern 101 session target ip 192.168.24.72 5060 session protocol sip voice-class codec 1 no vad dtmf-relay rtp-2833 ! dial-peer voice 1000 voip no vad dtmf-relay info ! ! ! dial-peer call-hold h dial-peer call-transfer h ! dial-peer hunt 2 ! ! gatekeeper ! ! ! Gateway configuration. ! gateway h323-id voip.192.168.0.219 ignore-msg-from-other-gk ! ! ! Codec classes configuration. ! voice class codec 0 codec preference 1 g711ulaw codec preference 2 g711alaw codec preference 3 g729 ! ! ! ! ! ! Translation Rule configuration. ! translation-rule 0 rule 0 T T ! translation-rule 1 rule 0 01T T ! translation-rule 2 rule 0 02T T ! ! ! ! SIP UA configuration. ! sip-ua user-register sip-server 192.168.24.72 timeout tregtry 10 remote-party-id session-refresh update ! ! ! Tones ! ! ! ! ! SMS delivery configuration ! sms-delivery ! ! ! line console ! line vty ! mobile dev-restart-by-unreg 300 mobile dev-restart-by-unknown-error mobile cell-monitor 30 ! mobile 0/0 gsm sms-language utf8 ! mobile 0/1 gsm sms-language utf8 ! end