cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4358
Views
5
Helpful
10
Replies

Can a router use one IP address for more than one Interface?

Chris Snape
Level 1
Level 1

Hi People,

Basically I need a router to 'pass through' traffic without it changing the ip subnet. I have live IP addresses behind the router, attached to fa0, and they have the same ip range/subnet as the routers atm0 interface (I purchased a Non-NAT setup from my ISP).

My question is how to setup the router interfaces so they use the same IP address for the ATM interface and the Ethernet interface?

On standard consumer products you can simply turn off the NAT and it disables the LAN setup allowing live IPs behind the router.

I am using a /29 setup so have 6 ips. Everything I have looked at shows the usage of NAT but I guess I don't need that.

If I try to ping the IP behind the router from the command prompt it gets stuck in a loop between itself and my ISPs gateway.

Is that because of this - ip route 0.0.0.0 0.0.0.0 dialer 0 ??? I guess so but what is the alternative?

Oh, I am using an SR520 series router with an ADSL over POTS Wan link.

Regards,

Chris Snape (UK)

1 Accepted Solution

Accepted Solutions

Mlman1965
Level 1
Level 1

I thought I had a solution for you, but didn't look at the capabilities of the router first.

It is possible in the entreprise series routers (72XX, 76XX, 65XX), but I don't think the SR520 will support it.

I recently did a BGP exercise where we assigned a router IP adress to a loopback & then configured the ports to use the loopback.

Ex:

interface Loopback0

ip address XX.XX.XX.XX 255.255.255.248

interface ATMY/Y

ip unnumbered loopback0

interface FastEthernetZZ

ip unnumbered loopback0

View solution in original post

10 Replies 10

Mlman1965
Level 1
Level 1

I thought I had a solution for you, but didn't look at the capabilities of the router first.

It is possible in the entreprise series routers (72XX, 76XX, 65XX), but I don't think the SR520 will support it.

I recently did a BGP exercise where we assigned a router IP adress to a loopback & then configured the ports to use the loopback.

Ex:

interface Loopback0

ip address XX.XX.XX.XX 255.255.255.248

interface ATMY/Y

ip unnumbered loopback0

interface FastEthernetZZ

ip unnumbered loopback0

Mohamed Sobair
Level 7
Level 7

Chris,

Its impossible to have 2 or more layer-3 interfaces (Router Interfaces) with the same IP Addresses.

Any reason for you to do that?

HTH

Mohamed

     Mohamed,

Fire up GNS3, or Dynagen & try it.

Mohamed Sobair
Level 7
Level 7

Chris,

I dont need to fire up GNS3,  and try it..

I am telling you its impossible to have the same IPs on different layer-3 interfaces at the same router, this is according to my knowledge.

If you dont want to take my answer then its your call, you can consult some one else about it.

I hope I made my self clear,

Mohamed

Double check the post.  Chris didn't post that, I did.  If you don't want to believe what I said that's fine also, however I know that in the routers I specified you can do it.

Mohamed Sobair
Level 7
Level 7

Apologize Chris for addressing my last post to you,

However, for the second poster, The original poster wanted to have this setup on a realy hardware and in a production Network, so I dont think he is looking to test this in A GNS, this is as per his post and what I understood.

Another point is that, if the GNS accepts it, it doesnt mean it should be taken into consideration also, as this is incorrect.

HTH

Mohamed

merryllem
Level 1
Level 1

Hello Chris,

What you are trying to achieve is possible using "ip unnumbered"

Here is a good doc you can read through.

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094e8d.shtml

As far using the same IP for more than one interface, it is technically possible using VRF's. However, that might not be the way to go with what you are trying to do.

Hope that helps

Mhel

Thanks for all the info guys.

IP UNNUMBERED worked like a charm. At first I tried doing it off the vlan but that wouldn't let me so I took your advice and created the loopback0 interface to hold the permanent IP address. Then I linked the dial0 (ADSL over POTS) and vlan to the loop via unnumbered.

Worked great, thanks.

Regards,

Chris Snape

I'm glad we could help you Chris.

Mohamed Sobair
Level 7
Level 7

Chris,

What I understand from your post that the ISP provided you with one subnet , and you want to use two of the free IPs and configured it on different interfaces.

If so, then I still insist its impossible, even if you want to use loopback and IP unnumbered.

However, if you managed to solve your problem, then I might mis understood your question.

Regards,

Mohamed

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card