LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-09-2007, 03:21 PM   #1
mac1234mac
Member
 
Registered: Sep 2005
Posts: 183

Rep: Reputation: 30
problems with dividing internet access with D-Link DI-604


Hello

I'm trying, without success, divide internet access to three boxes.
I've bought broadband router D-Link DI-604 and I want first to gain internet
access with Linux box (via router). I can log into the router and change settings but when I try to open some web page nothing happens.
I've read in the manual that perhaps(???) I should put DSL modem between router and internet signal. Is that the case?.

I have permanent internet access but I don't exacly know what kind of signal it is. And what the configuration of my service provider is. Is this important in my case?.

I tried different settings, with and without MAC cloning and with DHCP turned on and off. What else can I do?.

I choose static WAN settings. And entered the same values as I have in my box. I set LAN both with DHCP and without it.

I may add that I created router out of my Linux box, but I have to keep Linux box turned on if I want to use internet on the other box and I have problems with enhancing this set-up to the third one.
But it's working unlike this router. Any advice would be very much useful.

Cheers
 
Old 01-09-2007, 03:49 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Nat is turned off on the router or DNS is turned off on the router.
your setup should be something like this



PHONE JACK --phone-cable--->DSLMODEM=====ethernet=cable===>ROUTER

then have the boxes connect to the router. Remember you need dhcp to be setup on the linux boxes to get a connection out. Or you need to setup static on the router.
 
Old 01-09-2007, 03:59 PM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
These things are usually not too difficut to set up. It does not matter if you select DHCP, and allow the router to assign the IP addresses or you select static. Either will work. There are reasons to go static if you use Samba, and possibly other software, but for just internet access for three boxes, it does not matter which you pick.

You mentioned a DSL modem. If you have DSL service, then you will need a DSL modem. Do you have one? Yes, it goes between the router and the DSL phone line connection.

Usually you ISP will tell you if you need PPPoE; Point to Point Protocol Over Ethernet. That can be provided on the systems, or by some routers. Check your router documentation, it will tell you if the router can do PPPoE. Most ISP's require a User and Password. How are you providing that?

I can store that in my router, so any of my machines can access the internet without the user logging in. Look in the router doc.

DNS - most router will get the DNS IP addresses from the ISP and pass them onto the using systems. Check the doc again.

You know how to acces the setup screens. Most of what I have mentioned you should be able to find by browsing the router.

To get going, my suggestion would be select DHCP. Look in the router for the lan address on your side. Since this router does NAT, that lan address will be something like 192.168.0.x and a mask of 255.255.255.0. Set linux for dhcp and give it a default route to your router; probably 192.168.0.1 ( check this in router setup).

Connect your system, boot, open a konsole and run the command /sbin/ifconfig. If DHCP is working, look for an IP address on line two of the output. Here is what it will look like:

Code:
/sbin/ifconfig
ath0      Link encap:Ethernet  HWaddr 00:11:95:4B:F8:28
          inet addr:192.168.1.13  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:95ff:fe4b:f828/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3067 errors:59355 dropped:0 overruns:0 frame:59355
          TX packets:2499 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199
          RX bytes:1885988 (1.7 MiB)  TX bytes:376382 (367.5 KiB)
          Interrupt:10 Memory:cc540000-cc550000
Note line 2 has the IP address. If that works, then if the internet won't connect, the issue is likly DNS or default route. Note, I did this on a machine with a wireless lan card, so the name is ath0. If it is a wored lan card then it is probably eth0. It is just a name.

Have a look at it and post your questions, if I have not been clear enough.
 
Old 01-09-2007, 04:32 PM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
I happen to have DI-604..
Login to router. Go Tools -> Misc. In 'Ping Test' field enter 'yahoo.com' (they enable ping reply on the server).
Is it successful?
Did you try running wizard?
 
Old 01-10-2007, 08:54 AM   #5
mac1234mac
Member
 
Registered: Sep 2005
Posts: 183

Original Poster
Rep: Reputation: 30
Quote:
PHONE JACK --phone-cable--->DSLMODEM=====ethernet=cable===>ROUTER
All I've got is end of a cable and particulars from my provider. It's something like this: IP address: 10.0.9.53
subnet mask: 255.255.255.0
gateway: 10.0.9.1
and DNS address
What is the setup of my provider I simply don't know. I know only that signal is going through at least one router before it reaches my box. So do I, or don't need DSL modem?.

This is what I entered into router (I chose static IP address)

