Saturday, November 1, 2014

Static routing !


In this tutorial let me show you how to configure static routing procol and what kind of  routing protocols first we want to know what kind of routing protocols

Routing protocols (Dynamic routing  & static routing )

For Dynamic routing it contains (Ripv1 , Ripv2 , OSPF , IGRP , EIGRP , BGB)

But in this tutorial I will talking about Static Routing and how to configure it

First please look at this picture and tell me how many network in this picture ?





 Sure you will answer me it has be found 6 networks


It means all routers can send and receive information between each other do you think that ?! Ok lets try to ping between routers to see if I can send and receive data between all this networks or not

Ok lets try to ping between office_1 and office_2




Success!


Lets try to ping between office_2 and HR






Success!


Lets try to ping between HR and technical_sup






Success!


Lets try to ping between technical_sup and secretery then ceo routers






Success!

Lets try to ping between secretery and ceo


Success!


But if we try to ping between remote router it will be not able to ping between each other like for example try to ping between office_1 and HR router it will not be able to ping don't believe me ? Ok lets try it




Failed!

So why packets not sent for this routers ? Because office_1 go to routing table and look at it and didn't find any address called 192.168.16.2 it mean it can't reach to this address and sure packets will be dropped and will be unreachable to the destination .. so how can we fix this problem ? Sure we can use static routing or we can use routing protocols or we can use based policy routing ..

But in this tutorial we will talking about static routing protocol and how to ..




What about if we want to tell router office_1 go to talk with HR or technical_sup router or ceo router or secretery ? We should tell it exit from  interface (blabla) or go to from (blabla) ip ddress ok in the static routing protocol we should now something about it ..

If office_1 want to send packets or talking with HR router it should put ip route then destination ip and subnet mask then you can type (exit interface or you can type next hop ip  ) 
Notes :
Hop mean Router .

Let me give you an example about that but please I want to tell you about office_1 it has been called stub network .. stub network mean one way to the destination it mean it not has been found any way to the destination without this interface so
If office_1 router want to talk to technical_sup it can talking with by two ways :
By give it  ip route then (router ip) then next hop ip
Or you can type ip route then (router ip) then exit interface



Practical :





Router office_1 is astub network
So we should type default route it will be configure like that : ip route 0.0.0.0 0.0.0.0 (next hop) now go to office_1 router and type :

Ip route 0.0.0.0 0.0.0.0 192.168.15.2 (this is next hop way)






Or


Ip route 0.0.0.0 0.0.0.0 e0/0 (this is exit interface way)






office_2 have astub network why ? Because one way to the destination .


ok now go to office_2 then type



ip route 0.0.0.0 0.0.0.0 192.168.16.2



then go to HR router and type ip route 192.168.15.0 255.255.255.0 s0/0

and ip route 192.168.17.0 255.255.255.0 s0/1

and try to ping between office_1 and HR routers it will be success!

now go to technical_sup router and type ip route 192.168.16.0 255.255.255.0 s0/0


for connecting between office_2 router and technical_sup router .. and type on technical_sup router ip route 192.168.15.0 255.255.255.0 s0/0 for connecting between office_1 and technical_sup router .. and type on technical_sup router ip route 192.168.20.0 255.255.255.0 s0/2 .. and type on technical_sup router default route by type  ip route 0.0.0.0 0.0.0.0 s0/0 (because its astub network) .




now go to secretery router and type ip route 192.168.19.0 255.255.255.0 e1/0 .. and type ip route 192.168.17.0 255.255.255.0 s0/0 ..  and type ip route 192.168.16.0 255.255.255.0 s0/0 .. and type ip route 192.168.15.0 255.255.255.0 s0/0 ..


now go to ceo router and type ip route 192.168.18.0 255.255.255.0 e1/0 .. and type 192.168.17.0 255.255.255.0 s0/0 .. and type 192.168.16.0 255.255.255.0 s0/0 .. and type 192.168.15.0 255.255.255.0 s0/0 ..



Now try to ping all routers between eachother and now you can send and recieve packets between each other .

Notes :

please check your routing table by type (ip route) to see changes .


Wednesday, October 15, 2014

how to create free hosting and free cpanel

how to create free hosting and free cpanel how to connect for mysql server and and select it and testing if this connected or not ! hello in this tutorial let me show how to create anew free hosting (mysql and cpanel and ftp server) and how to connect with the server and select data inside phpmyadmin and test the connectivity.

