howtonetwork.net

Cisco Certification Training

  • Products
  • CCNA
    • CCNA Videos
    • CCNA Lectures
    • CCNA Practice Exams
    • Challenge Labs
      • Challenge Video Solutions
    • Cisco Commands
  • CCNP ROUTE
    • ROUTE Exams
  • CCNP SWITCH
    • SWITCH Exams
  • CCNP TSHOOT
  • Home
  • Join
  • Downloads
  • About Us
  • Whitepapers
  • Feature Articles
  • Helpdesk
  • FAQ
  • Free Training
You are here: Home / IP address

IP address

Command

IP address

Use

This command is used to set IP addresses on an interface.

Syntax

R1(config)#ip address <IP address> <subnet mask> <secondary>

Options

<IP address> IP address for the interface
<subnet mask> IP address for the interface
<secondary> Sets the IP address as a secondary IP address, you can have many secondary IP addresses on an interface if required. Though some routing protocols do not function properly with secondary addresses.

Example

simple

In this example, we set the ip address of int fa0/0 on R2.

R2(config)#int fa0/0
R2(config-if)#ip add 10.1.1.2 255.255.255.0
R2(config-if)#do sh ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.1.1.2 YES NVRAM up up

Next, to test it out, we do a quick ping to the new ip address.

R2(config-if)#ip add 11.22.33.44 255.255.255.240 secondary

R2(config-if)#do ping 11.22.33.44

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.22.33.44, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
R2(config-if)#

Get access to over 5 hours of IT webinar videos as well as regular study tips and ideas when you
join our mailing list

About This Site

We replaced this site some time ago with an upgraded version. Please feel free to enjoy the content and if you like what you see check out our brilliant new site:

howtonetwork.com

Keep In Touch

About Us

This is a free access website which has now been replaced by howtonetwork.com.

Navigation

  • Home
  • Join
  • Downloads
  • About Us
  • Whitepapers
  • Feature Articles
  • Helpdesk
  • FAQ
  • Free Training

Copyright

All content is protected by international copyright laws. Copyright Reality Press Ltd.

Copyright © 2023 · Dynamik Website Builder on Genesis Framework · WordPress · Log in