Quote:
Check your router documentation, it will tell you if the router can do PPPoE. Most ISP's require a User and Password. How are you providing that?
Yes, my router enables me to use PPPoE but it I haven't completely idea about any PPPoE accounts. Internet is working without any accounts. Maybe ISP has got something like that but I don't know anything about it.

Yes I tried using wizard, but without any success.

The problem may be that I have to net adapters in my Linux box but I turn off one of them - eth1 (the one which goes to another box) and set eth0 to DHCP. But maybe there lays the problem.

Last edited by mac1234mac; 01-10-2007 at 08:56 AM.
 
Old 01-10-2007, 09:43 AM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
What is the setup of my provider I simply don't know. I know only that signal is going through at least one router before it reaches my box. So do I, or don't need DSL modem?.
What type of cable connection do your have? DSL modems are for Digital Subscriber Lines, this is a service that runs over regular telephone lines. My house hold telephone plugs into the same line. The voice part is isolated from the DSL signal by a filter at each point I connect a hand set.

The question we need answered, is this the type of service you have? If not we need to understand what it is. For a DSL line you need the DSL modem.

Code:
10.0.9.53
subnet mask: 255.255.255.0
gateway: 10.0.9.1
and DNS address
These addresses are private class A IP addresses. Private implies they can not be routed over the internet. Your router has a function called NAT ( Network Address Translation ). I checked D-links web site for the features. This function will translate the IP addresses on your lan side of the router to a valid routeable IP address on the ISP's side of the router.

Understand a router has a minimum of two sides, the one side are the four ports you can plug local systems into. The other side connects to your ISP, via a DSL modem, or cable or what ever, we need to determine.
The IP address on the ISP side can be static, ( you configure it locally via a web browser ) or dynamic, using DHCP. Either can work, and your ISP has to know what is required for their network. I would expect they should have a support. Most of them can be reached by phone, or the internet. Since your internet connection is the problem, looks like you need to phone them.

Please find out from your ISP about the DSL modem, if you need it or not. In theory, it is possible to connect your router, over a lan to another router provided by an ISP without a DSL modem. You are limited by lan lengths here, the distance is measured in feet, not miles.

While you are talking to them find out about how to set up user and password etc. I have never seen one that didn't require it. Without this, managing their network would be very difficult.
 
Old 01-10-2007, 09:58 AM   #7
mac1234mac
Member
 
Registered: Sep 2005
Posts: 183

Original Poster
Rep: Reputation: 30
Quote:
The question we need answered, is this the type of service you have? If not we need to understand what it is. For a DSL line you need the DSL modem.
But my router has option 'Static IP address' so I guess (but I may be wrong) that all I need is this set of numbers (IP address, net mask etc.).

Unfortunately my ISP would me rather buy four internet connections instead of sharing one. 4 times more money.



This is what I found out, for me it's really strange. When I ping
router on the way to ISP (not my router) I get connection (10.0.9.12). But when I try to ping gateway 10.0.9.1 nothing happens. What's going on?.

This is what ifconfig showed up:

eth0 Link encap:Ethernet HWaddr 00:0E:A6:11:4D:E5
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20e:a6ff:fe11:4de5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:454 errors:0 dropped:0 overruns:0 frame:0
TX packets:1965 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:84519 (82.5 KiB) TX bytes:168685 (164.7 KiB)
Interrupt:11 Base address:0x8000

I disabled DHCP and set static client to 192.168.0.100 with MAC cloning. I also set static WAN IP addresses provided by ISP.

So conclusion is that I can connect outside my router but cannot connect to the gateway. 'Traceroute' shows the same.

Last edited by mac1234mac; 01-10-2007 at 10:14 AM.
 
Old 01-10-2007, 03:29 PM   #8
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
So do you ping from router or from your box?

You can do the following:
On WAN settings page choose static IP and enter everything ISP gave you in corresponding fields. On LAN settings page leave everything as 192.168.0.1 with mask 255.255.255.0 (it is so now, I guess). You can go to DHCP settings page and enable DHCP (one radio button, no more actions, except on client box, where you need to turn DHCP on) or make sure manually (via route command, '/sbin/route -n add default gw 192.168.0.1') that gateway is set on client.
 
Old 01-11-2007, 08:58 AM   #9
mac1234mac
Member
 
Registered: Sep 2005
Posts: 183

Original Poster
Rep: Reputation: 30
I pinged only from my box. I tried to ping yahoo.com as you suggested from my router but it didn't work. But if I can ping from my box I can supposedly can ping from the router?. I'll try to ping 10.0.9.12 from my router as well. So far the only address outside the router I can reach is this 10.0.9.12 which is certainly not my address. I suspect this is address of ISP's router. But when it comes to gateway it doesn't work. I'm writing this because if I turn on the router, so far, I don't have internet access. I'll do as you suggest in Your last post.
 
