Tuesday, March 1, 2011

Directly connected, Routing table, some codes in routing table, how to connect between routers .

Example about Directly connected :

cast :

Robert
Sarah
Aamy




## Robert met agirle in the university





and ask her : Hello,Whats your name?

1- the girl answered : My name is Sarah .
And Sarah asked him , whats your name ? he said My name is Robert ।
Now Sarah and Robert have been directly connected with each other .






## then he went to another girl :









and asked her Hello, whats your name?
2- the girl answered My name is Aamy .
And Aamy asked him , whats your name ? he said My name is Robert |
Now Aamy and Robert have been directly connected with each other .







$$ Now Robert has known Sarah and Aamy and directly connected with both of them |
But Sarah & Aamy didnt know each other .












## while Robert walking with Sarah he met Aamy and :





Robert Said : Sarah! this is Aamy
Sarah Said : Oh! Hello Aamy
Aamy Said : Hello Sarah




Now Sarah & Aamy connected by robert by sharing Robert's friend Aamy to Sarah and sharing him friend Sarah to Aamy but we want to say here in Routing protocol friends mean
( neighbors ) its mean we are using Routing protocols for disseminating information that enables them to select routes between any two nodes on a computer network .











as we can see in routing table







first we want to know somthing about Routing Table .



we need to know some codes like :

C - connected, S - static, I - IGRP, R - RIP, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area .


C - connected : this mean my router directly connected for your router.
S - static route : this mean by Administratore.
I - IGRP : An interior gateway protocol (Routing protocol)
R - RIP : Routing Information Protocol (Routing protocol)
B - BGP : Border Gateway Protocol (Routing protocol)
D - EIGRP : Enhanced Interior Gateway Routing Protocol (Routing protocol - Cisco proprietary)
O - OSPF : Open Shortest Path First (Routing protocol)







example about how to connect between routers and show routing Table ..etc



















go to R1 then press on it to configure it by console cable then enter to it and type :


R1>enable ( User mode )
R1# ( Privilege mode )
R1#configure terminal ( Type configure terminal to go to Global configuration mode )
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)# ( Global configuration mode )
R1(config)#interface e0/0 ( Type your interface )
R1(config-if)#ip address 192.168.30.10 255.255.255.0 ( Type your ip for this interface )
R1(config-if)#no shutdown ( Enable this interface )
R1(config-if)# ( Press on CNTL/Z to end and go to previlige mode )
*Mar 1 00:04:24.019: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up *Mar 1 00:04:25.019: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up

## Don't forget to type :


R1#copy running-config startup-config ( to save your configuration to NVram )
Destination filename [startup-config]? Building configuration... [OK]

Now we want to show routing table by type :

R1#show ip route









its mean R1 and R2 has been directly connected .











Now we will go to R2 to configure it by type :

R2>enable
R2r#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#interface e1/0
R2(config-if)#ip address 192.168.30.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#
*Mar 1 00:01:36.827: %SYS-5-CONFIG_I: Configured from console by console
*Mar 1 00:01:37.563: %LINK-3-UPDOWN: Interface Ethernet1/0, changed state to up
*Mar 1 00:01:38.563: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to up
R2(config-if)#exit
R2(config)#interface s0/0
R2(config-if)#ip add
R2(config-if)#ip address 192.168.31.10 255.255.255.0
R2(config-if)#no
R2(config-if)#no sh
R2(config-if)#no shutdown
R2(config-if)#
*Mar 1 00:05:47.079: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
*Mar 1 00:05:48.083: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up


## Dont forget to type :

R2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]








its mean R1 and R2 has been directly connected and R2 directly connected with R3 .



if you didnt understand configuring R2 lets see it again in R3 :









configure R3 by type :

R3>enable
R3#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#interface s0/0
R3(config-if)#ip address 192.168.31.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface s0/1
R3(config-if)#ip address 192.168.32.10 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#
R3#
*Mar 1 00:14:52.195: %SYS-5-CONFIG_I: Configured from console by consolecop


## Dont forget to type :


R3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R3#







its mean R3 directly connected to R2 and R4 .




if you didnt understand configuring R3 lets see it again in R4 :







configure R4 by type :

R4>enable
R4#conf
Router#configure t
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#interface s0/0
R4(config-if)#ip address 192.168.32.1 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
*Mar 1 00:00:59.595: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
R4(config)#interface
*Mar 1 00:01:00.603: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to ups
R4(config)#interface s0/2
R4(config-if)#ip address 192.168.33.10 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
*Mar 1 00:01:33.667: %LINK-3-UPDOWN: Interface Serial0/2, changed state to ups
*Mar 1 00:01:34.675: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/2, changed state to up
R4(config)#interface s0/1
R4(config-if)#ip address 192.168.34.1 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#
*Mar 1 00:01:57.135: %LINK-3-UPDOWN: Interface Serial0/1, changed state to up
*Mar 1 00:01:57.163: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/2, changed state to down
*Mar 1 00:01:58.135: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up
R4(config-if)#end
R4#
*Mar 1 00:02:03.679: %SYS-5-CONFIG_I: Configured from console by consolecop


## Dont forget to type :


R4#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R4#







its mean R4 directly connected to R3 and R5 and R6 .










if you didnt understand configuring R4 lets see it again in R5 :












configure R5 by type :


R5>enable
R5#conf
R5#configure t
R5#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R5(config)#interface s0/0
R5(config-if)#ip address 192.168.33.1 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#
*Mar 1 00:01:06.927: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
*Mar 1 00:01:07.931: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
R5(config-if)#exit
R5(config)#interface e1/0
*Mar 1 00:01:28.047: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down add
R5(config-if)#ip address 192.168.35.10 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#end
*Mar 1 00:01:50.099: %LINK-3-UPDOWN: Interface Ethernet1/0, changed state to up
*Mar 1 00:01:51.099: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to up



## Dont forget to type :

R5#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R5#

its mean R5 directly connected to R6 and R4 .






if you didnt understand configuring R5 lets see it again in R6 :










configure R6 by type :


R6>enable
R6#conf
R6#configure t
R6#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R6(config)#interface e1/0
R6(config-if)#ip address 192.168.35.1 255.255.255.0
R6(config-if)#no shutdown
R6(config-if)#exit
*Mar 1 00:01:04.083: %LINK-3-UPDOWN: Interface Ethernet1/0, changed state to up
*Mar 1 00:01:05.083: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to up
R6(config)#interface s0/0
R6(config-if)#ip address 192.168.34.10 255.255.255.0
R6(config-if)#no shutdown
R6(config-if)#end
*Mar 1 00:01:26.159: %SYS-5-CONFIG_I: Configured from console by console
*Mar 1 00:01:27.779: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
*Mar 1 00:01:28.787: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

## Dont forget to type :

R6#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R6#









its mean R6 directly connected with R4 and R5 .





Notes :

1- sometimes type something wrong and appear for you like this message its mean Domain server and your router thought you are having domain lookup called for example (Ki) which i typed wrong





in this case if you want to disable Domain server enter to ( Global configuration mode ) and type
R1(config)#no ip domain lookup

2- if you want to troubleshooting your interfaces if it up or down u should type :
Router#show ip interface brief
or you can type Router#show interfaces s0/0


рей-if you want to verifying Mac Address on Ethernet interfaces you can type :
Router#show interfaces f0/0

3- its found two types of serial cables ( DCE & DTE ) if you want to know are this interfaces using ( DCE or DTE ) you should type for example :
Router#show controllers s0/0 (s0/0 its mean for any interface you want to configure it)

after that you should type on DCE interface cable you should type for example :

Router(config-if)#clock rate 64000

No comments:

Post a Comment