l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
April 21: Google Glass
Next Installfest:
TBD
Latest News:
Mar. 18: Google Glass at LUGOD's April meeting
Page last updated:
2002 May 03 12:00

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Multiple IPs on one system
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Multiple IPs on one system



This looks like the path I'll try. I'll try Ryan's
suggestion when I set up my Linux based dhcp server.
Right now I have one of those hardware firewall /
routers.

Thanks Tom & Ryan,
Marc

--- Tom <tlburnett@ucdavis.edu> wrote:
> It's IP aliasing.  It will be eth0 and eth0:1
> A little perl for a loop, but really what you want
> is the ifconfig line.
> I don't think you need the route line because it
> already knows how to route 
> the subnet.
> 
> #!/usr/bin/perl -w
> use strict;
> my($n,$ip) = (1,3);
> while($ip <= 102){
>         system("ifconfig eth0:$n 24.47.198.$ip
> broadcast 24.47.198.255 
> netmask 255.255.255.0");
>         system("route add -host 24.47.198.$ip
> eth0:$n");
>         $n++; $ip++;
> }
> 
> The Mini-HOWTO:
> http://www.tldp.org/HOWTO/mini/IP-Alias/
> 
> Hope that helps,
> -Tom
> tlburnett@ucdavis.edu
> 
> On Friday 03 May 2002 08:48, you wrote:
> > Here's a challenging question (for me at least),
> >
> > I want to have server with two IP's on the same
> > subnet. So far, my attemps with two NIC's don't
> work.
> > To get any kind of connectivity, each NIC needs to
> > talk to a differnt subnet.
> >
> > What I want to do it this:
> >
> > eth0 - dhcp to get my name isp's name servers from
> the
> > firewall/dhcp server. No server service requests
> > (Samba, NFS, or FTP) allowed in.
> >
> > eth1 - in the same subnet, but a fixed address
> outside
> > the dhcp range with server services running
> against
> > it.
> >
> > The idea was to set up a mirror of Redhat's
> updates
> > files and update my systems locally with out
> having to
> > pay for multiple RH network memberships. I plan to
> > keep three to four systems updated this way. Each
> will
> > have a different configuration (Server, laptop,
> > workstation, etc.).
> >
> > Questions:
> >
> > 1. Is this possible?
> >
> > 2. Would it be easier to just learn how to use
> > iptables?
> >
> > Thanks in advance,
> > Marc
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Health - your guide to health and wellness
> > http://health.yahoo.com
> > _______________________________________________
> > vox-tech mailing list
> > vox-tech@lists.lugod.org
> > http://lists.lugod.org/mailman/listinfo/vox-tech
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.