Introduction
My company wowould like to set up a call center. the call center needs a VOIP router. we choosed Cisco 2811, and we applied an E1 cable to host 30 phones in. we need to do necessary configuration in the Cisco 2811 router.
Config the Cisco 2811 router
We have Ed the router. we started to config the router. first we checked the delivery list file in the package, and found a console cable. the console cable is used to config the router. one end of the console cable is female serial port, the other end of the console cable is 255.11 (network port ). plugged in the same 11 side into the router, and plugged the female serial port into the serial port of my laptop.
Start the "Hyper terminal" program in windows, input a name: cisco2811, for the connection. select China (86) for Country/region, area code 010, Connect using COM1, click on the "Configure" button next to Connect using, click "Restore defaults ". click OK, click OK again.
Then the Console window shows some message. press enter key. the router prompts for user name and password. input cisco as user name and cisco as password. this is the default password of all cisco routers. we need to change it right now. use this one:
Username cisco privilege 15 secret 5 cisco
Config the E1 PRI card
There is the T1/E1 card delivered with the router. We plugged the card into the number 0 slot of the router, attach the PRI cable to the E1 card, a yellow light turns on.
Go to the console window, type the command:
Configure terminal
Hostname GW_1
Card type E1 0 0
Network-clock-maid wic 0
Network-clock-select 1 E1 0/0/0
End
Show run
Note: the card type command is to specify the E1 card. If the command not presented, the isdn command will not be available.
Config the IP address for the network card
GW_1 # configure terminal |
|
GW_1 <config> # interfaceFast-ethernet 0/0 |
|
GW_1 <config-if> # ip addressIp-address Net-mask |
|
GW_1 <config-if> # ip route 0.0.0.0 0.0.0.0Default-router |
Default-router: address of default gateway |
GW_1 <config-if> # exit |
|
GW_1 <config> # ip routing |
|
|
|
Config the relay of router
GW_1 # configure terminal |
|
GW_1 <config> # Isdn switch-type primary-net5 |
Turn on ISDN PRI |
GW_1 <config> # controller E10/0/0 |
|
GW_1 & lt; config-controller & gt; # framing NO-CRC4 |
Set the mode to NO_CRC4 |
GW_1 <config-controller> # pri-group timeslots 1-31 |
All the time slots in one primary group |
GW_1 <config-controller> # trunk-group 1 timeslots 1-31 |
All time slots into the first group |
GW_1 <config-controller> # exit |
|
GW_1 <config> # interface Serial 0/0/ |
|
GW_1 <config-if> # isdn overlap-Inserting ing T302 500 |
Turn on isdn overlap-switching ing mode |
GW_1 <config-if> # exit |
|
Config the dial-peer
GW_1 # configure terminal |
|
GW_1 <config> # dial-peer voice100Voip |
Add a inbound route named 100 |
GW_1 <config-dial-peer> # destination-pattern28829... |
The number starts with 28829. The "." cocould be wildchar to match any character. |
GW_1 <config-dial-peer> # session target ipv4:192.168.90.230 |
Send all the SIP packets to the target address 192.168.90.230 |
GW_1 <config-dial-peer> # session protocol sipv2 |
Protocol sip version 2 |
GW_1 <config-dial-peer> # dtmf-relay rtp-nte |
RTP protocol to deal with DTMF |
GW_1 <config-dial-peer> # codec g711alaw |
Use g.711 Alaw to transmit voice data Another choice is codec g729r8 |
GW_1 <config-dial-peer> # exit |
|
GW_1 <config> # exit |
|
Config the call out route
GW_1 # configure terminal |
|
GW_1 <config> # |
|
GW_1 <config> # controller E10/0/0 |
|
GW_1 <config-controller> # trunk-group 1 timeslots 1-31 |
Put timeslots in the first group |
GW_1 <config-controller> exit |
|
GW_1 <config> # controller E10/0/1 |
Another controller |
GW_1 <config-controller> # trunk-group 1 timeslots 1-31 |
|
GW_1 <config-controller> exit |
|
GW_1 <config> # dial-peer voice900Pots |
Out bound route named 900 |
GW_1 <config-dial-peer> # destination-pattern... |
Call out number start |
GW_1 <config-dial-peer> # direct-inward-dial |
Set DID mode |
GW_1 <config-dial-peer> # trunkgroup 1 |
Call out from the first group |
GW_1 <config-dial-peer> # exit |
|
GW_1 <config> # |
|
After the configuration, there shoshould be a green light on the E1 card.
Debug the router
The show command is very useful when debugging the router. To check the status of controllers, serial ports.
First we can use show run command to view the current configuration of router.
Show controllers command is also useful, Show interface serial-port command is also useful to debug the router.
Be careful to the "shutdown" command
When you see a shutdown command, the component is in administrative shutdown status. if it is extremely necessary, you can put the shutdown command. otherwise, please use "no shutdown" to disable the "shutdown" command.