I have a network with 2 routers. Router 0 is a DHCP server and Router 1 I assume should be a relay agent. The routing protocol I use is EIGRP.
The problem is that PC in vlan 15 and vlan 20 cannot get the ip addresses from the dhcp server. I found out that we can configure ip-helper on the switch but it didn't work either. sh ip route command shows that it can see all networks. I have configured dhcp pools for vlans 15 and 20.
I think I missed some information about vlans or something. Can somebody point me where the problem is?
Here are some of the configurations that I've used in my topology:
en conf t int fa 0/1 switchport access vlan 5 ! int fa 0/2 switchport access vlan 10 ! int gig 0/1 switchport mode trunk ! int range fa 0/3 - 24 switchport access vlan 99 ! int gig 0/2 switchport access vlan 99 ! end
en conf t int gig 0/1 no shut ! int gig 0/1.5 encapsulation dot1q 5 ip address 22.214.171.124 255.255.255.224 ! int gig 0/1.10 encapsulation dot1q 10 ip address 126.96.36.199 255.255.255.224 ! exit ! ip dhcp pool vlan5 network 188.8.131.52 255.255.255.224 default-router 184.108.40.206 ! ip dhcp pool vlan10 network 220.127.116.11 255.255.255.224 default-router 18.104.22.168 ! end
Router 1 'show-running config'
interface GigabitEthernet0/0 ip address 22.214.171.124 255.255.255.252 duplex auto speed auto ! interface GigabitEthernet0/1 no ip address ip helper-address 126.96.36.199 duplex auto speed auto ! interface GigabitEthernet0/1.15 encapsulation dot1Q 15 ip address 188.8.131.52 255.255.255.224 ! interface GigabitEthernet0/1.20 encapsulation dot1Q 20 ip address 184.108.40.206 255.255.255.224 !