Solved

IP Aliasing Question

Posted on 1997-02-15
1
296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

Question has a verified solution.

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

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

632 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