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<br/>R1(config-if)#ip address 192.168.1.254 255.255.255.0<br/>R1(config-if)#no shutdown<br/><br/>R1(config)#ip dhcp pool vlan1<br/>R1(dhcp-config)#network 192.168.1.0 255.255.255.0<br/>R1(dhcp-config)#default-router 192.168.1.254<br/>R1(dhcp-config)#dns-server 202.106.0.20<br/>R1(config)#ip dhcp excluded-address 192.168.1.1<br/>R1(config)#ip dhcp excluded-address 192.168.1.100Next, 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.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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.
