Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set more than 2 IP-addresses on interface

Status
Not open for further replies.

lardum

IS-IT--Management
Apr 26, 2000
462
SE
Does someone know how to set more than 2 IP-addresses on the same interface? Or is it even possible?

Regards

Lars
 
You can use secondary IP addresses or sub-interfaces and each gets it's own IP.

Mike S
 
That means that i can use for example 4 IP-addresses on an ethernet interface? Am i right? What command is it? Do i use
IP ADDRESS A.A.A.A B.B.B.B
IP ADDRESS C.C.C.C D.D.D.D secondary
IP ADDRESS E.E.E.E F.F.F.F secondary
IP ADDRESS G.G.G.G H.H.H.H secondary

Regards

Lars
 
NO thats not correct .
example
route#conf t
router(config)int fa 0 <---this would be on the ethernet port
ip address 192.168.1.1 255.255.255.0
ip address 192.168.2.1 255.255.255.0 secondary

the same applies on the serial interfaces
I hope this helps , Good Luck !!
 
Yes, i do know that, but if i want more than 2 IP addresses on the same ethernet interface?

Regards

Lars
 
Hi

there is no trouble adding as much secondary ip addresses - no need for subinterfaces...


Arie
 
LOL- LARDUM, here is the classic two ways to do the same thing. Ariev is promoting the secondary IP addressing and I'm a subinterface *nut* :) Choose your poison as both will work. To be sure, there subtle differences but in your case I doubt they matter very much. In my case, I prefer the control a logical sub-interface gives me which is more then just having the second IP answering packets.

If you have a spare router I might suggest that you set it up each way and see which one you would prefer and which would work best for you.

Mike S

PS- I had been told( didnt look it up) that 2 was the limit for the secondary IP.. I guess I need to go and look it up after all. Add one more nugget of info the to pile :)
 
hi there, does someone know how to set the cisco route in this way?
e0/0 = 192.168.28.8 netmask 255.255.255.0
e0/1 = 192.168.28.9 netmask 255.255.255.0

i did try to use the command: ip classless but it doesn't work..

Regards

James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top