LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 11:20 PM   #1
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Rep: Reputation: 15
LAN on Mandrake 9.2? (newbie)


I installed Mandrake 9.2 successfuly yesterday, and it read all of my hardware perfectly! Including my ethernet card.

So now my computer has both Linux and WinXP. My ethernet card is connected to a D-Link router which is connected to a DSL modem. This connection works fine on Windows XP, but I really need help on setting up a LAN on Mandrake 9.2!

I ran the internet wizzard and selected LAN but after the wizzard it did not work!

Can someone please help me get my internet connection working!?!?

Thanks!

~colin
 
Old 01-02-2004, 03:40 AM   #2
codecruncher
Member
 
Registered: Aug 2003
Location: Austria
Distribution: Fedora Core release 2 (Tettnang)
Posts: 37

Rep: Reputation: 15
Find out in which way WinXP's network is configured, then edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 accordingly.

Here is an example (taken from fedora core):

Code:
# config for DHCP
# Intel Corp.|82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:02:A5:6D:B3:01
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=nebukadnezar

# config for fixed ip
iDEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.14
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
HTH
codecruncher
 
Old 01-02-2004, 04:49 AM   #3
ytene
LQ Newbie
 
Registered: Aug 2003
Location: UK
Distribution: Mandrake 9.2
Posts: 7

Rep: Reputation: 0
re: LAN on Mandrake 9.2

Hi,

Don't want to sound like I'm arguing with codecruncher here, but I'll offer an alternative suggestion.

1. As codecruncher suggests, get data from your XP environment to understand how it's networking has been configured:

Start -> Settings -> Network Connection

You should see a window with one or more icons in it, one of which should have a name something like "Local Area Connection". Highlight this, and then from the panel on the left, select "Change the settings of this connection".

You should get *another* popup window, this one titled "Local Area Connection Properties". In the centre of this window is a scroll-box filled with lots of property entries. Scroll to the bottom of this, where you should find something for TCP/IP.

Highlight that protocol and click the right-most of three buttons, labelled "properties". If your XP setup is anything like mine, you'll find the display showing you that "Obtain an IP Address" automatically and "Obtain DNS Server address automatically" have both been selected. Fine.

To confirm exactly what values these are, open a "command prompt" window and type this:-

ipconfig

and you should see something a bit like this:-

C:\>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : my.router
IP Address. . . . . . . . . . . . : 192.168.1.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

C:\>

make a note of your XP box IP Address, subnet mask and default gateway.

Now boot into your Mandrake Build. Use Control Centre for this - although codecruncher wants you to edit files, he may not be aware of the fact that Mandrake will overwrite changes you make manually when you next re-boot your PC...

In the network settings, you want to make 2 changes. By all means use the wizard to set up networking. You need to change the address to DHCP [and it should get a new IP Address from your router or DSL box].

