Week 3: Configuring routers using cisco packet tracer

Routing is a process which is performed by layer 3 (or Network Layer) devices in order to deliver the packet by choosing an optimal path from one to another.

Static Routing-

       Static Routing is a process in which we have to manually add a router in a routing table.

      Advantages-

  • No Routing overhead for router CPU which means a cheaper router can be used to do routing.
  • It adds security because the only administrator can allow routing to a particular network only.
  • No bandwidth usage between routers.

       Disadvantages-

  • For a large network, it is a hectic task for an administrator to manually add each router for the network in the routing table on each router.
  • The administrator should have good knowledge of the topology. If a new administrator comes, then he has to manually add each route.

CONFIGURING ROUTERS:

  • Connect the PCs with the switch through copper straight through cable by inserting into their Fast Ethernet port.
  • Then connect the switches with the router through copper straight through cable by inserting into their Gigabit Ethernet port.
  • Now, connect both the routers with serial DTE cable by inserting into their serial port.
  • Now, assign the IP Addresses, Subnet Masks and Default Gateway of the PCs and Routers.
1. TABLE FOR IP ADDRESSES, SUBNET MASKS AND DEFAULT GATEWAYS

  • Now go to the Command Prompt of the router and enter the command 'no shut exit'.
  • Now write the commnad on the PC-0 as:
                                  #ip route 192.168.2.1 255.255.255.0 192.168.2.2
                                                  (Source)     (Subnet Mask)   (Next Hop)
  • Now write the same command for the PC-1 as:
                                  #ip route 192.168.3.1 255.255.255.0 192.168.3.2
  • Now you can send the packets from any PC to the other.

COMMANDS:

  • Router:

              Router1> enble
              Router1#config t
              Router1(config)#int fa gig 0/0
              Router1(config-if)# ip address 192.168.2.2 255.255.255.0
              Router1(config-if)#exit
              Router1(config)#int Serial0/0/0
              Router1(config-if)#ip address 192.168.1.1 255.255.255.0
              Router1(config-if)#exit
              Router1(config)#no shut exit
              Router1(config)#exit
              Router1#exit

  • Router2:

              Router2> enble
              Router2#config t
              Router2(config)#int fa gig 0/0
              Router2(config-if)# ip address 192.168.3.2 255.255.255.0
              Router2(config-if)#exit
              Router2(config)#int Serial0/0/1
              Router2(config-if)#ip address 192.168.1.2 255.255.255.0
              Router2(config-if)#exit
              Router2(config)#no shut exit
              Router2(config)#exit
              Router2#exit



2. TOPOLOGY.

Comments

Popular posts from this blog

Week 10 - Programming UDP Sockets in Node.js

Week 6 Implementation of DHCP in CISCO Packet Tracer

Week 1 - Introduction to Cisco Packet tracer