Devices Used – 2 Cisco routers with 2 ethernet interfaces, 1 layer 2 switch, and a PC
**You could use Packet Tracer instead of real devices for this lab.
In this lab you will complete initial configurations hostnames, passwords, and IP addressing. Then configure OSPF with options and DHCP server on the HQ router to provide addressing information. The configuration steps are listed with an example of how to configure that step afterward, use the examples to work your way through all the configurations (for example, you will be given one example of configuring IP addressing on Branch, use that information to configure the rest of the router and switch IP address configurations according to the topology).
Before you begin build the physical topology, the labs only cover device configuration. Configure and verify the following –
Initial Configuration
- Hostnames
Router> enable
Router# config t
Router(config)#hostname Branch
- Privileged Exec password = privexpass
Branch(config)#enable secret privexpass
Addressing Scheme
- Address interfaces using the networks and IP addresses given in the topology. Then enable the interface(s)
Branch(config)# int g0/0/0
Branch(config-if)#ip address 192.168.1.1 255.255.255.0
Branch(config-if)#no shut
Dynamic Routing – OSPF
- Single area OSPF using the network commands, all interfaces are in area 0
Branch(config)#router ospf 1
Branch(config-router)#network 192.168.1.0 0.0.0.255 area 0
Branch(config-router)#network 192.168.2.0 0.0.0.255 area 0
Branch(config-router)#network 10.10.1.0 0.0.0.255 area 0 - HQ with a router ID of 1.1.1.1
- Branch with a router ID of 2.2.2.2
HQ(config-router)#router-id 1.1.1.1
Branch(config-router)#router-id 2.2.2.2 - G0/0/1 on Branch to not send OSPF messages out the interface
Branch(config-router)#passive-interface g0/0/1 - The cost on the loopback interfaces to 15
Branch(config-if)#ip ospf cost 15
- The Hello timer to 5 seconds and the Dead timer to 15 seconds
Branch(config-if)#ip ospf hello-interval 5
Branch(config-if)#ip ospf dead-interval 15
DHCP
- IPv4 DHCP server on HQ to provide IP address, subnet mask, and default router information to PC-A. Ensure the DHCP server doesn’t hand out the first 5 addresses in the pool.
HQ(config)#ip dhcp pool Branchpool
HQ(dhcp-config)#network 192.168.2.0 255.255.255.0
HQ(dhcp-config)#default-router 192.168.2.1
HQ(dhcp-config)#dns-server 8.8.8.8
HQ(config)#ip dhcp excluded-address 192.168.2.1 192.168.2.5
- A helper address so the DHCP request from the PC can get to HQ
Branch(config)# int g0/0/1
Branch(config-if)#ip helper-address 192.168.1.2