logo       

Re: How to assign 2 IPs: msg#00482

web.webmin.general

Subject: Re: How to assign 2 IPs

Caio James wrote:
>
> I need to assign 2 IP addresses to 1 NIC card. These are on different
> subnets and have different gateways (routers). Is this possible to do in
> webmin? I only found a place for one gateway. If not, can someone tell me
> how to do this in linux? rh7.2
>
As i understand you have two locigal networks on one wire.

To have 2 ip addresses on the same NIC is no problem, just use
eth0 and eth0:1 for instance, but on every OS i know,
you can only have ONE default gateway per machine.

i dont know actually where the limit is, but this construct works for us
at least for 128 networks on the same NIC. We use this as a virtual
location installation network with NAT, so that we can install a machine
using original addresses.

on commandline use
ifconfig eth0 <ip of net1> netmask <netmask of net1> broadcast
<broadcast of net1>
ifconfig eth0:1 <ip of net2> netmask <netmask of net2> broadcast
<broadcast of net2>
.
.
.
ifconfig eth0:127 <ip of net127> ....

but only ONE default gateway, so all other routing must be added with
separate
routes, or you must use OSPF, RIP or BGP to get "better" results.
look for the package zebra, it consist of a routing daemon which is
capable to
use RIP and OSPF.

Best Regards


> Thanks,
>
> Caio
>
> [---------------------------------------------------]
> Caio James
> PHONE: (888) 498-8234 Technology Consultant
> FAX: (888) 498-8233 Intric
> WEB: http://intric.com 704 Natoma St
> EMAIL: caio@xxxxxxxxxx Folsom, CA 95630
> [---------------------------------------------------]
>
> -------------------------------------------------------
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> -
> Forwarded by the Webmin mailing list at webadmin-list@xxxxxxxxxxxxxxxxxxxxx
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list

--
Robert Bossecker | Fresenius AG, Bad Homburg, Germany
UNIX-Systemmanager| Phone: +49 6172 608 7677
| Fax : +49 6172 608 7858
| Email: Robert.Bossecker@xxxxxxxxxxxx

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise