Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


koolguy

13 posts

Geek


#73630 17-Dec-2010 22:47
Send private message

Hi all,

Is there a way to redirect all traffic from host with IP address (192.168.1.10) to host with IP address (192.168.1.15)? Both hosts are running eCabinet application for clients. The host .10 is original and the host .15 is backup. Host .10 is corrupted so I need to redirect all traffic from original to the backup temporarily. Is this done on Linux server or on router or do I need to go to each user individually to change the IP address of the host running the application? We have a Cisco router.

Any help appreciated.
Thanks.

Create new topic
tigercorp
668 posts

Ultimate Geek


  #418685 17-Dec-2010 23:07
Send private message

Surely the simplest thing would be to just change the IP addresses of the servers?  

So change .1.10 to *something* and change .1.15 -> .1.10.



Chippo
129 posts

Master Geek

Trusted

  #418691 17-Dec-2010 23:30
Send private message

If this is a one-off then changing the IP addresses is probably the easiest way to go.

If you want these two machines to be redundant for each other in the future (And have them automatically switch between the two) there are programs for that. I've used keepalived in the past, although it can be a little fiddly to get working. 




I work for a global Data Protection Software company - But my opinions are my own.


koolguy

13 posts

Geek


  #418694 17-Dec-2010 23:42
Send private message

tigercorp: Surely the simplest thing would be to just change the IP addresses of the servers?  

So change .1.10 to *something* and change .1.15 -> .1.10.


I see. But how do I change the IP address of the Linux machines? What commands do I use? I guess I need the root username and password for the machines to do this. Or can I rename the IPs somehow on our Win Server 2003?

Thanks



Zeon
3916 posts

Uber Geek

Trusted

  #418695 18-Dec-2010 00:03
Send private message

Disconnect the old server and add its IP to your operational server. A Server can have more than one IP address on the same interface. Do it all the time on Windows, on Linux I believe you would do it something like this:

sudo vi /etc/network/interfaces

auto eth0

eth0:1 ... bla bla bla

eth0:2 ... bla bla bla


Then restart with sudo /etc/init.d/networking restart 

Can't say I've ever done it though. 




Speedtest 2019-10-14


michaelmurfy
meow
13263 posts

Uber Geek

Moderator
ID Verified
Trusted
Lifetime subscriber

  #418713 18-Dec-2010 02:33
Send private message

Zeon: Disconnect the old server and add its IP to your operational server. A Server can have more than one IP address on the same interface. Do it all the time on Windows, on Linux I believe you would do it something like

Then restart with sudo /etc/init.d/networking restart 

Can't say I've ever done it though. 


The simple solution to this would be:

sudo nano /etc/network/interfaces



And let's draw up a example from my work computer.

auto eth0
iface eth0 inet static
address 202.6.116.***
netmask 255.255.255.240
gateway 202.6.116.***

iface eth0 inet6 static
address 2401:f000:3::****:****
netmask 64
gateway fe80::20c:42ff:****:****
up echo 0 > /proc/sys/net/ipv6/conf/all/autoconf


auto eth0:0
iface eth0:0 inet static
address 172.16.66.45
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 192.168.20.1
netmask 255.255.255.0


Edit this to your desire, but you can see my eth0:0 config in there.

From here, just restart the interface by:

sudo ifdown eth0 && sudo ifdown eth0:0 && sudo ifup eth0 && sudo ifup eth0:0


The server will then have 2 network addresses running on the same port. 




Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)

Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.


koolguy

13 posts

Geek


  #418714 18-Dec-2010 04:47
Send private message

Zeon: Disconnect the old server and add its IP to your operational server. A Server can have more than one IP address on the same interface. Do it all the time on Windows, on Linux I believe you would do it something like this:

sudo vi /etc/network/interfaces

auto eth0

eth0:1 ... bla bla bla

eth0:2 ... bla bla bla


Then restart with sudo /etc/init.d/networking restart 

Can't say I've ever done it though. 


Ok, I guess to change the IP addresses on the linux machines on Windows Server 2003 would be easier? If yes, how?
Thanks!!!

freitasm
BDFL - Memuneh
79306 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #418723 18-Dec-2010 07:54
Send private message

koolguy:
Zeon: Disconnect the old server and add its IP to your operational server. A Server can have more than one IP address on the same interface. Do it all the time on Windows, on Linux I believe you would do it something like this:

sudo vi /etc/network/interfaces

auto eth0

eth0:1 ... bla bla bla

eth0:2 ... bla bla bla


Then restart with sudo /etc/init.d/networking restart 

Can't say I've ever done it though. 


Ok, I guess to change the IP addresses on the linux machines on Windows Server 2003 would be easier? If yes, how?
Thanks!!!


You have to change the address on the server itself... However, depending on the router you are using, you might have an option to reserve some IP addresses and assign those dynamically via HDCP. What it means is that you would leave the operational server as dynamic (no IP address) and let the router give it an IP. On your router it would have a table with reserved numbers where you could list MAC addresses (the physical LAN adapter unique address) and the IP it should get.

If your router doesn't have this feature then you will have to change it on the server itself. Turn off the old server so that the address is not being used and manually assign it to the operational server.

What's the operational server running? Is this the Linux Server you are talking about or the Windows Server? This isn't clear from your posts (or I missed it).

 




Please support Geekzone by subscribing, or using one of our referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync 


 
 
 

Trade NZ and US shares and funds with Sharesies (affiliate link).
koolguy

13 posts

Geek


  #418887 18-Dec-2010 18:57
Send private message

freitasm:
koolguy:
Zeon: Disconnect the old server and add its IP to your operational server. A Server can have more than one IP address on the same interface. Do it all the time on Windows, on Linux I believe you would do it something like this:

sudo vi /etc/network/interfaces

auto eth0

eth0:1 ... bla bla bla

eth0:2 ... bla bla bla


Then restart with sudo /etc/init.d/networking restart 

Can't say I've ever done it though. 


Ok, I guess to change the IP addresses on the linux machines on Windows Server 2003 would be easier? If yes, how?
Thanks!!!


You have to change the address on the server itself... However, depending on the router you are using, you might have an option to reserve some IP addresses and assign those dynamically via HDCP. What it means is that you would leave the operational server as dynamic (no IP address) and let the router give it an IP. On your router it would have a table with reserved numbers where you could list MAC addresses (the physical LAN adapter unique address) and the IP it should get.

If your router doesn't have this feature then you will have to change it on the server itself. Turn off the old server so that the address is not being used and manually assign it to the operational server.

What's the operational server running? Is this the Linux Server you are talking about or the Windows Server? This isn't clear from your posts (or I missed it).

 


Thanks for the suggestions everyone! Actually I found out that eCabinet servers have an option to change the IP address under settings. So I don't need to change it using Linux commands. Simply changed the IP address of the original eCabinet (corrupted) to an available IP and changed the IP address of the backup eCabinet to the IP address that belonged to the original eCabinet.

Thanks again guys!

I have some other interesting questions quite interesting about Win Server 2003 and Exchange Server. I will post it under the topics:
 
1. "Using Win Server 2003, how to log off users remotely currently logged on domain (but not on terminal server)"

2. "How to view ms outlook inboxes of users on domain secretly"



Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.