Saturday, November 10, 2018

Static Routing : 1. Point to Point

Point to Point



  • Point-to-Point Protocol (PPP) is used to establish a direct connection between two nodes.


Point to Point

Point to Point


Pc1:

PC1 IP Address

PC1 IP Address

Pc2:

Pc2 IP Address

Pc2 IP Address



R1:

Continue with configuration dialog? [yes/no]: n

Router>enable

Router#configure terminal

Router(config)#Hostname R1

R1(config)#interface fastEthernet0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown

R1(config-if)#interface serial2/0
R1(config-if)#ip add 20.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit (or) Control + Z 

R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.2
R1(config)#ip route 40.0.0.0 255.0.0.0 20.0.0.2

R2:

Router>en

Router#conf t

Router(config)#ho R2

R2(config)#int s2/0
R2(config-if)#ip add 20.0.0.2 255.0.0.0
R2(config-if)#no sh

R2(config-if)#int s3/0
R2(config-if)#ip add 30.0.0.1 255.0.0.0
R2(config-if)#no sh
R2(config-if)#exit

R2(config)#ip rou 10.0.0.0 255.0.0.0 20.0.0.1
R2(config)#ip rou 40.0.0.0 255.0.0.0 30.0.0.2

R3:

Router>en

Router#conf t

Router(config)#ho R3

R3(config)#int fas0/0
R3(config-if)#ip add 40.0.0.1 255.0.0.0
R3(config-if)#no sh

R3(config-if)#int s2/0
R3(config-if)#ip add 30.0.0.2 255.0.0.0
R3(config-if)#no sh
R3(config-if)#exit

R3(config)#ip rou 10.0.0.0 255.0.0.0 30.0.0.1
R3(config)#ip rou 20.0.0.0 255.0.0.0 30.0.0.1

R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, FastEthernet0/0
C 20.0.0.0/8 is directly connected, Serial2/0
S 30.0.0.0/8 [1/0] via 20.0.0.2
S 40.0.0.0/8 [1/0] via 20.0.0.2

R1#show ip interface brief
Interface                      IP-Address      OK?     Method            Status                          Protocol
FastEthernet0/0           10.0.0.1           YES     manual            up                                up
FastEthernet1/0           unassigned      YES     unset                administratively down down
Serial2/0                      20.0.0.1           YES     manual            up                                up
Serial3/0                      unassigned      YES     unset                administratively down down
FastEthernet4/0           unassigned      YES     unset                administratively down down
FastEthernet5/0           unassigned      YES     unset                administratively down down


PC 1:

C:\>ping 40.0.0.10

Pinging 40.0.0.10 with 32 bytes of data:

Reply from 40.0.0.10: bytes=32 time=5ms TTL=125
Reply from 40.0.0.10: bytes=32 time=2ms TTL=125
Reply from 40.0.0.10: bytes=32 time=2ms TTL=125
Reply from 40.0.0.10: bytes=32 time=2ms TTL=125

Ping statistics for 40.0.0.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:

Minimum = 2ms, Maximum = 5ms, Average = 2ms

From Pc1 (10.0.0.10) to Pc2 (40.0.0.10) in Pinging Now.

Static Route Assigned From Pc1 to Pc2  

1 comment: