ā08-13-2017 08:26 PM - edited ā03-08-2019 11:43 AM
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
ā08-13-2017 08:46 PM
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
ā08-14-2017 12:43 AM
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:
|
|
---|---|
Router(config-if)# ip address ip-address mask secondary |
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide