Koozali.org: home of the SME Server

Subinterfaces

TL

Subinterfaces
« on: October 07, 2002, 09:18:00 PM »
We are in the process of converting our network into a private IP network using the 10.0.0.0 range.  We want an easy way to do this without having to convert the network all at once (around 600 computers total.)

I have never done this in linux before, but I can remember from my Cisco experience that you can configure subinterfaces to talk to 2 networks at the same time.  So you have one physical interface that has 2 different IPs, and two different subnet masks so it can talk to two at once.

I do know that this is possible using linux, but I'm not sure how to do it.   But since I will essiently have 2 networks that need to reach the internet at the same time, I have this requirement:

Network Address Translation needs to be working to route the 10.0.0.0 network.

The squidguard proxy needs to work on both interfaces, so that people from the old IP range as well as people from the new 10.0.0.0 range can use the proxy at the same time.

What do you think?

Andy

Re: Subinterfaces
« Reply #1 on: October 08, 2002, 11:54:01 AM »
Well, I can tell you how to add the new IP but I have no idea what baring this will have on the rest of the system. Sorry I cant be much more help than that.

ifconfig eth0:0 10.0.0.1 up

and hey presto.. look at the output from ifconfig and you should have a new interface.

Just remember utill you make the change to the new subnet you will have to do this at each reboot.

Bill Talcott

Re: Subinterfaces
« Reply #2 on: October 08, 2002, 08:29:35 PM »
http://www.chrouch.com/e-smith/extraip.html is a HowTo for templating the extra IP, but that doesn't affect any of the routing stuff. Perhaps just add the other subnet as a local network in Server Manager?

If you're using DHCP (which I can't imagine you AREN'T with 600 machines), you should just be able to change the IP range, and have the clients release and renew. That seems easier to me, though I'm sure you have your reasons.