Solved

IP Aliasing Question

Posted on 1997-02-15
1
288 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

749 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