cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5993
Views
15
Helpful
21
Replies

router dhcp problem

Jangelides
Level 1
Level 1

Hi guys, currently learning CCNA. Stuck with a small probem. I have a 1760 Router that I have configured as a DHCP server to the VLAN's on my switch. I have followed all the instructions that I have found but unfortunately the switch is just not getting assigned the ip addresses.  Can anyone help me please.

 

Here is my router config

Current configuration : 6971 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SunrayR
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip cef
!        
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.20.1
ip dhcp excluded-address 192.168.30.1
!
ip dhcp pool LAN10
   network 192.168.10.0 255.255.255.0
   default-router 192.168.10.1
!
ip dhcp pool LAN20
   network 192.168.20.0 255.255.255.0
   default-router 192.168.20.1
!
ip dhcp pool LAN30
   network 192.168.30.0 255.255.255.0
   default-router 192.168.30.1
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 speed 100
 full-duplex
!
interface FastEthernet0/0.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
 no snmp trap link-status
!
interface FastEthernet0/0.20
 encapsulation dot1Q 20
 ip address 192.168.20.1 255.255.255.0
 no snmp trap link-status
!
interface FastEthernet0/0.30
 encapsulation dot1Q 30
 ip address 192.168.30.1 255.255.255.0
 no snmp trap link-status
!
interface Serial0/0
 no ip address
 shutdown
!
interface Ethernet1/0
 no ip address
 shutdown
 half-duplex
!
!
!
no ip http server
no ip http secure-server
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 password ********
 logging synchronous
 login
line aux 0
line vty 0 4
 exec-timeout 0 0
 password ********
 logging synchronous
 login
 transport input ssh
line vty 5 15
 exec-timeout 0 0
 password ********
 logging synchronous
 login
 transport input ssh
!
end

 

Special thanks in advance.

21 Replies 21

Again thank you so much.  Would have taken me forever to spot that.  Hopefully.....on day.......i get to be half as good as some of guys on here. One hurdle complete 1001 lef to go.

Port 1 in my switch which is in native vlan 1 is connected to fa0/0 on the router.

Not sure what you mean by this ie. the port should be configured as a trunk.

Which specific port on the switch connects to the router ?

Also which port is the client connected to ?

Jon

Sorry my mistake. fa0/1 on the switch is configured as a dot1q trunk and connected to fa0/0 on the router.  The client pc is connected to fa0/2 on the switch which is configured as an access port and in vlan10.

I just checked your switch configuration. you need to assign an IP address to each SVIs. Assign .2 IP address on each SVI.

 

ROUTER <----> SWITCH

Router will be tagging VLAN 10,20,30 traffic and using .1 IP address

Your switch also needs to tag the traffic and send it to Router using SVIs.

 

Also, do not use 'ip default-gateway' -> this is for L2 switch

Use 'ip route 0.0.0.0 0.0.0.0 next-hop' for L3 switches

 

Thanks,

G1

The router is doing the inter vlan routing not the switch so -

1) the SVIs should be left shutdown and do not need IP addresses

2) you should use "ip default-gateway" because the switch is acting as a L2 switch and not L3

Jon

I realised that and removed the IP helper-address commands. I did set the default gateway to 192.168.1.1 which is the IP address of fa0/0.1 on the router.

My equipment consists of a cisco 1760 router and a cisco layer '2' switch, so svi's are not an option.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card