How to setup routing with OSPF and DHCP pools. Ver 0.1
==R1== en conft t ! hostname R1 ! router ospf 1 router-id 1.1.1.1 ! network 192.168.10.0 0.0.0.255 area 0 ! network 192.168.11.0 0.0.0.255 area 0 ! network 12.12.12.0 0.0.0.3 area 0 ! exit ! int gig 0/0 ip address 192.168.10.1 255.255.255.0 ! no shut ! exit ! int gig 0/1 ip address 192.168.11.1 255.255.255.0 ! no shut ! exit ! int serial 0/0/0 ip address 12.12.12.1 255.255.255.252 ! no shut ! exit ! ===Setting up the DHCP pools=== ! ip dhcp excluded-address 192.168.10.1 ! ip dhcp excluded-address 192.168.11.1 ! ip dhcp excluded-address 192.168.11.2 ! ip dhcp excluded-address 192.168.12.1 ! ip dhcp pool LAN-SALES network 192.168.10.0 255.255.255.0 default-router 192.168.10.1 dns-server 192.168.11.2 ! exit ! ip dhcp pool LAN-MKT network 192.168.11.0 255.255.255.0 default-router 192.168.11.1 dns-server 192.168.11.2 ! exit ! ip dhcp pool LAN-IT network 192.168.12.0 255.255.255.0 default-router 192.168.12.1 dns-server 192.168.11.2 ! exit
===R2=== en conf t ! hostname R2 ! router ospf 1 router-id 2.2.2.2 ! network 12.12.12.0 0.0.0.3 area 0 network 23.23.23.0 0.0.0.3 area 0 ! exit ! int serial 0/0/0 ip address 12.12.12.2 255.255.255.252 no shut ! exit ! int serial 0/0/1 ip address 23.23.23.1 255.255.255.252 ! no shut ! exit ! ===R3=== en conf t ! hostname R3 ! router ospf 1 router-id 3.3.3.3 ! network 23.23.23.0 0.0.0.3 area 0 ! network 192.168.12.0 0.0.0.255 area 0 ! exit ! int serial 0/0/0 ip address 23.23.23.2 255.255.255.252 no shut ! exit ! int gig 0/0 ip address 192.168.12.1 255.255.255.0 no shut ! ip helper-address 12.12.12.1 ! exit