cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
838
Views
0
Helpful
4
Replies

ip subnetting DHCP error in intr-VLAN !!

x.1d
Level 1
Level 1

hello there ... im new here and im already done from CCNAR&S and  im testing my self by doing routing between some bank branches ...

okay my problem when i try i try to use ip subnetting  on intr-vlan and give all pc's ip via DHCP some of them got it successful and the others got APIPA !!!!

im using packet tracer last version

this is my configuration settings on router :



and this is  my configuration settings on SW :

   

this is the method i use for doing ip subnetting :

error screenshot :

1 Accepted Solution

Accepted Solutions

Hi,

Your default-router is wrong. It should be 

ip dhcp excluded-address 10.0.0.46

!

ip dhcp pool 40

network 10.0.0.32 255.255.255.240

default-router 10.0.0.46

!

int fa0/0.40

encap dot1q 40

ip add 10.0.0.46 255.255.255.240

HTH.

Regards,

Terence

View solution in original post

4 Replies 4

Terence Payet
Level 1
Level 1

Hi,

Your DHCP pools are wrong. Kindly see below correct config:

ip dhp excluded-address 10.0.0.14

ip dhp excluded-address 10.0.0.29

!

 ip dhcp pool 10

   network 10.0.0.0 255.255.255.240

   default-router 10.0.0.14

!

ip dhcp pool 20

  network 10.0.0.16 255.255.255.240

  default-router 10.0.0.29

HTH.

Please rate helpful post.

Regards,

Terence

it's working for vlan ( 10,20,30 )

but not working for vlan 40 i dont why ???

this is my config :

ip dhcp excluded-address 10.0.0.14

ip dhcp excluded-address 10.0.0.29

ip dhcp excluded-address 10.0.0.44

ip dhcp excluded-address 10.0.0.59

!

ip dhcp pool 10

network 10.0.0.0 255.255.255.240

default-router 10.0.0.14

ip dhcp pool 20

network 10.0.0.16 255.255.255.240

default-router 10.0.0.29

ip dhcp pool 30

network 10.0.0.16 255.255.255.240

default-router 10.0.0.44

ip dhcp pool 40

network 10.0.0.32 255.255.255.240

default-router 10.0.0.59

Hi,

Your default-router is wrong. It should be 

ip dhcp excluded-address 10.0.0.46

!

ip dhcp pool 40

network 10.0.0.32 255.255.255.240

default-router 10.0.0.46

!

int fa0/0.40

encap dot1q 40

ip add 10.0.0.46 255.255.255.240

HTH.

Regards,

Terence

salemmahara
Level 3
Level 3

DHCP Scope ranges must be checked again

What about other sub interfaces? 

Switch will tag frames with specific VLAN ID and throw it out of Trunk port . In other side, router will receive packet and direct it to its related sub interface. So if your switch tags a packet with VLAN ID 10, your router must direct it to the sub interface tagged using .1q with vlan id 10 .

So, define a sub interface for each vlan on your router. Otherwise , Your router can't handle it and select right scope to pick an ip and it also can't answer request without tagging them ,