LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Acer Aspire Network problem (https://www.linuxquestions.org/questions/linux-newbie-8/acer-aspire-network-problem-860059/)

AKA Marketing Ltd 02-01-2011 01:12 PM

Acer Aspire Network problem
 
My laptop connects fine wirelessly but when I try connecting with the cable it won't connect. I have tried an identical laptop and that connects fine so it must be the laptop but I don't know why. Has anyone got any advice?

xeleema 02-01-2011 01:15 PM

Yep, plug in the cable, then
"ifconfig eth# down ; sleep 10 ; ifconfig eth# up" If that doesn't work "ifconfig -a" and see if it's even "UP"

szboardstretcher 02-01-2011 01:20 PM

Disconnect from the wireless first, then do what the second poster asked.

AKA Marketing Ltd 02-01-2011 02:27 PM

Hi, I'm sorry to sound stupid but I don't understand. I have unconnected the wireless and plugged in the cable but what is the 'configure' stuff?

xeleema 02-01-2011 05:50 PM

Quote:

Originally Posted by AKA Marketing Ltd (Post 4244966)
Hi, I'm sorry to sound stupid but I don't understand. I have unconnected the wireless and plugged in the cable but what is the 'configure' stuff?

Okay, you need to open a "Terminal" (aka: "Command prompt", "shell", "terminal session", or just hit Ctrl+Alt+F2). Then you're going to type the following at the "command prompt", okay?
Code:

ifconfig -a
You should get output like this (pay attention to the stuff in bold);
Code:

luser@lhost$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24488 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5754 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4596260 (4.3 MiB)  TX bytes:1033673 (1009.4 KiB)
          Interrupt:58 Base address:0x4000

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

wlan0    Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
luser@lhost$

Now, "eth0" is the first "wired" network port. The "lo" interface is your "loopback interface" (127.0.0.1). Then there's "wlan0", which stands for "Wireless LAN". All of these (except the loopback) will have numbers. For example, if you have a 4-port Network Card, you would see "eth0", "eth1", "eth2", and "eth3". Get it?

In order to manipulate network ports, you have to learn a few commands. The first one is "ifconfig" (type "man ifconfig" and start reading). This command does one big thing we need; it can turn off and on ports.

So, the previous command I gave you;
Code:

ifconfig eth# down ; sleep 10 ; ifconfig eth# up"
This will turn off eth# (where # is the number of your wired ethernet port, like zero).
Then sleep for 10 seconds.
Then turn eth# back on.

Now, the next thing the "ifconfig" command does is tell you if a port is "UP";
Code:

luser@lhost$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.1.120  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25597 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6196 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4739844 (4.5 MiB)  TX bytes:1219828 (1.1 MiB)
          Interrupt:58 Base address:0x4000

luser@lhost$

P.S: Go thru my signature and start reading. You kinda sound like you could use some more tips.

onebuck 02-01-2011 06:15 PM

Hi,

Welcome to LQ!

Quote:

Originally Posted by AKA Marketing Ltd (Post 4244915)
My laptop connects fine wirelessly but when I try connecting with the cable it won't connect. I have tried an identical laptop and that connects fine so it must be the laptop but I don't know why. Has anyone got any advice?

"Knowledge is of two kinds. We Know a subject ourselves, or we know where we can find information upon it."- Samuel Johnson

Other members have given good useful advice. You can look at the following links to learn a bit more about admin, sure some may seem beyond a newbie skill level but you must start somewhere;



Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Bash Beginners Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Home Networking



The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

AKA Marketing Ltd 02-02-2011 03:57 AM

I've turned off the wireless and hit ctrl alt and F2 but nothing happened, is it my computer? frustrating as I only ought it 6 months ago

AKA Marketing Ltd 02-02-2011 03:59 AM

I've just typed command prompt in the search and it's brought it up so gonna have a go this way

AKA Marketing Ltd 02-02-2011 04:06 AM

Didn't work. Just got C:\Windows\system32\command.com
Specified COMMAND search directory bad
Microsoft<R> Windows DOS
<C>Copyright Microsoft Corp 1990-2001.

C>ifconfig -a
'IFCONFIG' is not recognised as an internal or external command, operable program or batch file

Then I tried it again without the space and got

C>ifconfig-a
'IFCONFIG-A' is not recognised as an internal or external command, operable program or batch file

Any ideas?

xeleema 02-02-2011 09:32 AM

Quote:

Originally Posted by AKA Marketing Ltd (Post 4245581)
Didn't work. Just got C:\Windows\system32\command.com
Specified COMMAND search directory bad
Microsoft<R> Windows DOS
<C>Copyright Microsoft Corp 1990-2001.
C>ifconfig -a
'IFCONFIG' is not recognised as an internal or external command, operable program or batch file
Then I tried it again without the space and got
C>ifconfig-a
'IFCONFIG-A' is not recognised as an internal or external command, operable program or batch file
Any ideas?

Are you serious? This whole time you've been asking for help on a Windows box? Please bear in mind this is linuxquestions.org.
Next time you start a thread, please state the Operating System you're using.

onebuck 02-02-2011 10:41 AM

Hi,

@OP I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem/query.

 Most newbies that read the LQ Rules & Site Banner would noticed;
Quote:

LinuxQuestions.org not WindowsQuestions.org

@
xeleema I can feel your frustrations. A lot of wasted resource for assumptions. OP should have made effort to explain things better and provide details.
:hattip:


All times are GMT -5. The time now is 01:12 AM.