This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Cisco

How to Set an IP Address in a Switch in Cisco Packet Tracer

Updated on:
June 9, 2026
By:
Madhav Bhandari
Try this interactive demo to learn how to set an IP address in a switch in Cisco Packet Tracer.
  1. Open Cisco Packet Tracer.
  2. In the device selection box at the bottom of the window, add a switch to the workspace.
  3. Add another device, such as a PC, to the workspace.
  4. In the lower-left toolbar, click Connections, then select Copper Straight-Through.
  5. Connect the PC to the switch, then wait for the port to turn green.
  6. Click the switch in the workspace, then open the CLI tab.
  7. In the CLI tab, type the following commands in order, pressing Enter after each line, to assign an IP address to VLAN 1, enable the interface, exit interface configuration mode, and set the default gateway:
Your product deserves an interactive demo
Start free
Similar Articles
Cisco

How to Use Cisco Jabber

Madhav Bhandari
Director of Marketing @ Storylane
Cisco

How to Ping in Cisco Packet Tracer

Madhav Bhandari
Director of Marketing @ Storylane
Cisco

How to Save a Configuration in Cisco Packet Tracer

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Hubs
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it