LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setting up a local network (https://www.linuxquestions.org/questions/linux-networking-3/setting-up-a-local-network-80484/)

guyd 08-09-2003 04:50 PM

Setting up a local network
 
I have DSL which is routed through a D-Link DI-704 Broadband Router. Connected to that router is a network printer, a desktop computer and a laptop computer. I have Mandrake Linux 9.1 loaded on my laptop.

I have been unsuccessful in getting my laptop configured to connect to the internet when the caat 5 cable is connected to the router. When I connect the DSL directly from the modem to the laptop, I can connect without any problem, but when I place the router between the moden and the laptop, I cannot get an internet connection.

The DL-704 Gateway (I believe, since this is what the manual says) is 192.168.0.1.

The IP for my DSL is dynamic rather than static and at the moment is 151.199.154.108.

When I enter 192.168.0.1 into my browser, the DL-704 Device Information is displayed. The critical information displayed is:

IP Address: 151.199.154.108 PPPoE Connection
Subnet Mask: 255.255.255.255
Gateway: 151.199.154.108
Domain Name Server: 207.68.32.39, 207.68.32.38

The IP Address of my printer is static and is 192.168.0.12 and the subnet Mask is 255.255.255.0

The IP address on my desktop and laptop are set by DHCP and are both 192.168.0.XXX

Can anyone give me the help I need to set up my internet connection?

GŠutama 08-09-2003 04:58 PM

I think Mandrake have a script called
Code:

ifup <interface>
that receives DHCP information and sets up the interface correctly.

guyd 08-09-2003 07:48 PM

How do you run this script?

GŠutama 08-10-2003 04:52 AM

if you have it just like a normal program. You have to be Super user to do it.
so If you want to setup eth0 just type:
Code:

ifup eth0

guyd 08-10-2003 07:45 AM

I regret that I cannot follow your instructions. They are much too criptic for a newbie. How can a newbie be a "Super" user? You simply don't make yourself clear.

I wonder if there is anyone else out there who could help me?

david_ross 08-10-2003 08:20 AM

Open a termial as a normal user and type "su -". Press enter and you will be prompted to enter the password for your root user. This will give you full admin privialages on that machine.

It sounds like you have a routing problem. Can you print the output of:
ifconfig
route -n

guyd 08-10-2003 08:51 AM

Here is the config (Is it ifconfig or ipconfig?):
Code:

Destination    Gateway      Genmask        Flags  Metric  Ref  UseIface
10.0.0.0      0.0.0.0      255.255.255.0      U      0    0    0 eth0
127.0.0.0    0.0.0.0      255.0.0.0          U      0    0    0 1o

Hope this helps!

I'm sorry about the formatting. Apparently, the Post program does not allow tabs or spaces.

I just hoticed that when I type ifconfig at the prompt, I get a lot more information about eth0 and 1o.

Do you need that information as well?

david_ross 08-10-2003 08:54 AM

It is ifconfig (ipconfig is windows). If you use [ CODE ] blocks the board will display the text with spaces.

guyd 08-10-2003 09:17 AM

I hate to be so dense, but how do you use [CODE]

david_ross 08-10-2003 09:35 AM

Put a [ CODE ] bracket at the start and a [ /CODE ] braket at the end (no spaces betwwen the brackets)

MasterC 08-10-2003 09:44 AM

Any chance of a blind dhcpcd?

While in that terminal, and already su - (means changing to root) type:
dhcpcd eth0

Cool

guyd 08-10-2003 01:38 PM

Here is the config (Is it ifconfig or ipconfig?):


Code:

Destination    Gateway      Genmask        Flags  Metric  Ref  UseIface
10.0.0.0      0.0.0.0      255.255.255.0      U      0    0    0 eth0
127.0.0.0    0.0.0.0      255.0.0.0          U      0    0    0 1o

Here is the information displayed when I use ifconfif:

Code:

eth0  Link encap:Ethernet  HWaddr 00:E0:B8:49:D0:C3
          inet addr: 10.0.0.10  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:133 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81 errors:0 dropped:0 overruns:0 frame:0
          collisions:0 txqueuelen:100
          RX bytes:7879 (7.6 Kb)  TX bytes:7950 (7.7 Kb)
          Interrup:10 Base address:0x5400 Memory:e8206000-e8206038
Io      Link encap:Local Lookback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:106 errors:0 dropped:0 overruns:0 frame:0
          TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6686 (6.5 Kb)  TX bytes:6686 (65. Kb)

Hope this helps get me an answer.

Snabber 08-10-2003 02:00 PM

It appears that your interface is set up wrong. Try typing
ifconfig eth0 192.168.0.254
and then try to see if you can surf the web. Also, post the contents of /etc/resolv.conf.


All times are GMT -5. The time now is 03:31 PM.