DHCP server is the server which provides IP address dynamically to the host. In GNS3 IOS 3725 image is used as Layer 3 Switch. It has NM-16ESW slot which has 16 fastethernet ports.
In this topology R1 is Layer 3 switch and SW1 is Layer 2 switch (unconfigurable), 2 hosts. Switch R1 has DHCP server which gives IP address automatically to the hosts.
no switchport
ip address 10.0.0.1 255.255.255.0
duplex full
speed 100
ip dhcp pool cisco
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
On Layer 3 switch, dhcp service has to start, without this service dhcp server will not start working.
On Host_1
On Host_2
In last whole topology is working.
By :- Vishal Sharma
In this topology R1 is Layer 3 switch and SW1 is Layer 2 switch (unconfigurable), 2 hosts. Switch R1 has DHCP server which gives IP address automatically to the hosts.
Configuration of Layer 3 switch R1 :-
IP address on interface
interface FastEthernet1/0no switchport
ip address 10.0.0.1 255.255.255.0
duplex full
speed 100
DHCP pool on router :-
ip dhcp pool cisco
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
Start DHCP service
# service dhcpOn Layer 3 switch, dhcp service has to start, without this service dhcp server will not start working.
On router this service is enabled by default.
Automatic IP address on Host_1 and Host_2
On Host_1
On Host_2
In last whole topology is working.
By :- Vishal Sharma
I needed that "Service DHCP" command. Thanks!
ReplyDelete