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

[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

   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 , eth0:0 is, eth0:1 and eth0:2, In this way ur 2 interfaces belong to one network segment and the 
other two to 2 different 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.
Weqaar Ali Janjua
Bs.Computer Engineering

>===== 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
>-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,


-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,

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