Solved

IP Aliasing Question

Posted on 1997-02-15
1
265 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 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

10 Experts available now in Live!

Get 1:1 Help Now