Complete.Org: Mailing Lists: Archives: linux-help: February 2001:
[linux-help] Re: lan on a machine...
Home

[linux-help] Re: lan on a machine...

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: linux-help@xxxxxxxxx
Subject: [linux-help] Re: lan on a machine...
From: Weqaar Ali Janjua <wxjanjua@xxxxxxxxxxx>
Date: Tue, 20 Feb 2001 13:25:49 -0600
Reply-to: linux-help@xxxxxxxxx

Hello,
   Well you dont needs scripts as such..just use ipchains, ifconfig and route 
for that. Just make three virtual interfaces excluding one actual physical 
interface with ifconfig...eth0:0, eth0:1, eth0:2, In this way u'll have 4 
interfaces including eth0 , now give them IP-addresses like eth0 is 
192.168.0.1 , eth0:0 is 192.168.0.2, eth0:1 192.168.1.1 and eth0:2 
192.168.1.2, In this way ur 2 interfaces belong to one network segment and the 
other two to 2 different networks...now use route to make proper routes 
between networks and interfaces
be sure to execute "echo 1 > /proc/sys/net/ipv4/ip_forward" in order to enable 
ip forwarding between interfaces...IF u want to route packets sourced some of 
ur new created interfaces as eth0:2 to some public IP then u have to 
masquerade over ur live interface..lemme know if this helps.....well if it 
does'nt help just send me the IP-Network addresses u want to route between 
I'll write u a script.
-------------------------------------
"A DREAM IS A GOAL WITH A DEADLINE"
Weqaar Ali Janjua
Bs.Computer Engineering
WSU
--------------------------------------

>===== Original Message From linux-help@xxxxxxxxx =====
>hi! i really need help in this matter: the question is, how cai i simulate
>a lan on a single unnetworked host running linux(red hat, to be precise)?
>meaning how exactly can i configure more than two interfaces and establish
>routing and traffic between these (say three) interfaces? hope someone
>will be able to provide me with the relevant commands/scripts etc. to be
>used for such a setup? this is for a project at college. thanks in
>advance.
>
>regards,
>Hareesh.
>
>
>
>
>-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
>visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi

-------------------
FOLLOW YOUR DREAMS!
WAJ
-------------------


-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]
  • [linux-help] Re: lan on a machine..., Weqaar Ali Janjua <=