LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   What in happening to my route table??? (https://www.linuxquestions.org/questions/linux-networking-3/what-in-happening-to-my-route-table-220031/)

Julian_Thong 08-20-2004 02:21 AM

What in happening to my route table???
 
I am still having problems sharing my internet connection:newbie: :scratch: .

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:rolleyes:.

Julian_Thong 08-20-2004 02:27 AM

One Win XP pings 169.254.120.214, the other pings 169.254.138.80

posto 08-22-2004 01:16 PM

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


All times are GMT -5. The time now is 01:54 PM.