LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connect my non wireless enabled pc to my wireless enabled pc via ethernet? (http://www.linuxquestions.org/questions/linux-networking-3/connect-my-non-wireless-enabled-pc-to-my-wireless-enabled-pc-via-ethernet-4175433364/)

Help me im dumb 10-21-2012 01:21 PM

Connect my non wireless enabled pc to my wireless enabled pc via ethernet?
 
I want to use my laptop that receives wifi as a server for my pc that does not have a wifi card, both run linux mint.

I have set up a connection with network manager and set IPv4 method to "Shared with other computers" and it connects fine apparently but i cannot browse due to "Server not found".

lspci
Code:

$ lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:06.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2)
00:11.0 SATA controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
00:12.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0 USB OHCI1 Controller
00:12.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0 USB OHCI1 Controller
00:13.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller (rev 3c)
00:14.1 IDE interface: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 IDE Controller
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices [AMD] nee ATI SBx00 PCI to PCI Bridge
00:14.5 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 5
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Manhattan [Mobility Radeon HD 5430 Series]
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Cedar HDMI Audio [Radeon HD 5400/6300 Series]
02:00.0 Ethernet controller: Atheros Communications Inc. AR8151 v2.0 Gigabit Ethernet (rev c0)

ifconfi
Code:

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 50:e5:49:df:a7:0a 
          inet addr:10.42.0.1  Bcast:10.42.0.255  Mask:255.255.255.0
          inet6 addr: fe80::52e5:49ff:fedf:a70a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:294 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:60528 (60.5 KB)
          Interrupt:44

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:340 errors:0 dropped:0 overruns:0 frame:0
          TX packets:340 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:21744 (21.7 KB)  TX bytes:21744 (21.7 KB)

Any help is appreciated.

MidGe48 10-21-2012 02:11 PM

"Server not Found" might come about if both computers are not in the same subnet.

From your post, for the computer you show the ifconfig result for, it indicates it is in subnet 10.42.0.x. You need make sure that the other computer is in the same subnet. That mean that the ip for eth0 on that computer ought to be 10.42.0.y. where y is between 1 and 254 and not the same as x (not 1, in your case). The broadcast address and the mask should be the same for both computers.

That should be your first step.

If not, it would help to see the result of running ifconfig -a on both computers and maybe we can take it from there.

Help me im dumb 10-21-2012 02:27 PM

Quote:

Originally Posted by MidGe48 (Post 4811529)
"Server not Found" might come about if both computers are not in the same subnet.

From your post, for the computer you show the ifconfig result for, it indicates it is in subnet 10.42.0.x. You need make sure that the other computer is in the same subnet. That mean that the ip for eth0 on that computer ought to be 10.42.0.y. where y is between 1 and 254 and not the same as x (not 1, in your case). The broadcast address and the mask should be the same for both computers.

That should be your first step.

If not, it would help to see the result of running ifconfig -a on both computers and maybe we can take it from there.

Result from my computer with wifi enabled.
Code:

$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:18:8b:b7:55:8a 
          inet6 addr: fe80::218:8bff:feb7:558a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:396 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:106832 (106.8 KB)  TX bytes:1730 (1.7 KB)
          Interrupt:18

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1635 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1635 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:49339 (49.3 KB)  TX bytes:49339 (49.3 KB)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          inet addr:10.125.126.70  P-t-P:10.125.126.69  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:1034194 errors:0 dropped:0 overruns:0 frame:0
          TX packets:685255 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:1273815825 (1.2 GB)  TX bytes:56986913 (56.9 MB)

vboxnet0  Link encap:Ethernet  HWaddr 0a:00:27:00:00:00 
          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)

wlan0    Link encap:Ethernet  HWaddr 00:19:d2:7c:77:aa 
          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::219:d2ff:fe7c:77aa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8179970 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4888777 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2120181966 (2.1 GB)  TX bytes:897198741 (897.1 MB)


MidGe48 10-21-2012 05:58 PM

OK, but we need it from both computers, not only the one! Both computers have to be in sync to communicate with each other. :)

But it looks like this one does not have an ip4 address which mean you probably have to fix the connection on this one via network manager. The ip6 address does not look right eiher. Anyway, try as per my first post and then , post back the ipconfig results if that does not work. Also, you will have to bring the interface down and up again after you make the change (try "ifdown eth0" and then "ifup eth0" on the computer where you make the change to the ip. You need to do this as root or sudo).


All times are GMT -5. The time now is 05:14 AM.