How can I have 3 IP address for 1 Ethernet Interface?

I have Router 3745, it has 1 Ethernet Interface.
On my Lan, I have 3 subnet.
I want to have 3 default gateway for these 3 subnet to this 3745.
So How can I have 3 IP address on Router 3745?
And If I use 2500. Can I do that?
Is it depend on IOS? Which IOS on 3745 or 2500, I need to use?
itman04Asked:
Who is Participating?
 
scampgbConnect With a Mentor Commented:
Hi itman04,

I think that the "secondary" IP address can be used for what you want, I'm not sure if you can have a third one though.

Example would be:

interface ethernet 0
ip address 192.168.1.1 255.255.255.0
ip address 192.168.4.1 255.255.255.0 secondary

I hope that this helps - let me know if I can be of any further help.
0
 
kmckinstryCommented:
Not sure if this will work for you, but you might want to try:

!    ISP interface
interface Ethernet1
 ip address 66.119.82.8 255.255.255.240
 ip nat outside
!
!
!    Allow traffic from internal LAN out
access-list 1 permit 10.10.0.0 0.0.255.255
!
ip nat inside source list 1 interface Ethernet1 overload
ip nat inside source static tcp 10.10.1.1 66.119.82.8 extendable
ip nat inside source static tcp 10.10.2.1 66.119.82.8 extendable
ip nat inside source static tcp 10.10.3.1 66.119.82.8 extendable
!
0
 
Joseph NyaemaConnect With a Mentor IT ConsultantCommented:
Just helping scampgb

conf t
interface ethernet 0
ip address 192.168.1.1 255.255.255.0
ip address 192.168.4.1 255.255.255.0 secondary
ip address 192.168.10.1 255.255.255.0 secondary

Three IP Addresses...
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
scampgbCommented:
Hi Nyaema - thanks :-)
I thought that you could probably do it, but I've never done it myself!
0
 
MarkDozierCommented:
You can configure sub-interfaces on the interface.
0
 
Joseph NyaemaIT ConsultantCommented:
The LearnedOne...
I think I exhaustively answered this questiion and therefore deserve the points.

Isn't that right Itman04? =)
0
 
scampgbCommented:
TheLearnedOne: I suggest Nyaema's first comment is accepted
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.