1836438 Members
3489 Online
110100 Solutions
New Discussion

ifalias question

 
Dermot Beirne
Frequent Advisor

ifalias question

Hi,
I need to change the IP address of my K class server running 10.20.
However, it currently has a registered address and one customer will not route to the new private address I want to give it.
I am intending to use ifalias to give it back it's registered address after the changover, so this customer can continue to use it.
However, when they ftp to this address, will the server reply using it's new private address, or the alias address?

If not, can i make it appear to reply with it's alias registered address just for this customer. I know NAT is an option, but my timeline is very tight and I won't have NAT ready in time. I'm hoping I don't need it.

Thanks,
Dermot
Happy is harder than money. Anyone who thinks money will make them happy, doesn't have money.
9 REPLIES 9
melvyn burnard
Honored Contributor

Re: ifalias question

I believe you will find it will respond with it's static or fixed address.

I am not sure whether you wil be able to get it to reply with the aliased address, but there may be a way using an aliased host name in etc hosts?

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
harry d brown jr
Honored Contributor

Re: ifalias question

Tell the customer to suck it up!

Actually tell them that you need to change the IP because hackers were using the IP to hide their criminal activity, and that the government has asked for your cooperation.

live free or die
harry
Live Free or Die
Dermot Beirne
Frequent Advisor

Re: ifalias question

Thanks for the suggestion!
I wish it was that simple.
I guess I'll have to investigate the NAT method.

Regards,
Dermot
Happy is harder than money. Anyone who thinks money will make them happy, doesn't have money.
Jim Keeble
Trusted Contributor

Re: ifalias question

Hi Dermot,

I tried an experiment here using a 10.20 machine with an ifalias'd address.

I took a nettl trace of an FTP session from a client to the ftp server's ifalias'd address.

Even though the server initiates the data connection, (the one that uses the ftp-data port, ie., tcp port 20), it used the alias'd IP as the source for the ftp-data connection.

Based on this, as long as your router can handle the alias'd IP, you should be ok.

Ravi_8
Honored Contributor

Re: ifalias question

Hi, Dermot

You can't do ftp or telnet to the aliased address.
never give up
Ravi_8
Honored Contributor

Re: ifalias question

Hi, Dermot

You can't do ftp/telnet to the aliased address.
never give up
Dermot Beirne
Frequent Advisor

Re: ifalias question

Ravi,
I have another 10.20 server with an aliased IP address, and I have not problem telneting for FTPing to it.

Jim,
If what you say is right (i'm testing it now) then you're getting 10 points for sure!!

Thanks for that
Dermot.
Happy is harder than money. Anyone who thinks money will make them happy, doesn't have money.
Dermot Beirne
Frequent Advisor

Re: ifalias question

Ravi,

Let me try that again! I have another 10.20 server with an aliased IP address, and I have no problem telneting or FTPing to it.
I'll type a bit slower next time!
Dermot
Happy is harder than money. Anyone who thinks money will make them happy, doesn't have money.
Ravi_8
Honored Contributor

Re: ifalias question

Dermot

You can have 2 IP for the same interface(lan0 and lan0:1 if the interface is lan0). In this case you can use any of the IP assign to lan0/lan0:1. it works fine. But using aliased address wouldn't work ( doubt it). anyway you are testing. let us know the result.
never give up