LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-20-2004, 02:21 AM   #1
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Rep: Reputation: 15
What in happening to my route table???


I am still having problems sharing my internet connection .

I deleted and added routes to my route table. When i type route -n, it shows the following information.

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.5     0.0.0.0         255.255.255.255 UH    0      0        0 eth1
203.218.41.254  0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.1.7     0.0.0.0         255.255.255.255 UH    0      0        0 eth2
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         203.218.41.254  0.0.0.0         UG    0      0        0 ppp0
Internet sharing doesn't work.

After adding and deleting routes, i typed 'service network restart'. After restarting, i typed route -n again and this showed up.

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
203.218.41.254  0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth2
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth2
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         203.218.41.254  0.0.0.0         UG    0      0        0 ppp0
What's going on? Am i doing it correctly?

I am trying to share my internet with 2 Win XPs using Redhat 9.0 as gateway. Both Win XPs are connected to the Redhat 9.0 directly using cross cables. Win XP is connected to one lan card (eth2), the other one is connected to another Lan Card (eth2).

Here is my Ifconfig

Code:
eth0      Link encap:Ethernet  HWaddr 00:0A:CD:0A:50:51
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:973 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1074 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:455781 (445.0 Kb)  TX bytes:149404 (145.9 Kb)
          Interrupt:11 Base address:0x3000
 
eth1      Link encap:Ethernet  HWaddr 00:0A:CD:0A:50:72
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:960 (960.0 b)
          Interrupt:10 Base address:0x5000
 
eth2      Link encap:Ethernet  HWaddr 00:0A:CD:08:64:0F
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:960 (960.0 b)
          Interrupt:9 Base address:0x7000
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:79509 errors:0 dropped:0 overruns:0 frame:0
          TX packets:79509 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5429120 (5.1 Mb)  TX bytes:5429120 (5.1 Mb)
 
ppp0      Link encap:Point-to-Point Protocol
          inet addr:203.218.40.203  P-t-P:203.218.41.254  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:250 errors:0 dropped:0 overruns:0 frame:0
          TX packets:271 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:118204 (115.4 Kb)  TX bytes:31723 (30.9 Kb)
I have posted this problem a few times on this forum already and alot of people tried to help me out. I thank them dearly, but it dind't really work out.
 
Old 08-20-2004, 02:27 AM   #2
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
One Win XP pings 169.254.120.214, the other pings 169.254.138.80
 
Old 08-22-2004, 01:16 PM   #3
posto
LQ Newbie
 
Registered: Jul 2004
Location: RO, Bucharest
Distribution: Ubuntu
Posts: 12

Rep: Reputation: 0
i believe you want to read this:
http://www.netfilter.org/documentati...T-HOWTO-6.html
 
  


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
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
route table problem fdr Linux - Networking 2 02-07-2004 07:33 PM
route table prob fdr Linux - Wireless Networking 0 02-03-2004 05:41 AM
Route table christianj Linux - Networking 3 11-17-2002 08:24 AM
Modify route table juno Linux - General 2 10-05-2002 08:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:25 AM.

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