LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LinuxQuestions.org Member Intro
User Name
Password
LinuxQuestions.org Member Intro New to LinuxQuestions.org? Been a long time member but never made a post? Introduce yourself here.

Notices


Reply
  Search this Thread
Old 05-06-2009, 02:27 AM   #1
iofn
LQ Newbie
 
Registered: Nov 2005
Location: Dhaka
Distribution: RedHat
Posts: 1

Rep: Reputation: 0
routing in linux


I got the following ip block from my ISP.

202.51.177.0/29 (Here 202.51.177.1 is my gateway which is located in my ISP's Router, My useable ip is 202.51.177.2 - 202.51.177.6)

I have a linux pc with 2 NIC. I have putted 202.51.177.2/255.255.255.252 in my eth0 which is connected to my ISP And 202.51.177.5/255.255.255.252 in my eth1. My PC is directly connected to eth1. My pc ip is 202.51.177.6/255.255.255.252 and gateway is 202.51.177.5

I can't go to internet. What I have to do in linux box. ip_forward=1 is already enabled. Plz help
 
Old 05-06-2009, 03:34 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
It is possible that your ISP router does not have a route to 202.51.177.5/255.255.255.252 that is why the traffic is not coming back.
 
Old 05-06-2009, 04:38 AM   #3
arisnb
LQ Newbie
 
Registered: Feb 2009
Distribution: debian, mandriva
Posts: 6
Blog Entries: 2

Rep: Reputation: 1
I (Tukang Nggame) have idea. Your linux pc use network 202.51.177.0/29.


(202.51.177.1/29)ISP-----(202.51.177.2/29 gw 202.51.177.1)-eth0-Your Linux PC-eth1-(192.168.0.1/24)--Client PC (192.168.0.xxx gw 192.168.0.1)

ISP-----------------eth0--YOUR Linux PC--eth1---------Client PC

In Your Linux PC use NAT !

Last edited by arisnb; 05-15-2009 at 07:26 AM.
 
Old 05-06-2009, 06:05 AM   #4
Shamgeer
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
Hi am Networking and linux newbie

Can some one help me to understand,

why do we need to add route in our system or gateway to connect to different network???

what is the concept of "add route -p" command

please help
 
Old 05-15-2009, 07:17 AM   #5
arisnb
LQ Newbie
 
Registered: Feb 2009
Distribution: debian, mandriva
Posts: 6
Blog Entries: 2

Rep: Reputation: 1
Simple network :
Please read this artcle http://www.linuxquestions.org/blog/a...g-nggame-1960/
-------------------------------------------------------
Routing :
You can add in /etc/network/interfaces

up /sbin/route add -net [network] netmask [netmask] gw [gateway]

exp

up /sbin/route add -net 205.164.219.150 netmask 255.255.255.0 gw 205.164.219.1

Last edited by arisnb; 05-15-2009 at 07:22 AM.
 
  


Reply

Tags
linux, network, routing, shorewall



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pre routing , post routing and qos support msridhar87 Linux - Networking 0 02-13-2009 05:37 AM
Routing In Linux bil_nil Linux - Networking 1 10-01-2005 08:25 PM
Routing on Linux kanwar_rajan Linux - Networking 2 10-11-2004 05:55 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
Routing with Linux? yes or no? davebarnes Linux - Networking 9 10-23-2002 12:01 PM

LinuxQuestions.org > Forums > LinuxQuestions.org > LinuxQuestions.org Member Intro

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration