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 08-09-2003, 04:50 PM   #1
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Rep: Reputation: 0
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?
 
Old 08-09-2003, 04:58 PM   #2
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
I think Mandrake have a script called
Code:
ifup <interface>
that receives DHCP information and sets up the interface correctly.
 
Old 08-09-2003, 07:48 PM   #3
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
How do you run this script?
 
Old 08-10-2003, 04:52 AM   #4
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
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
 
Old 08-10-2003, 07:45 AM   #5
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
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?
 
Old 08-10-2003, 08:20 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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
 
Old 08-10-2003, 08:51 AM   #7
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
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?

Last edited by guyd; 08-10-2003 at 01:19 PM.
 
Old 08-10-2003, 08:54 AM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It is ifconfig (ipconfig is windows). If you use [ CODE ] blocks the board will display the text with spaces.
 
Old 08-10-2003, 09:17 AM   #9
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
I hate to be so dense, but how do you use [CODE]
 
Old 08-10-2003, 09:35 AM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Put a [ CODE ] bracket at the start and a [ /CODE ] braket at the end (no spaces betwwen the brackets)
 
Old 08-10-2003, 09:44 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Any chance of a blind dhcpcd?

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

Cool
 
Old 08-10-2003, 01:38 PM   #12
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
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.

Last edited by guyd; 08-10-2003 at 01:41 PM.
 
Old 08-10-2003, 02:00 PM   #13
Snabber
Member
 
Registered: Dec 2002
Posts: 76

Rep: Reputation: 15
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.

Last edited by Snabber; 08-10-2003 at 02:04 PM.
 
  


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
Please help setting local network leonidg Linux - Networking 3 01-20-2005 06:35 AM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 11:03 AM
Setting up Mail server for Local Network Deep13 Linux - Software 2 10-30-2003 08:05 AM
setting up ftp to run on a local network dewyw74 Linux - Newbie 2 01-02-2003 02:33 AM
Problems gettting to local network after setting firewall vendemmian Linux - Networking 0 05-21-2001 11:34 AM

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

All times are GMT -5. The time now is 10:27 PM.

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