1832304 Members
1873 Online
110041 Solutions
New Discussion

Re: network info reg

 
Chakravarthi
Trusted Contributor

network info reg

Hi, i have two networks with 2 linux servers in each, ex:

10.51.6.x and 10.51.16.x

i can ping and telnet everything works fine, now to access 10.51.6.141(linux server) from 10.51.16.141 i want to use a different ip like 10.232.114.141(dont ask me why). when i use this (10.232.114.141) it should map to 10.51.6.141 and send the packets, and get the response back. Is there any way this can be done. i heard that ip chains can be used.

Please suggest

i dont to create any more networks.

regards
chakri
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: network info reg

If you are going to do this with a firewall use iptables. ipchains is on the way out.

This can be done with ifconfig

ifconfig eth0:1 10.231.114.141 mask 255.255.255.0 up

If thats creating a network I can't help that. This assumes that eth0 is 10.51.6.141

To make it permanent, /etc/sysconfig/network-scripts

You also might want to take into account if sendmail.mc/sendmail.cf has any ip references it might become confused and fail. Just have to make sure any network changes are thoroughly tested. sendmail won't bite you until you cycle the daemon.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: network info reg

SEP came up with one solution, the other is to use NAT (Network Address Translation).

Whilst IPChains can do limited NAT, I'd suggest using IPTables, as it is far more controllable.

We will however require more descriptive details of what you are trying to do (i.e. trying to set up a gateway to another network, or something else etc.) so we can give you more accurate details.

Things like the distribution and it's version you are using will help us also.
One long-haired git at your service...