Monday, 30 December 2013

CCNA - 4 WAN INTERFACE CONFIGURATION

Blogger Tricks

WAN INTERFACE CONFIGURATION

 

     PPP
         Point to Point    Protocol

         Open Standard Protocol (works with same and different company Routers i.e.   Cisco–Nortel, Cisco–Multicom.

         Supports Authentication

         Supports Compression


HDLC


         High level Data link Control
         Vendor proprietary Protocol (works with same company Router only, i.e. Cisco-Cisco, Nortel-Nortel, etc.)
         No Support for Authentication
         No Support for Compression


Device Classification


DCE
          Data Communication Equipment
          Generate clocking
          (i.e. Speed).
          Master
          Example of DCE device in Leased line setup : V.35 & G.703 Modem & Exchange (Modem & MUX)
          Example of DCE device in Dial up setup  : Dialup Modem
DTE
          Data Termination Equipment
          Accept clocking
          (i.e. Speed).
          Slave
          Example of DTE device in Leased line setup : Router
          Example of DTE device in Dial up setup : Computer

  




1.Configuring a serial interface 


          A Back to Back Cable is used which emulates the copper wire, modems and MUX  , the complete exchange setup.

          Without DCE & DTE device communication is not possible.




The first step to establish the WAN connection is to configure the Serial (WAN) interface.
By default the serial interface on the Router does not have IP address, encapsulation is HDLC and the interface is in shutdown state.
To check for DTE or DCE interface, so that the clock rate can be configured on the DCE interface.





Syntax:

Router#show controllers serial <no>

Output:

HYD#show controllers serial 0/0

Interface Serial0/0
Hardware is PowerQUICC MPC860
DTE V.35 TX and RX clocks detected
idb at 0x8096C8CC, driver data structure at 0x80971DD0
SCC Registers:
General [GSMR]=0x2:0x00000030, Protocol-specific [PSMR]=0x8
Events [SCCE]=0x0000, Mask [SCCM]=0x001F, Status [SCCS]=0x06
Transmit on Demand [TODR]=0x0, Data Sync [DSR]=0x7E7E
---More ---



The following are the commands to assign IP, encapsulation & enable the serial port:


Syntax:

Router(config)#interface serial <no>
Router(config-if)#ip address <ip> <mask>
Router(config-if)#encapsulation <ppp> or <hdlc>
Router(config-if)#clockrate <bandwidth>
Router(config-if)#no shutdown



example:

WAN Interface Configuration






ON CHE:

CHE#configure terminal
CHE(config)#interface serial 0
CHE(config-if)#ip address 172.16.0.1 255.255.0.0
CHE(config-if)#no shutdown
CHE(config-if)#encapsulation hdlc
CHE(config-if)#^z




ON HYD:

HYD #configure terminal
HYD (config) #interface serial 1
HYD(config-if)#ip address 172.16.0.2 255.255.0.0
HYD(config-if)#no shutdown
HYD(config-if)#clock rate 64000
HYD(config-if)#encapsulation hdlc
HYD(config) #interface serial 0
HYD(config-if)#ip address 172.17.0.1 255.255.0.0
HYD(config-if)#no shutdown
HYD(config-if)#encapsulation hdlc
HYD(config-if)#clock rate 64000
HYD(config-if)#^z





ON BAN:

BAN#configure terminal
BAN(config)#interface serial 1
BAN(config-if)#ip address 172.17.0.2 255.255.0.0
BAN(config-if)#no shutdown
BAN(config-if)#encapsulation



to verify




To verify, the following commands can be give on
all Routers


Router#show controllers serial <number>
Router#show interface serial <number>









Check the serial interface connectivity 

Syntax: 

Router#show interface serial <no>



HYD#show interface serial 0/0

Serial0/0 is up, line protocol is up
 Hardware is PowerQUICC Serial
 Internet address is 172.17.0.1/16
 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
 Last input 00:00:02, output 00:00:01, output hang never
 Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
 Output queue: 0/1000/64/0 (size/max total/threshold/drops)
 Conversations 0/2/256 (active/max active/max total)
 Reserved Conversations 0/0 (allocated/max allocated)
 5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1047 packets input, 68589 bytes, 0 no buffer
 Received 584 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
1021 packets output, 69756 bytes, 0 underruns
0 output errors, 0 collisions, 13 interface resets
 0 output buffer failures, 0 output buffers swapped out
 28 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up













Sunday, 29 December 2013

CCNA -3 Basic commands

Introduction to Basic Commands


before moving to basic configuration of a WAN side of a router , we will start with the LAN side 



STEP 1:Connecting a Router

Setup  the LAN network as shown ,computers have to connected the switch and the switch to the router 
For configuring a router we have to access the router at this point comes the console cable from any computer a console has to be connected to the router.only after configuring the initial configurations the router can be accessed through the switch(telnet)

  

[ Note :only for the initial configuration ]


STEP 2:Accessing  a Router

After connecting the console cable to the router we could access the router.
but it requires an software for accessing the router which is called a terminal in all xp s it installed which is called a HYPER TERMINAL.in case of win 7 we could download it  (Hyper terminal for win 7) or else by using a  third party software called PUTTY .

for accseing the from if you are using xp 
goto 
--->START
--->All programs 
---> Accessories
---> communication 
--->Hyper terminal



HyperTerminal will open a dialog box, give a name (user defined) and click “ok”




Select the “COM” port to which the console cable is connected and click “ok”,



Default values are:
Bits per Second: 9600
Data Bits: 8
Parity: None
Stop Bits: 1
Flow Control: none





Click on “Restore Defaults” and click “ok”



Once HyperTerminal is ready, now switch on the Router.


After the Router boots-up completely, (on a new Cisco Router) it displays the following question:





--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [Yes/no]:no
Would you like to terminate autoinstall? [yes]:


If you choose “Yes”, IOS will prompt Questions to gather the information to configure the Router, it is recommended to choose “no”, since we can configure the Router using IOS commands.





To configure Cisco Router IOS commands are used. There are different IOS modes for various configurations.
The IOS modes are:

1. User Mode:

Router>

Router is the default hostname and can be changed, ‘>’ symbol implies “User Mode”.
This is the first mode user interacts with the IOS. It is a restricted mode and support only a very few basic commands.

2. Privilege Mode

Router#

‘#’ symbol implies Privilege Mode”. This mode has full administrative rights. This mode is generally used for advance troubleshooting using ‘show’ and ‘debug’ command. This is also called as the EXEC mode.

3. Global Configuration Mode

Router(config)#

‘(config)#’ symbol implies “Global Configuration Mode”. Configuration of the Router starts from this mode. In this mode configurations that affect the complete router are given. Example, hostname of the router.

4. Interface Configuration Mode

Router(config-if)#

‘(config-if)#’ symbol implies “Interface Configuration Mode”. This mode is used to configure a specific interface.
The different types of interfaces are
1. LAN interface
   a. Ethernet
   b. Fastethernet
   c. Gigabitethernet

2. WAN interface
   a. Serial

Each interface is identified by a number. The first interface is numbered as 0 the second interface is numbered as 1 and so on. In a modular router the number is given as ‘module number/interface number’. Example 0/0

5. Line Configuration Mode
  Router(config-line)#
 ‘(config-line)#’ symbol implies “Line Configuration Mode”. This mode is used to configure    Telnet, Console and Auxiliary

6. Router Mode

Router(config-router)#

‘(config-router)#’ symbol implies “Router Mode”. This mode is used to advertise network under dynamic routing protocols.



1.CONFIGURING HOST NAME 



Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RT1
RT1(config)#end
RT1#





2.CONFIGURING CLOCK



RT1#clock set 20:20:20 20 Jan 2008
00:10:10: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:10:10
UTC Mon Mar 1 1993 to 20:20:20 UTC Sun Jan 20 2008, configured from console
by console.

verification
RT1#show clock
20:20:21.520 UTC Sun Jan 20 2008

3.INTERFACE CONFIGURATION





Hyderabad(config)#interface Ethernet 0
Hyderabad(config-if)#
Hyderabad(config-if)#ip address 192.168.1.1 255.255.255.0
Hyderabad(config-if)#no shutdown
Hyderabad(config-if)#exit

4. TELNET

(tel´net) (n.) A terminal emulation program for TCP/IP networks such as theInternet. The Telnet program runs on your computer and connects your PC to a server(Routers) on the network. You can then enter commands through the Telnet program and they will be executed as if you were entering them directly on the server console. This enables you to control the server and communicate with other servers on the network. To start a Telnet session, you must log in to a server by entering a valid username and password. Telnet is a common way to remotely control Web servers.


Telnet Client is used to connect to remote machine by using the Telnet protocol. For example, I'm an old fashion IT guy, and I still like to configure Cisco Switches/Routers using telnet. If you started to use Windows 7, you will notice that telnet is not enabled by default !! Don't panic, it is just a matter of few clicks and telnet will be enabled again.
Telnet Client allows a computer to connect to a remote Telnet server and run applications on that server. Once logged on, a user is given a command prompt that can be used as if it had been opened locally on the Telnet server's console. Commands that you type at the Telnet client command prompt are sent to the Telnet Server and executed there, as though you were locally logged on to a command prompt session at the server. Output from the commands that you run are sent back to the Telnet client where they are displayed for you to view.

When you first try to run a telnet command, Windows will informs you that telnet is not recognized as a command




To enable Telnet Client on Windows 7, follow these steps :







Click on Start    then right click on Control Panel






From Control Panel, click on Programs




Under Programs and Features, click on Turn Windows Features on or off 




From the Windows Features window, using the slider, scroll down till you reach Telnet Client, select the checkbox beside it, then click on OK




The selected feature will be installed.



Once it is installed, the Windows Features windows will be closed To confirm that Telnet is installed, open command prompt and type telnet /?








Configuring a telnet in a Router

Hyderabad(config)#line vty 0 4
Hyderabad(config-line)#
Hyderabad(config-line)#password zoom
Hyderabad(config-line)#login
Hyderabad(config-line)#exit



Accessing telnet through computer


Access using the default Telnet client

Windows has, by default, a telnet client accessible from a Command Prompt window invoking:

c:\> telnet 192.168.0.90


Password : pass
type the default password pass and press ENTER.


C:\>telnet <IP address of router >
password : <password given at the time of telnet configuration>\