Jump to content

need help badly getting my internet up


unruled
 Share

Recommended Posts

Edit: No, knoppix did it all for me, I didnt have to choose anything; I just let it boot up and then it was all working fine

 

I didnt use the command tool but browsed to the folder, is that okay aswell?

here is what I got for teh first one:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback

 

and teh second one:

 

ip_forward=no
spoofprotect=yes
syncookies=no

 

There are also some other folders in that directory and some files (ifstate and ifstate.hotplug and some directories: if-down.d ; if-post-down.d ; if-pre-up.d ; if-up.d )

Edited by unruled
Link to comment
Share on other sites

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

okay, I did that :)

 

root@ttyp0[knoppix]# ifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:10:DC:10:81:A1
         inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:5786 errors:0 dropped:0 overruns:0 frame:0
         TX packets:5635 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:6523849 (6.2 MiB)  TX bytes:972885 (950.0 KiB)
         Interrupt:21 Base address:0x5000

Edited by unruled
Link to comment
Share on other sites

OK looks good,

 

we will check the routing... which is easy...

type

route

(paste results back)

we should check the router out...

in konqueror you should be able to type

 

http://192.168.0.1

 

this should take you to your router config :D

 

then

 

we will find where the DCHP is set up...

cd /etc/networking (or similar should be 3 dirs)

now

grep DHCP *

(do this in any /etc/net* directory :D)

Link to comment
Share on other sites

Here is the route thing:

root@ttyp0[knoppix]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0

 

and yes, 192.168.0.1 takes me to my router configuration "page"

 

then I went using the console to etc/network (that was the only net* directory)

but when I type "grep DHCP" it skips down a line but doesn't spit out any text or information (and any commands I try to enter after that are not executed)

(btw thanks a lot so far :) )

Edited by unruled
Link to comment
Share on other sites

well it must be set somewhere but I don't have a knoppix to test...

 

I just wanna make certain before we try and do it in Mandrake...

 

now we know we can get to the rounter and we can if need be set the IP manually and add the default route...

 

Id be more comfy doing this if i could see where... just to be 100% certain...

In knoppix you should have a utility called

netcardconfig

 

I think we can try with this to run the DHCP config again and see if it then makes the correct files... since it does some magic config when booting up that is not really standard :D

 

try netcardconfig and make sure it still works .... choose DHCP

and eth0 .. then make usre everything still works....

 

ONLY if it doesn't....then this should dig you out of it... (a reboot on the Cd obviously will)

ifconfig eth0 192.168.0.4 
ifdown eth0
ifup eth0
route add default gw 192.168.0.1

(all as root)

Link to comment
Share on other sites

OK now repeat the

grep DHCP * (in the /etc/network directory)

 

confirm your IP is still the same (ifconfig eth0)

 

then we are ready to go back to mandrake....

then it becomes harder until we have internet back so I will need to give quite a few instructions :D

you will have to do em exactly ...

 

we will get rid of the dhcp completely then reinstall it..with the dhcp-client from the Mandrake control Centre (MCC) first remove software and search for dhcp..remove them all ... then add software and make sure you choose dhcp-client (not tmdns etc)

...

 

then you need to go to the network connections and choose LAN...

(Not DSL... )

this is a very annoying 'undocumented feature' in Mandrake and causes lots of problems... if you choose DSL then it can be a pain in the backside to get rid of it...

 

I think the firewall in 10.1 is still shorewall so the best thing to do is make sure its completely switched off....

 

shorewall stop

(as root)

Hopefully this should then be OK...

as root again

/etc/init.d/network restart restarts it but its better to use

ifdown eth0

ifup eth0

as you get more informaiton on the DHCP....

 

if it works and you have an IP then good

if not then try the CODE earlier

ifconfig eth0 192.168.0.4

route add default gw 192.168.0.1 eth0

Link to comment
Share on other sites

the "grep DHCP" still didn't do anything... :(

the IP address of my computer is still 192.168.0.4 according to the ifconfig eth0 (which makes sense because thats what I have in windows aswell)

 

Okay, Im gonna try and see if I can print all that out in knoppix now

 

EDIT: when choosing LAN as connection, should I just take "DHCP" again?

Edited by unruled
Link to comment
Share on other sites

okay, (Im now just on my moms computer cuz its way annoying to reboot everytime...)

anyway, after I tried all the things u mentioned, it still didn't work.

So I tried the

ifconfig eth0 192.168.0.4
route add default gw 192.168.0.1 eth0

 

after I did that in the tray an icon said the network was connected and if I typed 'route' it would list some things...but my internet still doesn't work... :(

 

Also, when u told me to do:

 ifdown eth0
ifup eth0

it said:

determining IP info eth0......."failed"

(with a long pause inbetween)

 

Another thing, when shutting down the 'shorewall'thing, it said:

WARNING: Disable_IPV6=yes in shorewall.conf but this system does not appear to have ip6 tables.

 

:help:

 

BTW: After I chose Lan - DHCP in the add connection wizard, it said "assign DHCP host name?"and I left the button selected (ticked) but I left the field blank... also in the next window it asks to make a hostname and I left it blank... and I didnt fill in a "zeroconf hostname"either....

is that okay? because I relly wouldnt know what to fill in

 

BTW: I can now ping myself but not any other machines (it says host unreachable)

Edited by unruled
Link to comment
Share on other sites

OK, I figure either DHCP isn't set up

OR

There is a config option for your network card that is interfering!

 

essentially it should work if it worked in knoppix...

the only problem is once you have run the wizards ..if they don't work they are reeally hard to clean up and if you don'thave an internet connection that makes it doubly hard!

 

what I wanna check is if your DNS resolution might not be working

that is if it can connect by IP number but not by domain name

 

acording to netcraft

216.239.37.99

is an IP for google....

 

first we do

ifconfig eth0 192.168.0.4

and

ifconfig eth0 up

 

now we

route add default gw 192.168.0.1 eth0

 

now we check

route

 

it should show just a gateway via the router....

now we test the connection to outside....

 

can your try

ping 216.239.37.99

Link to comment
Share on other sites

okay, I did all of that.

When I tried:

route add default gw 192,168.9.1 eth0

it said "file exists"; I assume because we already did that before.

 

Then when I did route I got:

 Destination      Gateway          Genmask
  192.168.0.0        *                  255.255.255.0
  default          192.168.0.1           0.0.0.0

(I just manually typed that here lol. There are also some things listed like "flag"but I dontknow if that is important)

 

When I tried to ping that IP address I get the same error as when I try to ping the router or other computers on my home network

 .... host unreachable

(something like that.)

Edited by unruled
Link to comment
Share on other sites

your making a syntax error somewhere....

this is why its such a pain when you don't have internet access....

 

route add default gw 192,168.9.1 eth0

could be you typed it back badly but there are 2 typos... (the comma and that is 0 not 1 i.e. 192.168.0.1)

 

what does an

 ifconfig eth0  

say now?

 

if it says its down or fdoesn't give an IP address then

 

ifconfig eth0 up

 

then ifconfig again!

it should be reporting an IP that you specified....

Link to comment
Share on other sites

sorry, I made a typo when I wrote it here, (Im not used to this keyboard)

anyway, Il run over to the other pc a sec and try it again anyway.

gimme 1 min

 

edit: okay, here is what it says (completely)

[root@localhost unruled]# ifconfig eth0
eth0   Link encap:ethernet HWaddr 00:10:DC:10:81:A1
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
Inet6 addr: fe80::210:dcff:fe10:81a1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes: 0 (0.0 b)
Interrupt:18 Base address 0x2000

 

that was annoying to type out... :wall:

Edited by unruled
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...