Linux Router

Taking care of your Linux box.

Linux Router

Postby mfaisalkh » Tue Jun 22, 2004 2:24 pm

Dear Frendz,

How can i configure RH Linux 8.0 Machine as a Router.
Plz tell me about this.

I m waiting for ur replies.
mfaisalkh
Havaldaar
 
Posts: 124
Joined: Wed Mar 17, 2004 4:05 pm
Location: Karachi

Linux as a router

Postby asaf » Tue Jun 22, 2004 3:11 pm

Hello.
Install two network cards in your linux box.
Assign one ethernet interface an IP address from one of the networks. Assign the other interface an IP from the other network. The IP's must belong to two different networks.

Enable ip forwarding between the two interfaces by issuing
echo '1' > /proc/sys/net/ipv4/ip_forward

Commands you will use are:

ifconfig
route
ping

Good luck.
Asaf Maruf Ali
PING Systems
Network Security-Linux-Consulting
605, 6th Floor,
Clifton Centre, Block 5,
Clifton, Karachi-75600
Pakistan
Tel # 5872438, 5868275, 5833971-2
Fax # 5868927
asaf
Lance Naik
 
Posts: 41
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 33531649
Website: http://www.ping.com.pk
WLM: asaf_maruf@hotmail.com
Yahoo Messenger: asaf_maruf@yahoo.com
Location: Karachi

Re:

Postby LinuxFreaK » Wed Jun 23, 2004 1:37 am

Dear mfaisalkh,
Salam,

http://www.farsite.co.uk/tcp_ip_ppp_x.2 ... _Linux.htm

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby zoltronuga » Wed Jun 23, 2004 4:38 am

here is a good place to start

http://en.tldp.org/HOWTO/IP-Masquerade-HOWTO/

and

http://www.yolinux.com/TUTORIALS/LinuxT ... teway.html

and

http://www.linuxforum.com/linux_tutorials/6/1.php

I currently setting up a router+webserver using this three sites for reference.

just trying to help

zoltronuga
zoltronuga
Lance Naik
 
Posts: 16
Joined: Wed Aug 27, 2003 4:22 pm
Location: pt

Postby nasacis » Wed Jun 23, 2004 10:41 pm

Why do you want to use linux box as a router ?

Regards
Nafees Ahmed
Cell: +92.300.8653568
UAN: 041-111432432
Nexlinx Faisalabad
www.nexlinx.net.pk
nafees29@gmail.com
nasacis
Battalion Havaldaar Major
 
Posts: 269
Joined: Sat Dec 13, 2003 3:58 pm
ICQ: 22342780
Website: http://www.homepages.com.pk/nafeesahmed
WLM: nafees21
Yahoo Messenger: n_ahmad.rm
Location: Faisalabad


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron