Solved

IP Aliasing Question

Posted on 1997-02-15
1
284 Views
Last Modified: 2010-05-18
I've got several machines with addresses on a class C network and several machines on a subnet of a another class C network (29 bit netmask, 6 useful addresses).  

The subnetted machines have addresses that were assigned by my ISP.  I'd like to run all machines on the same ethernet with a Linux box having one address in each address space in order to route packets between the two.

I am running Redhat 4.1.

Will IP aliasing do what I need?

The two networks are 198.183.251.000/24 and 205.253.105.80/29.

Can two networks exist on the same wire with different netmasks?

Will I need to compile a new kernel?

What else would I need to do to achieve the desired effect.
0
Comment
Question by:Robbins012597
1 Comment
 

Accepted Solution

by:
knowledge021097 earned 100 total points
ID: 1584172
You can do what you want (although it is more normal to insert two cards in the Linux box and use separate physical networks). You need IP forwarding and IP aliasing on in the kernel.

Set up the Linux box as if it were only on one network, and get that working (let's say 198.183.251.1).  There's nothing special you need to do to run two  independent networks on the same wire.

Now, read the IP alias mini-HOWTO (www.ecsnet.com).  Basically, you use ifconfig on eth0:0 to set up the alias, eg:
      ifconfig eth0:0 205.253.105.81 netmask 205.253.102.248
Then add a route so it knows to send packets to the right network:
      route add -net <see "man route">

Test that you can ping machines on both networks, then make sure
every OTHER machine has the linux box as a default route (or just for the other network, if your situation is more complex).
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question