LinuxQuestions.org
Review your favorite Linux distribution.
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 01-01-2004, 07:20 PM   #1
TheSwine
Member
 
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Rep: Reputation: 15
Newbie needs help to configure router


I'm trying to make my linux box to work with my new Netgear DG834, but the more I try, the less I understand what is going on... (Netgear are asking 1.99$ per minute for Linux Support , so I though I'll try here first.)

My Debian is installed on a dual-boot laptop, and with Win98 everything works just fine.

My router is configured as DHCP server. It cannot see the linux box (i.e. it does not show it in the 'attached devices list'), but it does assign an IP for it (192.168.0.2).

I can ping the router and other LAN computers, but do not seem to be able to ping anything outside my LAN. Also, I cannot access my router (192.168.0.1), let alone access the internet.

I'm sure I'm missing something, but haven't got a clue what...
I hope one of you can help.
Thanks in advance.

Here is some stuff that might help:

Code:
Gogol:/# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:D0:59:1C:6A:8E
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:823 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:52115 (50.8 KiB)  TX bytes:11478 (11.2 KiB)
          Interrupt:11

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:210 errors:0 dropped:0 overruns:0 frame:0
          TX packets:210 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15117 (14.7 KiB)  TX bytes:15117 (14.7 KiB)

sl0       Link encap:Serial Line IP
          inet addr:192.168.0.1  P-t-P:192.168.0.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  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:10
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)





Gogol:/etc/network# cat interfaces
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo eth0

iface lo inet loopback

iface eth0 inet dhcp
        hostname 192.168.0.1


### END OF DEBCONF AREA.  PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.





Gogol:/etc# cat resolv.conf
search
nameserver 192.168.0.1





Gogol:/# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.2     0.0.0.0         255.255.255.255 UH    1      0        0 sl0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
0.0.0.0         0.0.0.0         0.0.0.0         U     1      0        0 sl0
(Please note that for Win98 I didn't had to specify any DNS names, these are configured in the router, which I think act as a DNS server simply by forwarding DNS request to the actual DNSs)
 
Old 01-01-2004, 11:19 PM   #2
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 31
try setting your gateway for 192.168.0.1
 
Old 01-01-2004, 11:27 PM   #3
TheSwine
Member
 
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
try setting your gateway for 192.168.0.1
How, where and for which destination?
 
Old 01-02-2004, 06:28 AM   #4
Bill Gates 666
Member
 
Registered: Dec 2003
Location: Cambridge
Distribution: Arch
Posts: 66

Rep: Reputation: 22
Hi ya,

Try looking in the directory /etc/sysconfig/network-scripts

for a file ifcfg-eth0.

Maybe enlighten us with what is in that file? Poke around in there and if you find a file ifcfg-slip maybe that could be of use as well?

(BTW I am using an MDK distro but I think that directory is fairly standard location I think/hope :-)

I am not sure why you have that SLIP encapsulation coming up there between you and the router. Very weird!! Don't you want TCP/IP over ethernet as the protocol to your Netgear router? You could always trying turning it off (i.e. interface <slo>) with <ifconfig> and see if that helps!!

Sorry I can't help more. Could do with some more information from your <network-scripts> directory!!

BTW your default gateway is via 192.168.0.1 (i.e. your router). Try using <ip route> instead of <route> (which is now depreciated anyway) its output is readable by human beings!!
 
Old 01-02-2004, 07:24 AM   #5
jago25_98
Member
 
Registered: Jun 2001
Posts: 278

Rep: Reputation: 30
Quote:
Originally posted by TheSwine
How, where and for which destination?
to do it temporarily ->

"route del default"

&&

"route add default gw 192.168.0.1"
 
Old 01-02-2004, 09:45 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,759

Rep: Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719
Disable slip and you should be able to access the router.
 
Old 01-02-2004, 02:16 PM   #7
TheSwine
Member
 
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Original Poster
Rep: Reputation: 15
Bill Gates 666:
There is no /etc/sysconfig/network-scripts under Debian, /etc/network/interfaces is the Debian substitute...

I don't know what that Slip is doing there, nor where did it come from.

ip route doesn't seem to work for me - bash: ip: command not found

jago25_98:
What you suggested with route didn't do the trick.

michaelk:
How do I disable slip?

Everyone:
I can't seem to get /etc/init.d/networking restart to work. (networking is in the folder but: bash: networking: command not found) does anyone know anything about it?

Thanks for your time guys...
 
Old 01-02-2004, 02:32 PM   #8
TheSwine
Member
 
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Original Poster
Rep: Reputation: 15
An update:

I've tried ifconfig sl0 down, but still can't access my router...
 
Old 01-02-2004, 07:07 PM   #9
TheSwine
Member
 
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Original Poster
Rep: Reputation: 15
Problem half sorted...

I've installed DHCP3-client

reboot
ifconfig sl0 down
ifconfig eth0 down
dhcilent3
ifconfig sl0 down

And everything seems to work: Can access the router, ping linuxquestions.org, browse the internet etc.

Few more problems though:

* I still need to do this manually after every reboot.

* dhclient3 creates eth0,eth1,lo and sl0 - I don't understand why do I get eth0 and eth1 when I only got 1 NIC card (eepro100)

* Still don't know how to get rid of sl0

Can anyone help?
Thanks.

Last edited by TheSwine; 01-02-2004 at 07:08 PM.
 
Old 01-02-2004, 07:50 PM   #10
TheSwine
Member
 
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Original Poster
Rep: Reputation: 15
Well... To get rid of sl0 (SLIP):

dpkg --purge diald

(see http://www.faqchest.com/linux/DEBIAN...313_20713.html for more information)

And it seems like everything is working now.

Thank you all!
 
  


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
newbie configure speedtouch router help turntonight Mandriva 2 11-24-2005 12:20 PM
how to configure router? maharaskal Linux - Newbie 2 05-26-2005 12:15 PM
how to configure router penny21 Linux - Hardware 5 04-06-2004 07:10 PM
configure my router alaios Linux - Networking 4 03-18-2004 12:20 PM
How do you configure a router? Travis86 Linux - Networking 10 01-20-2003 09:25 PM


All times are GMT -5. The time now is 04:55 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