cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1213
Views
5
Helpful
3
Replies

DHCP in interVLAN routing

Kristi
Level 1
Level 1

I have this simple network with 1 core & 1 distribute switches, where I directly added PCs in a different VLANs to make sure that config was working, but VLANs on distribute switch can't get ping or DHCP IP. What's my issue here ?

3 Replies 3

Hello

Where is your dhcp server located?
I cannot open you PT file to check your configuration however i assume your core switch is performing the intervlan routing? - Make sure you have ip routing enabled on the core and disabled on the distribution switch, Do the clients receive dhcp allocation?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

hostname DistributeSwitch

!

enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0

!

no ip cef

no ipv6 cef

!

username admin secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0

!

ip ssh version 2

no ip domain-lookup

ip domain-name cisco.com

!

spanning-tree mode pvst

!

interface GigabitEthernet1/0/1

switchport trunk encapsulation dot1q

switchport mode trunk

switchport nonegotiate

!

interface GigabitEthernet1/0/2

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/3

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/4

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/5

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/6

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/7

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/8

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/9

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/10

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/11

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/12

switchport access vlan 40

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/13

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/14

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/15

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/16

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/17

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/18

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/19

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/20

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/21

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/22

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/23

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/24

switchport access vlan 50

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface Vlan1

no ip address

shutdown

!

interface Vlan40

mac-address 000a.4161.8c01

no ip address

!

interface Vlan50

mac-address 000a.4161.8c02

no ip address

!

ip classless

!

ip flow-export version 9

!

banner motd ^CPrivate Use Only!^C

!

line con 0

password 7 0822455D0A16

login

!

line aux 0

!

line vty 0 4

password 7 0822455D0A16

login local

transport input ssh

line vty 5

password 7 0822455D0A16

login local

transport input ssh

!

end



hostname CoreSW

!

enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0

!

ip dhcp pool VLAN10

network 192.168.10.0 255.255.255.0

default-router 192.168.10.1

dns-server 8.8.8.8

domain-name cisco.com


ip dhcp pool VLAN20

network 192.168.20.0 255.255.255.0

default-router 192.168.20.1

dns-server 8.8.8.8

domain-name cisco.com

ip dhcp pool VLAN30

network 192.168.30.0 255.255.255.0

default-router 192.168.30.1

dns-server 8.8.8.8

domain-name cisco.com

ip dhcp pool VLAN40

network 192.168.40.0 255.255.255.0

default-router 192.168.40.1

dns-server 8.8.8.8

domain-name cisco.com


ip dhcp pool VLAN50

network 192.168.50.0 255.255.255.0

default-router 192.168.50.1

dns-server 8.8.8.8

domain-name cisco.com

!

no ip cef

no ipv6 cef

!

username admin secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0

!

ip ssh version 2

no ip domain-lookup

ip domain-name cisco.com

!

spanning-tree mode pvst

!

interface GigabitEthernet1/0/1

switchport trunk encapsulation dot1q

switchport mode trunk

switchport nonegotiate

!

interface GigabitEthernet1/0/2

switchport access vlan 10

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/3

switchport access vlan 10

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/4

switchport access vlan 10

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/5

switchport access vlan 10

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/6

switchport access vlan 10

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/7

switchport access vlan 10

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/8

switchport access vlan 10

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/9

switchport access vlan 10

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/10

switchport access vlan 20

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

Interface GigabitEthernet1/0/11

switchport access vlan 20

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/12

switchport access vlan 20

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/13

switchport access vlan 20

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/14

switchport access vlan 20

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/15

switchport access vlan 20

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/16

switchport access vlan 20

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/17

switchport access vlan 20

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/18

switchport access vlan 30

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/19

switchport access vlan 30

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/20

switchport access vlan 30

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/21

switchport access vlan 30

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/22

switchport access vlan 30

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/23

switchport access vlan 30

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/0/24

switchport access vlan 30

switchport mode access

switchport nonegotiate

switchport port-security maximum 5

switchport port-security mac-address sticky

switchport port-security violation restrict

!

interface GigabitEthernet1/1/1

!
interface GigabitEthernet1/1/2

!

interface GigabitEthernet1/1/3

!

interface GigabitEthernet1/1/4

!

interface Vlan1

no ip address

shutdown

!

interface Vlan10

mac-address 0003.e42c.dd01

ip address 192.168.10.1 255.255.255.0

!

interface Vlan20

mac-address 0003.e42c.dd02

ip address 192.168.20.1 255.255.255.0

!

interface Vlan30

mac-address 0003.e42c.dd03

ip address 192.168.30.1 255.255.255.0

!

interface Vlan40

mac-address 0003.e42c.dd04

ip address 192.168.40.1 255.255.255.0

!

interface Vlan50

mac-address 0003.e42c.dd05

ip address 192.168.50.1 255.255.255.0

!

ip classless

!

ip flow-export version 9

!

banner motd ^CPrivate Use Only!^C

!

line con 0

password 7 0822455D0A16

login

!

line aux 0

!

line vty 0 4

password 7 0822455D0A16

login local

transport input ssh

line vty 5

password 7 0822455D0A16

login local

transport input ssh

!

end


This is the whole config there

Hello,

 

I have opened your file, the config looks good, but the PCs in Vlans 40 and 50 don't get IP addresses. Out of curiosity, I have recreated your setup in version 7.2.1 of Packet Tracer, and it works just fine. I would suggest to download and install the latest version and open the file I attached. Packet Tracer is rather quirky, so it might just be a version problem...

Review Cisco Networking for a $25 gift card