cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
666
Views
0
Helpful
3
Replies

Failed with setting up dhcp server.

andrewb3111
Level 1
Level 1

tYsfxk061s4.jpgHi guys, im new to the packet tracer, and im trying to set up dchp server with 2 pcs in different networks.

I have set up first dhcp poolon my router, but it doesnt work. What i am missing? Thanks in advance for help.

 

Router>en

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#int fa0/0

Router(config-if)#ip address 192.168.1.1 255.255.255.0

Router(config-if)#no shut

Router(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

Router(config-if)#exit

Router(config)#ip dhcp pool net1

Router(dhcp-config)#network 192.168.1.0 255.255.255.0

Router(dhcp-config)#default-router 192.168.1.1

Router(dhcp-config)#dns-server 8.8.8.8

Router(dhcp-config)#exit

Router(config)#ip dhcp excluded-address 192.168.1.1

Router(config)#exit

Router#

1 Accepted Solution

Accepted Solutions

Hello,

 

you need to use a crossover cable for the connection between the PC and the router (the cable with the dashed line)...

View solution in original post

3 Replies 3

Hello

Your DHCP server pool looks correct - so what’s connected to fa0/0 of the rtr.?


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

I have a Pc connected to it, and it doesnt get an ip addressCTweIHPHhMs.jpg

Hello,

 

you need to use a crossover cable for the connection between the PC and the router (the cable with the dashed line)...

Review Cisco Networking for a $25 gift card