cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1697
Views
10
Helpful
6
Replies

DHCP from a router passing through a MultiLayer Switch for VLANs

I was working on a project where I have 3 switches which have their respective VLANs and all of them are connected through a multilayer switch which in turn is connected to a router. I wanted to have the router give out Dynamic IP to each of the terminals in their respective VLANs (Vlan10,20 and 30). However, after setting up the necessary commands on the router, the terminals aren't getting their ip addresses, and I get an DHCP FAILED APIPA is being used. i'm wondering if this is a multilayer switch issue or if there is something else I need to. Here is the architecture. 

 

Thanak you

6 Replies 6

Richard Burts
Hall of Fame
Hall of Fame

We do not have enough information to be able to understand the issue or to give you good advice. We need information about how the router is configured. In particular we need details about how DHCP is configured, details about the connection of router to multi layer switch, and details about whether the router sees vlans 10, 20, and 30 as locally connected or as remote. The best thing would be to post the current running config of the router. And we need information about how the multi layer switch is configured. In particular we need details about how the switch connects to the router, details about how vlans 10, 20, and 30 are configured, whether the switch is providing routing for these vlans, details about whether the switch has ip helper-address configured on the vlans. The best thing would be to post the current running config of the switch.

HTH

Rick

Jitendra Kumar
Spotlight
Spotlight

@testtester12345679  I have done a workout for you:-

 

with the same diagram and the client taken IP successfully from DHCP below is the config.

 

You can verify your config with my and rectify according.

 

router config:-


Router>
Router>
Router>en
Router#sh run
Building configuration...

Current configuration : 1031 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
ip dhcp pool DHCP10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 8.8.8.8
domain-name wr
ip dhcp pool dhcp20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 8.8.8.8
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2811/K9 sn FTX10176BI6-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.0.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end

 

 

Multilayer Switch config:-

Switch>

Switch>

Switch>en

Switch#sh run

Building configuration...

 

Current configuration : 1475 bytes

!

version 12.2(37)SE1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface FastEthernet0/1

switchport mode trunk

switchport nonegotiate

!

interface FastEthernet0/2

switchport access vlan 20

!

interface FastEthernet0/3

switchport access vlan 10

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

ip address 192.168.0.2 255.255.255.0

!

interface Vlan10

mac-address 0001.97e1.5001

no ip address

ip helper-address 192.168.0.1

!

interface Vlan20

mac-address 0001.97e1.5002

no ip address

ip helper-address 192.168.20.1

!

ip classless

ip route 0.0.0.0 0.0.0.0 192.168.0.1

!

ip flow-export version 9

!

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

!

end

 

 

Access Switch VLAN 10 config :-

Switch>

Switch>

Switch>en

Switch#sh run

Building configuration...

 

Current configuration : 1475 bytes

!

version 12.2(37)SE1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface FastEthernet0/1

switchport mode trunk

switchport nonegotiate

!

interface FastEthernet0/2

switchport access vlan 20

!

interface FastEthernet0/3

switchport access vlan 10

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

ip address 192.168.0.2 255.255.255.0

!

interface Vlan10

mac-address 0001.97e1.5001

no ip address

ip helper-address 192.168.0.1

!

interface Vlan20

mac-address 0001.97e1.5002

no ip address

ip helper-address 192.168.20.1

!

ip classless

ip route 0.0.0.0 0.0.0.0 192.168.0.1

!

ip flow-export version 9

!

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

!

end

 

 

Access Switch Vlan 20 :-

Switch#sh run

Building configuration...

 

Current configuration : 1728 bytes

!

version 15.0

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

spanning-tree mode pvst

spanning-tree extend system-id

!

interface FastEthernet0/1

switchport access vlan 20

!

interface FastEthernet0/2

switchport access vlan 20

!

interface FastEthernet0/3

switchport access vlan 20

!

interface FastEthernet0/4

switchport access vlan 20

!

interface FastEthernet0/5

switchport access vlan 20

!

interface FastEthernet0/6

switchport access vlan 20

!

interface FastEthernet0/7

switchport access vlan 20

!

interface FastEthernet0/8

switchport access vlan 20

!

interface FastEthernet0/9

switchport access vlan 20

!

interface FastEthernet0/10

switchport access vlan 20

!

interface FastEthernet0/11

switchport access vlan 20

!

interface FastEthernet0/12

switchport access vlan 20

!

interface FastEthernet0/13

switchport access vlan 20

!

interface FastEthernet0/14

switchport access vlan 20

!

interface FastEthernet0/15

switchport access vlan 20

!

interface FastEthernet0/16

switchport access vlan 20

!

interface FastEthernet0/17

switchport access vlan 20

!

interface FastEthernet0/18

switchport access vlan 20

!

interface FastEthernet0/19

switchport access vlan 20

!

interface FastEthernet0/20

switchport access vlan 20

!

interface FastEthernet0/21

switchport access vlan 20

!

interface FastEthernet0/22

switchport access vlan 20

!

interface FastEthernet0/23

switchport access vlan 20

!

interface FastEthernet0/24

switchport access vlan 20

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

!

!

!

line con 0

!

line vty 0 4

login

line vty 5 15

login

!

!

!

!

end

 

 

Thanks,

Jitendra 

Thanks,
Jitendra

your config is OK but 
in multilayer SW config IP for each VLAN, mac address not enough for DHCP relay.

in Router you must config interface connect to multiyear SW with subinterafce VLAN 1 NOT as router port.

in Router you must make router know return traffic for VLAN 10,20,30 toward multiyear SW 

yes, I know. I have put it for reference according to the diagram.

 

requester can check his existing config and add what they have missed.

 

Thanks,

Jitendra

 

 

Thanks,
Jitendra

Hello,

 

what instructions are you following ? What is the multilayer switch supposed to do ? Post your zipped Packet Tracer project (.pkt) file...

Hi

 Share you PacketTracert project. Zip it first.