PDA

View Full Version : Harry I fixed it!!!



devashish
06-18-2007, 05:35 AM
My ISP uses a LAN, and a 24 Online client, apparently I can use Linc to login to the server to access the internet, but I am not able to ping the gateway. Any help will be appreciated.
Heres the info, b.t.w I have Knoppix HD-install


knoppix@Knoppix:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0D:87:11:82:5F
inet addr:10.1.77.141 Bcast:10.1.77.141 Mask:255.255.255.240
inet6 addr: fe80::20d:87ff:fe11:825f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:724 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:57117 (55.7 KiB) TX bytes:2134 (2.0 KiB)
Interrupt:21

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:772 (772.0 b) TX bytes:772 (772.0 b)

knoppix@Knoppix:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.77.128 0.0.0.0 255.255.255.240 U 0 0 0 eth0


knoppix@Knoppix:~$ netcardconfig
ifconfig eth0 10.1.77.141 netmask 255.255.255.240 broadcast 10.1.77.128 up
route add default gw 10.1.77.1
SIOCADDRT: Network is unreachable
auto lo eth0
Setting Nameserver in /etc/resolv.conf to 192.168.222.5
Done.

************************************************** ************************************************** ************************************************** ***
************************************************** ************************************************** ************************************************** ***

#route add -net 10.1.77.0 netmask 255.255.255.240 gw 10.1.77.141
#route add -net default gw 10.1.77.1


and lo and behold Im typing from knoppix !!!! Thank you darling!

Harry Kuhman
06-18-2007, 06:22 AM
I don't have answers for you, but I spotted some things in your post worth pointing out:


Heres the info, b.t.w I have Knoppix HD-install
Well, this may be your first problem. Did it work fine from disc? If so then your problem is defined. If not then get it working from disc and worry about getting the blasphmy working later.


knoppix@Knoppix:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0D:87:11:82:5F
inet addr:10.1.77.141 Bcast:10.1.77.141 Mask:255.255.255.240
This throws up some red flags for me. You're on a 10 network, which is a private network that can't be routed across the Internet. Unfortunately, we have no information about the real nature of the network. Is this a small home LAN? A work network? Something your ISP provides you? Is there a DHCP server on the network or do you assign the static addresses manually? But there's more: That mask indicates either a very very small network (14 computers max) or that the larger 10 network has been subdivided down to isolate a small group of machines. And the broacast address is just wrong. It is saying that all messages that your somputer should broadcast to the subnet should only go to itself. That's bad and will never work.



knoppix@Knoppix:~$ netcardconfig
ifconfig eth0 10.1.77.141 netmask 255.255.255.240 broadcast 10.1.77.128 up
Here the broadcast address is different, but still wrong. A broadcast address is always the highest address in the range assigned by the IP address and the mask, and as such it is always odd, it can never be even. It also can't be lower than the IP address.


Setting Nameserver in /etc/resolv.conf to 192.168.222.5
Being that the 10 network is a private non-routable network, and that all 192.168.xxx.xxx networks are private and non-routable, I don't see how the 10.x.x.x network could ever talk to a nameserver on a 192.168 network.


That's about all I have to offer. I don't support hard disk installs so I expect that this will be my last post. If this problem is limited to a hard disk install though and not running from disc then post back and I'll move it to the hdd forum where I expect it should be and you may find others who have fought with this before.

devashish
06-18-2007, 06:38 AM
I will try to set it up on the live cd boot to see how it does, the name server is 192.168.222.5, and thats the way it works on my windows xp on the same pc.
as per the broadcast address, it was generated automatically, i tried going to the highest address in the range assigned by the IP address and the mask on my windows PC manually and I could go upto 10.1.77.158 which b.t.w is even.
The nwtwork is something that the ISP provides me, its a huge collection of small LANS I guess.
And thanks a lot of the reply, ill be back after trying it on the cd install and changing the broadcast address tio 10.1.77.158, which is the highest value my windpws box would take.

Harry Kuhman
06-18-2007, 07:01 AM
i tried going to the highest address in the range assigned by the IP address and the mask on my windows PC manually and I could go upto 10.1.77.158 which b.t.w is even.
I don't know if the mask 255.255.255.240 is correct or not. Lets assume for the moment that it is. This mask is a mask that "masks out" 16 addresses from IP space. Given the IP 10.1.77.141 these addresses would be 10.1.77.128 to 10.1.77.143. Note that 158 isn't even in this range, so it can't be right if the mask is right. Also note that 10.1.77.143 is odd. The first and last address in the range are always reserved. The first is one of several ways to refer to "myself" (seems like a waste to me), and the highest address is the broadcast address (10.1.77.143). The other 14 in this case (10.1.77.129 to 10.1.77.142) are the legal real address in this range defined by this mask. If you want more details or to prove me wrong, do a Google search (but be advised, more than one site on the Internet is confused by all this too and posts bad information, check your sources).

