Allyl Isocyanate
Allyl Isocyanate

Reputation: 13626

Creating a fake internal network for virtual machines

I have a production application that consists of

 An app server VM1    - 192.168.0.4
 A database server DB - 192.168.0.5

VM1 connects to the DB using its IP address.

I want to mimic production VM1 on my development machine. So it should connect to the db using the same IP as on production, but reach my development machine DB instance.

Ideally, I would not have to hardcode my development machine IP to make this work. Any ideas?

Upvotes: 0

Views: 1394

Answers (2)

Ry-
Ry-

Reputation: 224942

Try rinetd, you can set up a redirect from the production IP address to your own.

Upvotes: 1

KevinDTimm
KevinDTimm

Reputation: 14376

1) It's a bad idea to mimic production IP addresses on test machines
2) In answer to your question, just use a configuration file to describe the IP address of the system to connect to

Upvotes: 2

Related Questions