Configuring Router Interface IP and DHCP Settings
This guide explains how to configure a router’s FastEthernet interface with a static IP address, enable DHCP services, set address exclusions, and configure a host to obtain its IP settings automatically, using Cisco IOS command-line syntax.
The following steps configure the router’s FastEthernet0/0 interface with IP address 192.168.1.254/24 and activate the interface.
R1(config)#interface fastEthernet 0/0 R1(config-if)#ip address 192.168.1.254 255.255.255.0 R1(config-if)#no shutdown R1(config)#ip dhcp pool vlan1 R1(dhcp-config)#network 192.168.1.0 255.255.255.0 R1(dhcp-config)#default-router 192.168.1.254 R1(dhcp-config)#dns-server 202.106.0.20 R1(config)#ip dhcp excluded-address 192.168.1.1 R1(config)#ip dhcp excluded-address 192.168.1.100
Next, a DHCP pool named vlan1 is created, defining the network, default gateway, DNS server, and excluded address ranges (192.168.1.1 and 192.168.1.100).
Finally, host A is set to obtain its IP configuration automatically, as illustrated by the screenshots below.
Practical DevOps Architecture
Hands‑on DevOps operations using Docker, K8s, Jenkins, and Ansible—empowering ops professionals to grow together through sharing, discussion, knowledge consolidation, and continuous improvement.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.