Lab 8 1B OSPF PT Activity - Oliver-Mustoe/Oliver-Mustoe-Tech-Journal GitHub Wiki

In this lab, we used a starter Packet tracer file to setup Open Shortest Path First (OSPF) routing.

Notes

First I downloaded the example packet tracer, which looked like the following:
image

I also edited the network assignments to fit the needed description:
image

With this I went to each PC (East and West) and set the following:

  • IP = 10.12.xx.2
    • xx = 20(east) or 40(west)
  • Subnet = 255.255.255.0
  • Default gateway = 10.12.xx.1
    • xx = 20(east) or 40(west)

Then I went to each of the routers and used the following commands (general description of commands below all):


Border router: 1 networks

enable
conf t
hostname Oliver-BorderRouter
interface GigabitEthernet 0/0
no shutdown
ip address 10.12.1.1 255.255.255.248
router ospf 1
network 10.12.1.0 0.0.0.7 area 0


Datacenter router: 3 networks

enable
conf t
hostname Oliver-DatacenterRouter
interface GigabitEthernet 0/2
no shutdown
ip address 10.12.1.2 255.255.255.248
interface GigabitEthernet 0/0
no shutdown
ip address 10.12.1.22 255.255.255.252
interface GigabitEthernet 0/1
no shutdown
ip address 10.12.1.33 255.255.255.252
router ospf 1
network 10.12.1.32 0.0.0.3 area 0
network 10.12.1.20 0.0.0.3 area 0
network 10.12.1.0 0.0.0.7 area 0


West router: 2 networks

enable
conf t
hostname Oliver-WestRouter
interface GigabitEthernet 0/0
no shutdown
ip address 10.12.1.34 255.255.255.252
interface GigabitEthernet 0/1
no shutdown
ip address 10.12.40.1 255.255.255.0
router ospf 1
network 10.12.40.0 0.0.0.255 area 0
network 10.12.1.32 0.0.0.3 area 0


East router: 2 networks

enable
conf t
hostname Oliver-EastRouter
interface GigabitEthernet 0/0
no shutdown
ip address 10.12.1.21 255.255.255.252
interface GigabitEthernet 0/1
no shutdown
ip address 10.12.20.1 255.255.255.0
router ospf 1
network 10.12.20.0 0.0.0.255 area 0
network 10.12.1.20 0.0.0.3 area 0


Command Descriptions:

Everything in {} should be replace by what it is asking for.

  • enable and conf t = Getting into configuration mode
  • hostname {HOSTNAME} = Setting hostname
  • interface {INTERFACE_NAME (usually gig or fast)} {NUMBER/NUMBER (usually 0/something)} = get into the mode to configure the interface
  • no shutdown = Turn the interface on
  • ip address {IP_ADDRESS} {SUBNET_MASK} = Setting the IP of that interface
  • router ospf {INSTANCE_NUMBER (usually 1)} = Get into the OSPF config on the router
  • network {CONNECTED_NETWORK} {WILDCARD_SUBNET_MASK_OF_CONNECTED_NETWORK (Sub 255 from subnet mask)} area {AREA_NUMBER (often 0 in a flat network)} = Advertise what networks are directly connected to the router being configured, in a certain area.

Good note from notes:
image

Sources

Bonus

How to do MD5 authentication in OSPF, specific commands for the packet tracer used in this lab.