Harry Kuhman
06-18-2007, 07:06 AM
I will try to set it up on the live cd boot to see how it does, the name server is 192.168.222.5, and thats the way it works on my windows xp on the same pc.
I don't see how this can happen on a 10 network. Does your Windows box have VMware or some other virtualization software installed on it? VMware creates it's own private 192.168 network (I'm guessing the other virtualization software does too) and this might be what you think you are seeing. A complete printout of ipconfig /all from the windows box may help sort out what is really going on.

devashish
06-18-2007, 07:47 AM
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\devashish>ipconfig -all

Windows IP Configuration

Host Name . . . . . . . . . . . . : Home-PC
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethe
rnet NIC
Physical Address. . . . . . . . . : 00-0D-87-11-82-5F
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.1.77.141
Subnet Mask . . . . . . . . . . . : 255.255.255.240
Default Gateway . . . . . . . . . : 10.1.77.1
DNS Servers . . . . . . . . . . . : 192.168.222.5

I tried the smae thing on the cd boot as well, and same problem repeats ifconfig, route -n and netcardconfig give exactly the same output as above, when I run wireshark to analyse the network it can detect packets being sent by the gateway 10.1.77.1 some eaigrp or something which says "hello" and lots of other packets from other 10.1.77.x ips such as "who has " etc [/img]

Harry Kuhman
06-18-2007, 08:02 AM
and lots of other packets from other 10.1.77.x ips such as "who has " etc
Well, I still see no way a 10 address is going to reach a 192.168 address under this setup. No broadcast address shown. Tell me, those packets from other 10.1.77.x addresses, who are they addresses to? (If they are from 10.1.77.x addresses rather than from MAC addresses then they should be using the broadcast address.) Good luck with wireshark, it may well be what you need to puzzle this out, it is the approach that I would take.

devashish
06-18-2007, 08:16 AM
The packets from wireshark are addressed to 10.1.77.255 and some are addressed to broadcast or 10.1.77.1, it hink my routing table is corrupt because it tires to use dhcp first can u tell me what is the correct way my routing table should look like from a broadcast address of 10.1.77.x? and how can i edit it to appear the same from the same it is in as show above?
Thanks a lot for taking interest in my dilemma

Harry Kuhman
06-18-2007, 08:33 AM
....addressed to 10.1.77.255 and some are addressed to broadcast or 10.1.77.1, ....
Strange addresses for a mask of 255.255.255.240. 10.1.77.255 could be the broadcast address if the mask was 255.255.255.0 or even if the mask was 255.255.255.128, but not 255.255.255.240. You would never broadcast to an address ending in .1 either, that always has to be a real address and not a broadcast address [the proof is left to the reader, but it's easy once you understand how IPs and masks work to produce a broadcast address. Hint: how many useable ip addresses would be in a subnet if it's broadcast address ended in .1 ?] (you might reply to a question sent from 10.1.77.1 asking about address resolution, but never broadcast to that address).

Don't know what your routing table should look like. Your network makes no sense to me.

devashish
06-18-2007, 03:02 PM
Well, I still see no way a 10 address is going to reach a 192.168 address under this setup. No broadcast address shown.

Well thats the way it works on my windows and I am typing this on the internet, b.t.w my alternate DNS server is 202.88.149.6.
Is there a way I can disable the IP routing in my linux? coz it doesn't seem to be enabled in my windows, say for instance if I try to ping www.google.com from my windows xp when the server is down I get replies from 10.1.77.1 which is the gateway. Also I tried Ubuntu its got the same prob, seems like I can recieve packets fine but theres an error sending packets

devashish
06-18-2007, 05:09 PM
I think this will help!!!!


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\devashish>route PRINT
================================================== =========================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 0d 87 11 82 5f ...... Realtek RTL8139 Family PCI Fast Ethernet NIC - P
acket Scheduler Miniport
================================================== =========================
================================================== =========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.1.77.1 10.1.77.141 20
10.1.77.128 255.255.255.240 10.1.77.141 10.1.77.141 20
10.1.77.141 255.255.255.255 127.0.0.1 127.0.0.1 20
10.255.255.255 255.255.255.255 10.1.77.141 10.1.77.141 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
224.0.0.0 240.0.0.0 10.1.77.141 10.1.77.141 20
255.255.255.255 255.255.255.255 10.1.77.141 10.1.77.141 1
Default Gateway: 10.1.77.1
================================================== =========================
Persistent Routes:
None

C:\Documents and Settings\devashish>