Addressing Table
Switch Port Default Gateway Subnet Mask IP Address Interface Device
S1 F0/1 N/A 255.255.255.0 192.168.1.1 G0/1
R1
N/A N/A 255.255.255.252 10.1.1.1 S0/0/0
N/A N/A 255.255.255.252 10.1.1.2 S0/0/0 (DCE)
R2
N/A N/A 255.255.255.252 10.2.2.2 S0/0/1 (DCE)
S3 F0/1 N/A 255.255.255.0 192.168.3.1 G0/1
R3
N/A N/A 255.255.255.252 10.2.2.1 S0/0/0
S1 F0/2 192.168.1.1 255.255.255.0 192.168.1.50 NIC Syslog
S1 F0/3 192.168.1.1 255.255.255.0 192.168.1.2 NIC PC-A
S3 F0/2 192.168.3.1 255.255.255.0 192.168.3.2 NIC PC-C
R1(config)#router ospf 100
100 is process id of routing local value for router can be shared between router can be repeat
R1(config-router)#router-id 1.1.1.1
As ip in hello message between routing exchange data
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#network 10.1.1.0 0.0.0.3 area 0
Network command for network ID of DC (direct connected to Router 1)
*******************************************************
R1(config)#router ?
bgp Border Gateway Protocol (BGP)
eigrp Enhanced Interior Gateway Routing Protocol (EIGRP)
ospf Open Shortest Path First (OSPF)
rip Routing Information Protocol (RIP)
R1(config)#router osf
R1(config)#router os
R1(config)#router ospf 100
R1(config-router)#router
R1(config-router)#?
area OSPF area parameters
auto-cost Calculate OSPF interface cost according to bandwidth
default-information Control distribution of default information
distance Define an administrative distance
exit Exit from routing protocol configuration mode
log-adjacency-changes Log changes in adjacency state
neighbor Specify a neighbor router
network Enable routing on an IP network
no Negate a command or set its defaults
passive-interface Suppress routing updates on an interface
redistribute Redistribute information from another routing protocol
router-id router-id for this OSPF process
R1(config-router)#rout
R1(config-router)#router-id 1.1.1.1
R1(config-router)#net
R1(config-router)#network 192.168.1.0 0.0.0.255
% Incomplete command.
R1(config-router)#network 192.168.1.0 0.0.0.255 ?
area Set the OSPF area ID
R1(config-router)#network 192.168.1.0 0.0.0.255 area ?
<0-4294967295> OSPF area ID as a decimal value
A.B.C.D OSPF area ID in IP address format
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#ne
R1(config-router)#netwo
R1(config-router)#network 10.1.1.0 0.0.0.3 area 0
R1(config-router)#exit
R1(config)#
*Aug 11, 14:43:45.4343: 14:43:45: %OSPF-5-ADJCHG: Process 100, Nbr 2.2.2.2 on Serial0/0/0 from LOADING to FULL,
Loading Done
***********************************************************************************************
***
R2(config)#router ospf 200
R2(config-router)#?
area OSPF area parameters
auto-cost Calculate OSPF interface cost according to bandwidth
default-information Control distribution of default information
distance Define an administrative distance
exit Exit from routing protocol configuration mode
log-adjacency-changes Log changes in adjacency state
neighbor Specify a neighbor router
network Enable routing on an IP network
no Negate a command or set its defaults
passive-interface Suppress routing updates on an interface
redistribute Redistribute information from another routing protocol
router-id router-id for this OSPF process
R2(config-router)#router
R2(config-router)#router-id 2.2.2.2
R2(config-router)#net
R2(config-router)#network 10.1.1.0 0.0.0.3 area 0
R2(config-router)#netwo
R2(config-router)#network 10.2.2.0 0.0.0.3 area 0
00:13:45: %OSPF-5-ADJCHG: Process 200, Nbr 1.1.1.1 on Serial0/0/0 from LOADING to FULL, Loading Done
R2(config-router)#exit
***********************************************************************************************
***
R3(config)#router ?
bgp Border Gateway Protocol (BGP)
eigrp Enhanced Interior Gateway Routing Protocol (EIGRP)
ospf Open Shortest Path First (OSPF)
rip Routing Information Protocol (RIP)
R3(config)#router osf
R3(config)#router os
R3(config)#router ospf 100
R3(config-router)#router
R3(config-router)#router-id 3.3.3.3
R3(config-router)#netwo
R3(config-router)#network 192.168.3.0 0.0.0.255 area 0
R3(config-router)#netw
R3(config-router)#network 10.2.2.0 0.0.0.3 area 0
R3(config-router)#exit
************************************************************************************