Sei sulla pagina 1di 3

Configure Cisco 2821 Router as an E1 Trunk Gateway 07/25/2011

As you know I have three Cisco 2821 routers; each with 2 VWIC-2T1/E1 Cards to connect to PTSN, the Cisco Router I have run c2800nm-spservicesk9-mz.150-1.M4.bin IOS image and come with Cisco Configuration Professional Express Preinstalled. Cisco Configuration Professional is a new Cisco GUI Management Interface that you need to install in your laptop it is very handy if you have no or little experience or need a quick setup for your router, you can configure IP routing, Acciss List, configure your trunks, configure your gateway as a SIP, H323 or MGCP trunk gateway. Almost everything you can do from that interface. Also it will give a brief of the commands that is required for the thing that you want to setup before it apply it to the router. With this new CP Software installed into the router and when you connect to it for the first time through the console, after the router complete booting it will ask for a Username and a Password which will be the default cisco for both. it will give you a warning in the banner above the username and passowrd prompt which is ''Cisco Configuration Professional (Cisco CP) is installed on this device.This feature requires the one-time use of the username "cisco" with the password "cisco". These default credentials have a privilege level of 15. YOU MUST USE CISCO CP or the CISCO IOS CLI TO CHANGE THESE PUBLICLY-KNOWN CREDENTIALS Here are the Cisco IOS commands. username< myuser> privilege 15 secret 0< mypassword> no username cisco Replace< myuser> and <mypassword> with the username and password you want to use'' which I learned the Hard way as I didnt notice this warning and therefore didn't configure a new username and password so I wasn't able to login to the system again untill I did password recovery. So now I will show you how to configure a new username and password, how to configure your router to give access to Cisco Configuration Professional, Console and Telnet. then I will show you the Password recovery procedure if you missed it up like I did, and last our original Post Topic How to Configure your E1s Configure Username Password, Allow Configuration Pro, Console, Telnet access to your router As I mentioned before when you connect to the router for the first time through the console you need to change your username and password by typing the below command at the config prompt No Username Cisco Username ..your username.. Privilege 15 Password 0 ...your password..... To give access to Cisco Configuration Proffesional ip http server ip http secure-server ip http authentication local Your Console line Console 0 login Local Privilege level 15 Your Telent line vty 0 15 login local Privilege level 15 transport input telent transport input telnet ssh
1

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------Password Recovery for Cisco 2821 To do a Password Recovery for your Cisco 2821 follow the below steps: 1- Shutdown your router. 2- Remove the Compact Flash Card, and Power again the router. It will boot to the ROMMN. (Removing the Compact Flash will force the router to go ROMMN mode as it can't load the image stored in the flash) 3- At rommon 1> prompt type confreg 0x2142 (This step bypasses the startup configuration where the passwords are stored) 4- Insert your Compact Flash Card again (to allow the router to boot the image stored on the compat flash) 5- At rommon 2> prompt type reset (the router will now reboots, load the image but will ignore the startup file) 6- The Configuration Wizard will now start so you will need to type no after each setup question, or press Ctrl-C in order to skip the initial setup procedure 7- After that type enable then configure memory or copy startup-config running-config in order to copy the nonvolatile RAM (NVRAM) into memory this will load all your old configuration (Do not type wr or Copy running-config startup-config if you do that all previous configuration will be deleted since the running-config doesn't have any configuration yet) 8- Type Config t, to change your password type Enable Password ..your pass... to change secret password Enable Secret ..your pass... to change your username and password Username ...your usern..... Privilege 15 Password 0 ...your pass...... 9- go back to privilage mode and type hostname(config)#config-register 0x2102 (this will make router look for the startup config file in the compact flash when its next reboot) 10- Type write memory or copy running-config startup-config in order to commit the changes. make sure you have saved your configuration before your reboot or reload the router otherwise router will go back to step 6 again. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------Setup your E1 card I will show you the configuration for E1 interface, the same concept to T1 interface as well, the first thing that you need to do in order for your E1 Card and Controller to show up,is to define you card type by typing this command: Card Type (E1/T1) (Voice card Slot) (E1 Card Slot) your voice card slot is always 0 and you have 4 HWIC card slots for E1 card to host (0-3) (this is for the 2821 router) So for my router as I have two cards installed in slots 0 and 1 I typed: card type E1 0 0 card type E1 0 1 without Card type command, the controller command will not showup. next define your time zone clock timezone gmt 3 next allow you E1 cards to get the timing from Service provider and assign it priority network-clock-participate wic 0 network-clock-participate wic 1 network-clock-select 1 E1 0/0/0 network-clock-select 2 E1 0/1/0 next your switch type globaly isdn switch-type primary-net5
2

next Controller E1 0/0/0 pri-group timeslots 1-31 if you had T1 you would used ds0-group timeslots command next interface Serial0/0/0:15 no ip address encapsulation hdlc isdn switch-type primary-net5 isdn incoming-voice voice no cdp enable (in kuwait sometimes you will need to add framing CRC or No framing CRC, it depends on your Service Provider) last thing is your dialpeer dial-peer voice 1 pots destination-pattern 9.T direct-inward-dial port 0/0/0:15 Thats all to it, I think my next post will be on how to add the Trunk gateway to CUCM 8.0 as an MGCP or an H323 Gateway

Potrebbero piacerti anche