You also need to change your default gateway [should be a click button *above* the LAN settings. You need to change this to the same value that you saw on your XP build.

Now you need to do a reboot of Mandrake.

Try it when it comes up. If it still doesn't work, open a command window, su to root, and type the following:-

shell$> ifconfig -a

Look at the output [there will be a lot]. In there somewhere should be a label for a network port, something like eth0. Look for an IP address next to it. Is it similar to your XP build? It should be.

shell$> cat /etc/resolv.conf

Look at the contents of this file. It should point to the same "DNS" Server as your XP build [again, probably your D-Link Router].


If either of these entries are different, or if above suggestions still don't work, one get-around might be to over-ride your Mandrake build and set it up with a static IP address in the right range. Check the above, and post back if it still doesn't work.... I have a Mandrake build connected to the 'net in the way that you're trying to achieve, so I can dig out exact settings if required.

Regards

Last edited by ytene; 01-02-2004 at 04:53 AM.
 
Old 01-02-2004, 11:48 AM   #4
Bill Gates 666
Member
 
Registered: Dec 2003
Location: Cambridge
Distribution: Arch, Gentoo, OpenSUSE
Posts: 70

Rep: Reputation: Disabled
codecruncher is right I'm afraid you're better off getting in there and getting your hands dirty!! Edit the ifcfg-eth0 file which is in the same place under MDK 9.2. The network GUI setup programs under MDK are pretty crap. Try setting up eth0 for <bootp/dhcp> though that might help.

Boot in Windows XP. Open up the <network connections> dialog box. Right click on the ethernet card icon and select <status> in the context menu. In the status popup window select the <support> tab at the top. Just copy all the text in the popup window and post it on here. We can give you hand then - cause we'll know whats going on a bit better!!

Any changes you make to the ifcfg-eth0 are parmenant under MDK 9.2 (I should know cause I'm using the same distro!!)

Can you ping your router under Linux? Can you ping your modem under Linux? Can you browse to the Web configuration screens for you router and modem under Linux?

You may need to put your ISP's DNS server ip address into /etc/resolv.conf. You can't always really on routers to handle DNS resolution properly (I know that a Vigor 2600We I have doesn't do such a good job of this).

By the way any changes to the networks settings under Linux DO NOT NEED A REBOOT (sacra bleu ytene!!) You just need to type (as root probably):
# service network stop
# service network start
(don't type the '#' thou!!)

Rob
 
Old 01-02-2004, 11:58 AM   #5
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Original Poster
Rep: Reputation: 15
-------------------------------------
Address type: Assigned by DHCP
ip address: 192.168.0.100
Subnet Mask: 255.255.255.0
Default gateway: 192.168.0.1
--------------------------------------

Theres the info.

Remember im a complete newbie!

I've only had this installed for a day and I only know the basic cammand line stuff. So i would need more specific instructions on editing these files.

Thanks a lot guys! It looks like this is going on the right track!
 
Old 01-02-2004, 03:37 PM   #6
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Original Poster
Rep: Reputation: 15
yay! i had some fun!

I went into ect/sysconfig/network-scripts/ and looked for ifcfg-eth0... didnt find it.... but i did see a ifcfg-lo.... so naturaly i created an ifcfg-eth0 file, and it brought me much closer, this time it recondized that it was lan! but it still didnt connect

I ran # service network status.... and it said something like:

Devices:
lo eth0
Active Devices:
lo

So i knew that lo came from the file ifcfg-lo and i thought that it thought that that was my device, so i deleted ifcfg-lo

Now when startx the initialization it just stays there, and does nothing.......

so i already broke my linux !

so im guess ill have to go in and emacs another ifcfg-lo, but i dont know what the contents of the file was?!?

can someone please explain what to do to get my gui working again!?

thanks
 
Old 01-02-2004, 06:44 PM   #7
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Original Poster
Rep: Reputation: 15
NM

I got it to boot correctly, but can someone tell me what ifcfg-lo is?

And i thought of a few other things that might change the way i would set it up.... My IP is dynamic and i have DSL pppoe. here is the info again!

-------------------------------------
Address type: Assigned by DHCP
ip address: 192.168.0.100
Subnet Mask: 255.255.255.0
Default gateway: 192.168.0.1
--------------------------------------

please help! i really need to get my internet to work!
 
Old 01-02-2004, 10:23 PM   #8
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Original Poster
Rep: Reputation: 15
I think that the problem IS the fact that its dynamic IP.... but what can i do about it?
 
Old 01-03-2004, 01:55 AM   #9
codecruncher
Member
 
Registered: Aug 2003
Location: Austria
Distribution: Fedora Core release 2 (Tettnang)
Posts: 37

Rep: Reputation: 15
Hy,
ifcfg-lo is the config file for the lo (loopback) interface. A lot of software uses this interfaces for communication with other software, the kernel,....

You wrote, that your PC is hooked up to a router, which is hooked up to a modem, is that right?

I take it, you do not have to authanticate at the router (under WinXP) to get internet access, right?

Just in case I am right, here is the config you would need for a DHCP configuration of eth0:
Code:
DEVICE=eth0
BOOTPROTO=dhcp
onBOOT=yes
TYPE=Ethernet # not sure wether you need this entry...
After you edited this file (ifcfg-eth0) you do a /etc/init.d/network restart. After that, you should do a ifconfig. My output looks like this:
Code:
eth0      Protokoll:Ethernet  Hardware Adresse 00:02:A5:6D:B3:01
          inet Adresse:192.168.0.4  Bcast:192.168.0.255  Maske:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8348 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7389 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:8824852 (8.4 Mb)  TX bytes:972191 (949.4 Kb)
          Interrupt:10 Basisadresse:0x3040 Speicher:d0215000-d0215038

lo        Protokoll:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3312 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3312 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:1981198 (1.8 Mb)  TX bytes:1981198 (1.8 Mb)
Well, apart from it beeing in german, yours should look similar.

btw, you have to bee root in order to restart your network.

HTH
codecruncher
 
Old 01-03-2004, 11:35 AM   #10
Bill Gates 666
Member
 
Registered: Dec 2003
Location: Cambridge
Distribution: Arch, Gentoo, OpenSUSE
Posts: 70

Rep: Reputation: Disabled
Colin,

Try this configuration file:
__________________________
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
NETMASK=255.255.255.0
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
MII_NOT_SUPPORTED=yes

__________________________
Make a text file <ifcfg-eth0> using this and stick in the </etc/sysconfig/network-scripts> directory. Make sure you have a blank line at the bottom of the script (always!!)
Can't go wrong as we are both using MDK 9.2!! BTW don't ask me what the MII business is

Restart you networking:

# service network restart

You could also try running Harddrake->configure you ethernet cards, Mandrake Control Centre->networking, etc. GUI's and configuring you network card to use dhcp/bootp that way. It will write the above configuration script for you!!

Perhaps you could post your:

# ifconfig -a

output here? (BTW the -a switch will list all interfaces even if they are down). That output would be useful.

If the interface is still not starting up try:

# ifup eth0

to force it to start up!!

I don't think that the fact your DSL is PPPoE (Point to Point over Ethernet) should affect anything. Your DSL modem will buffer this from your router and your laptop. Note that PPPoE transmits packets that the standard ethernet size of 1500 bytes. But it uses an extra header of 8 bytes while travelling over the link to your ISP. This means that you should set the MTU for all your devices to 1492 bytes (MTU=maximum transmittion unit).

Colin you should get yourself subscribed to MDK mailing lists (when you get your internet access working of course!!) They are specific to the Linux distribution you are using. Just go to the Mandrake home page. The more sources of help you've got the quicker you'll solve your Linux problems!!

Hope that helps!!

Rob
 
Old 01-03-2004, 12:23 PM   #11
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Original Poster
Rep: Reputation: 15
I think the lo thinger is all screwed up, because i don't have the original file! what should ifconfig-lo have in it? and eth0 still shows up inactive if i do #service network status !?

Thanks a lot! i think we are getting closer!
 
Old 01-03-2004, 01:54 PM   #12
Bill Gates 666
Member
 
Registered: Dec 2003
Location: Cambridge
Distribution: Arch, Gentoo, OpenSUSE
Posts: 70

Rep: Reputation: Disabled
ifcfg-lo:
___________________________________________________________________
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
____________________________________________________________________

Colin

When you get your local loopback interface backup can you post the output from:
# ifconfig -a
# ip route
so we can see what you network thinks its doing!!

Cheers

Rob
 
Old 01-03-2004, 03:16 PM   #13
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Original Poster
Rep: Reputation: 15
when i run
#ifconfig -a
it only shows the information for lo and not for eth0..... and when i do
#service network status
it says:
------------------------------
configured devices:
lo eth0
currently active:
lo
-------------------------------

so eth0 isnt active!?!? is this part of the reason?!?

 
Old 01-03-2004, 04:08 PM   #14
Bill Gates 666
Member
 
Registered: Dec 2003
Location: Cambridge
Distribution: Arch, Gentoo, OpenSUSE
Posts: 70

Rep: Reputation: Disabled
Hi Colin

I am drawing a blank

If
# ifconfig -a
doesn't show your eth0 NIC at all then you have some kind of hardware problem I would think.

Try disabling and reenabling your network. Then check your syslog file for errors or problems:

# service network restart
# tail -n 20 /var/log/syslog

Also I would go into HardDrake and just double check that your NIC has the correct device driver loaded for it. Does the driver MDK think is right actually match your hardware?

I would also get onto the Mandrake mailing lists ASAP and get some help that way.

Rob
 
Old 01-03-2004, 04:33 PM   #15
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Original Poster
Rep: Reputation: 15
Hard drake reads it exactly right!!!

nVidia nForce MCP network adapter

I already sent an email to mandrake a few days ago but no answer
 
  


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 LAN guide Blueshark Linux - Networking 2 07-07-2004 05:58 AM
newbie trying to set up lan jbcolmena Linux - Networking 1 02-09-2004 04:57 PM
NEWBIE wants to setup LAN lhoff Linux - Networking 12 03-22-2002 04:21 PM
Newbie LAN Question fed007 Linux - Networking 1 08-07-2001 10:05 PM
LAN Configuration-Newbie here zukester Linux - Networking 24 07-13-2001 12:50 AM

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

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