LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-29-2003, 05:13 PM   #1
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Rep: Reputation: 15
Question routes, default gateways, ip's internet connecting - Much Stress


I have a pc which I can connect to the net using wvdial (named brambles) and is set to be the gateway (standard dial up access on a 56 Modem) and a second pc (plum) connected to it from an ethernet card.

Both pc's run Redhat 8 and both can ping each other and call each other by hostname (set up in HOSTS --
have no clue how to do DNS or DHCP..... )

Could anyone explain what I need to do to access the net from my 2nd Redhat Box. I have the defalt route set to the Gateway PC on plum like so:-


My ip's are:-

Brambles: 192.168.0.2
Plum: 192.168.0.1


(had to chop a few bits from these to make em fit in here...)

[root@plum Max]$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Iface
192.168.0.0 0.0.0.0 255.255.255.0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 lo
0.0.0.0 192.168.0.2 0.0.0.0 eth0


I am sure something is pretty wrong here but cannot figure out what ...


netstat -nr for Brambles.

Destination Gateway Genmask Iface
192.168.0.0 0.0.0.0 255.255.255.0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 lo

route for Brambles

[root@brambles Max]# /sbin/route
Kernel IP routing table
Destination Gateway Genmask Iface
192.168.0.0 * 255.255.255.0 eth0
127.0.0.0 * 255.0.0.0 lo



Is the first line on both these tables correct also ? It does not look right but I cannot figure it out despite
numerous searches.

I'm almost there with this --- but ;-) just can't quite fire on all six cylinders --- someone help!
 
Old 09-29-2003, 05:39 PM   #2
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
I have two suggestions....

enable ip_forwarding:
echo "1" > /proc/sys/net/ipv4/ip_forward

and setup iptables to forward all traffic on the eth0 to ppp, ie, the etherenet adapter to the dialup modem....

also...it may be advised...(from my experience)... to, in addition supply plum with ur isp's dns server adresses.
 
Old 09-29-2003, 06:13 PM   #3
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
dont forget to masq.

Read my Sig Link, its for 'ethernet' adapters, but you can port it easily.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
multiple default gateways jireson Linux - Networking 3 02-04-2006 01:24 AM
Choosing the default network card for connecting to the internet MaestroC Linux - Networking 4 10-22-2005 07:47 PM
how are multiple default gateways handled? eantoranz Linux - Networking 9 06-01-2005 02:09 PM
Default Routes joel112 Linux - Networking 0 12-30-2004 11:13 AM
3 network cards and 2 default gateways Oderus Linux - Networking 2 10-20-2004 03:04 AM


All times are GMT -5. The time now is 02:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration