cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
449
Views
0
Helpful
2
Replies

Router

muraripadhan
Level 1
Level 1

Dears

My router f0/0 ip is 192.168.1.1/24

But 

I want to give another ip in that interface how can i give that please suggest me .

Thanks and regards 

Murari Mohan Padhan

2 Replies 2

Francesco Molino
VIP Alumni
VIP Alumni

Hi 

If you want to keep your actual ip on that interface and add a new one you can use the same command ip address with the keyword secondary at the end. 

If your goal is to have multiple subnets routed through that router, you can do a router on a stick. This means that on your switch you'll have a trunk interface facing that router and on the router itself you'll use subinterfaces like: 

interface gi0/0.1

  encap dot1 100  --> it says you're in vlan 100

  ip address .....

interface gi0/0.2
encap dot1 200 
ip address .....

 You can repeat that for all vlans you want to add

Thanks 

PS: Please don't forget to rate and mark as correct answer if this answered your question


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

to add to Francesco's post another way is to give it a secondary ip address 

Assigning Multiple IP Addresses to Network Interfaces

Cisco IOS software supports multiple IP addresses per interface. You can specify an unlimited number of secondary addresses. Secondary IP addresses can be used in a variety of situations. The following are the most common applications:

•There might not be enough host addresses for a particular network segment. For example, suppose your subnetting allows up to 254 hosts per logical subnet, but on one physical subnet you must have 300 host addresses. Using secondary IP addresses on the routers or access servers allows you to have two logical subnets using one physical subnet.

•Many older networks were built using Level 2 bridges, and were not subnetted. The judicious use of secondary addresses can aid in the transition to a subnetted, router-based network. Routers on an older, bridged segment can easily be made aware that many subnets are on that segment.

•Two subnets of a single network might otherwise be separated by another network. You can create a single network from subnets that are physically separated by another network by using a secondary address. In these instances, the first network is extended, or layered on top of the second network. Note that a subnet cannot appear on more than one active interface of the router at a time.


Note If any router on a network segment uses a secondary address, all other routers on that same segment must also use a secondary address from the same network or subnet.


To assign multiple IP addresses to network interfaces, use the following command in interface configuration mode:

Command
Purpose

Router(config-if)# ip address ip-address mask secondary