first go to this site here

and start to sign up .

ok after finish it will send for you message have all your informations about your hosting like (mysql cpanel ftp ) hostsname & usernames and passwords .

go to login to your host and put the username of cpanel and password

host2 pic

now go to Database Management and choose MySQL Databases

host3 pic

now you create anew database name for example type here program then press on creatDatabase

host4 pic

now you are created anew database and called
host5 pic

now go to and close MySQL Databases page and go back Database Management again and press on phpmyadmin and you will see your created database name please press on connect now
host6 pic

now you are connected with phpmyadmin now Create new table on database 0lx_7324950_program
for example put in the name box name software and in Number of fields box put for example 4
then press on Go .. now you are on the table settings for example go and install this settings in the table like this pic

host7 pic


then press on save .. after you press on save it will be like that

host8 pic

now press on Browse to check

Wednesday, May 7, 2014

how to open interface on router and give to it ip !


In this Tutorial I will show you to how to open interface on router and give to it ip !


First look at this pic :

     


We can see :

Employees_Router (give it ip 192.168.15.1 and subnet mask 255.255.255.0)


Pc Name
Ip Address
Subnet Mask
Emp_1 192.168.15.2 255.255.255.0
Emp_2 192.168.15.3 255.255.255.0
Emp_3 192.168.15.4 255.255.255.0
Emp_4 192.168.15.5 255.255.255.0


Lets start and show you how to give it all this devices ips and open interface on router first go to router then enter to global configuration mode (if you don't know how to go to global configuration mode resume this lesson please here




Then type : interface f2/0  like that
Employees(config)#interfac f2/0 then enter

Give ip for this interface by typing :
Ip address 192.168.15.1 255.255.255.0

Then type no shutdown

Now it will appeare for you message tell you Fastethernet2/0 changed state to up like this pic


Notes : 

you can disable this message by go to gloable configuration mode and enter to line console 0 then type logging syncronous

like this picture  :





If you want to verify the interface type :
Show ip interface brief




Now go to vpcs to configure ips to pcs to enable ping between eachother if you don't how please check it here







Emp_1 ip 192.168.15.2 192.168.15.1 255.255.255.0
Emp_2 ip 192.168.15.3 192.168.15.1 255.255.255.0
Emp_3 ip 192.168.15.4 192.168.15.1 255.255.255.0
Emp_4 ip 192.168.15.5 192.168.15.1 255.255.255.0


after you can test to ping between eachther pcs



Enjoy !

Thursday, May 1, 2014

How to install VPCS under linux Ubuntu Add pcs on gns3 !

In this Tutorial I will show to you configure VPCS to add Pcs and configure Ips for Pcs devices ..

 first download VPCS from here  





After downloaded you should go to direction : cd /home/username/Downloads/

Then   unzip vpcs-0.21a.zip


Now go to    cd 0.21a/

Then ls
Then change mode to excutable like that : chmod +x vpcs (32 or 64)

After that type ./vpcs(64 or 32)






Now it will be start like that :

VPCS[1]>
Type 1 for pc1
Type 2 for pc2
Type 3 for pc3
Type 4 for pc4
….








If you want to give ip and subnet mask and gateway like this you should type :

Ip then ip-range then default gateway then subnetmask like that :




Ip 192.168.15.2 192.168.15.1 255.255.255.0


after that type : VPCS[1]> show

  to apply all your ips and see what is the LPORT and RPORT ( this import will see later )







Now go to open your gns3 project and go to Edit and choose Symbol manager and choose computer and press on > button to add this to customized nodes and press on computer  double click to change the name of this device now go to the top  in the Name : and change name to anyname you want and choose from Type : and change it to cloud then press on apply then  press on ok  ..

now press on the pc it will be appearing for you like this pic



then press on the name of your pc for example press on Emp_1 as you could see the pic

go to NIO UDP like this pic







Now you can touch my Notes about (( LPORT and RPORT )) look at your VPCS to see whats your LPORT and RPORT and vice versa those it mean put LPORT number on RPORT  number  and put RPORT on LPORT number and in Remote  host type your localhost or 127.0.0.1 then press on  Add  button then Apply then ok Now you are done !



Enjoy !