Fundamentals 2 min read

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.

Practical DevOps Architecture
Practical DevOps Architecture
Practical DevOps Architecture
Configuring Router Interface IP and DHCP Settings

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.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.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

RouterNetworkingDHCPCiscoIP Configuration
Practical DevOps Architecture
Written by

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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.