Tuesday, August 10, 2010

Cisco Router Back To Back Connection


One Of The Most UseFull Connections In Routers, Is Back To Back Connection, In Which, Routers Can Commnucate With Each Other, And Route Packets From Router To Another Router.

For Back To Back Connection, In Cisco Routers, We Use Serial InterFace And Cable For Back To Back Connection.

Here, We Want To Connect R1 And R2 Routers With Back To Back Connection.
Well, After The Cable Connection, It's Time To Configure Back To Back Connection In Routers.
When You Connect Two Routers To Each Other Wirh Back To Back Connection And Serial Interface, One Of Them Is DCE And The Other Is DTE. 
You Should Set Clock Rate For DCE, But DTE, Will Automatically Detects The Clock Rate.  
In This Example. R1 Is DTE, Connected With Serial 0 Interface To R2, And R2 Is DCE, Connected With Serial 1 Interface To R1.
Now, Lets Config Routers.

Router R1:
At First If You Don't Know If The Interface Is DCE Or DTE, Enter This Command:

 show interface serial 0

Now, You Can Find Out That It Is DCE Or DTE. 
After That, You Should Enable Serial 0 Interace, And Assign Ip Address To This Interaface, Be Carefull, Serial 0 Interaface On R1 Router And Serial 1 Interface On R2 Router Should Have Ip Address In The Same Range And The Same Subnetmask. 

 >enable
 #config terminal
 (config)#interface serial 0
 (config-if)#ip address 10.0.0.1 255.255.255.0
 (config-if)#no shutdown

Now, Router R1 Is Ready.....

Router R2:
The Configuration Of R2 Router Is The Same As R1 Router, But This Is DCE And You Should Set Clock Rate.

 >enable
 #config terminal
 (config)#interface serial 1
 (config-if)#ip address 10.0.0.2 255.255.255.0
 (config-if)#no shutdown
 (config-if)#clock rate 5600

Now It Is Ready, Lets Test Our Connection With Ping:
R1 Router:

 #ping 10.0.0.2 

R2 Router:
 

 
#ping 10.0.0.1 


No comments:

Post a Comment