Old 01-11-2007, 09:42 AM   #10
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
After reading all the posts again, I think you may need to define a static route in your router. It should point to the ISP's 10.0.9.12 network. From what I have read this is the IP address on your ISP's router you connect to. This should also be a gateway.

So it would look like this :

192.168.0.100 ( your system ) Default route 192.168.1.1
192.168.0.1 ( your router your side ) Static route 10.0.9.12
10.0.9.53 ( your router ISP side )
10.0.9.12 ( your side of the ISP router you connect to ) This router does the NAT.
 
Old 01-11-2007, 10:07 AM   #11
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 358

Rep: Reputation: 35
mac1234mac

Where are you located? Who is your broadband provider?
 
Old 01-11-2007, 10:55 AM   #12
mac1234mac
Member
 
Registered: Sep 2005
Posts: 183

Original Poster
Rep: Reputation: 30
I'm from Poland. As far as I know my provider has phone connection.
He has set up, as we call it here - block network (I live in a block house), provided routers and supplies internet to at least 100 computers.

Well, to tell you the truth, I'm not sure that 10.0.9.12 is my ISP's router. It just showed up when I run Ethereal and it's certainly outside my box or my router. It may be some other box. But when the net was down due to ISP's router's breakdown (they told me that one of their routers was down (lightning discharge or something)) I could connect only to this one addres (ping it to be precise) and could not to the gateway, so I think that is their another router on the way to the gateway, but I may be wrong. How can I check it?. 'Traceroute' to the gateway doesn't show it.

Last edited by mac1234mac; 01-11-2007 at 10:58 AM.
 
Old 01-11-2007, 11:23 AM   #13
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 358

Rep: Reputation: 35
Ok. Just to make sure I understand, you live in a block (of flats?), someone in the block has an internet connection and has wired the block from his connection through a router.

Hou need to ask him:

1 Does his router use DHCP?

2 If yes, then you can set your D-Link router to use DHCP to get an IP address. If no, then you can ask him what is your IP. Also that you can connect to the internet through his router. He may have a firewall. You will also need the IP of the internet gateway on his router.

3 Then you must make sure that the IP sub-network for your computers is different to the sub-net-work for the building. If the building is using 10.0.x.x, then you must use 192.168.x.x.

4 The D-Link router has a DHCP server setting to put in the range of addresses you want to use. The router will normally use 192.168.1.1, and you set the DHCP range to be 192.168.1.2 to 192.168.1.100 or some number big enough.

5 I would reset the D-Link router back to the factory settings and start again. Whenever I have problems like this there comes a time when you can't remember what you did last.

6 Once you have the settings, make sure you can see the router OK. If you can access the set-up pages via http://192.168.1.1, then you are OK. Then ping the IP given to you for the building network router. Then ping the gateway.
 
Old 01-11-2007, 11:35 AM   #14
luiz1
LQ Newbie
 
Registered: Jun 2005
Location: San DIego
Distribution: SUSE
Posts: 10
Blog Entries: 2

Rep: Reputation: 0
Have you tried a firmware update??
 
Old 01-11-2007, 01:14 PM   #15
mac1234mac
Member
 
Registered: Sep 2005
Posts: 183

Original Poster
Rep: Reputation: 30
Quote:
Ok. Just to make sure I understand, you live in a block (of flats?), someone in the block has an internet connection and has wired the block from his connection through a router.
Well, yes, but they take money for it and actually the company is not in my block but a few blocks away. They just dug holes in the ground and 'clasped' clients in routers and these routers connect with another router and at the end of it is, I guess some phone line maybe ADSL. I know they connect to our state telephony company, it's called TPSA. But I just wanted to explain how things are, it's not the most important thing to know whole framework of the net. Important fact from my point of view is that I have to type this sequence of addresses into net settings of my distro and it works, unlike this router. I think I will pay them visit after all.
 
  


Reply



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
Can't SSH in past router (D-Link DI-604) Chuk Linux - Networking 15 12-17-2007 12:42 AM
Some suggestions about dividing internet access to three boxes? mac1234mac Linux - Networking 2 01-06-2007 03:23 PM
home networking with D-Link DI-604 router patitoconejita Linux - Networking 11 08-04-2006 10:33 PM
D-Link DI-604 or SMC 7004VBR? cnsdjn Linux - Networking 1 08-08-2005 08:21 PM
D-Link 604 router w/ DHCP chbin Linux - Networking 4 03-26-2005 11:37 PM

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

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