Solved

IP Aliasing Question

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

New! My Passport Wireless Pro Wi-Fi Mobile Storage

Portable wireless storage to offload, edit, and stream anywhere.

High-capacity, wireless mobile storage designed to accompany professional photographers and videographers in the field to easily offload, edit and stream captured photos and high-definition videos.

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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now