You are not logged in.
I have a desktop and a laptop connected via bluetooth.On desktop is windows XP,and laptop is running arch linux.My laptop is connected to internet via eth0 device.How to enable my desktop to connect internet via bluetooth?
Offline
This is non-trivial, but I believe the path is:
Create a network interface on the laptop that allows clients to connect by PPP listening over Serial Bluetooth Link (Bluez ??)
Win XP client establish a PPP link to the Linux host via Bluetooth (Bluez ??)
Now the XP and Linux boxes can communicate using a TCP/IP stack through the PPP link since they are two computers on a virtual LAN
For the XP to talk over the internet, the laptop will have to bridge its Ethernet connection to the Virtual LAN or will have to be configured to provide NAT forwarding between the two network connections.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
The first three things I have already done,but I don't know how to configure NAT forwarding or bridge in linux to allow xp to connect to the internet.
Offline
The first three things I have already done,but I don't know how to configure NAT forwarding or bridge in linux to allow xp to connect to the internet.
Great! Those steps were the hard part.
For the last step, check out http://wiki.archlinux.org/index.php/NAT … connection
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
This is suit me more,because I need this laptop to use too:
http://wiki.archlinux.org/index.php/Internet_Share
I followed instructions and this is result:
┌─[ root @ laptop ] - [ 19:24:15 Mon Feb 22 ] - [ /home/dany ]
└─[#]> ifconfig
bnep0 Link encap:Ethernet HWaddr 00:1A:6B:DE:3D:99
inet6 addr: fe80::21a:6bff:fede:3d99/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:59 (59.0 b) TX bytes:438 (438.0 b)
eth0 Link encap:Ethernet HWaddr 00:1A:4B:68:59:74
inet6 addr: fe80::21a:4bff:fe68:5974/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14293 errors:0 dropped:0 overruns:0 frame:0
TX packets:9596 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11856529 (11.3 Mb) TX bytes:1159169 (1.1 Mb)
Interrupt:16
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:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1880 (1.8 Kb) TX bytes:1880 (1.8 Kb)
pan0 Link encap:Ethernet HWaddr 00:1A:6B:DE:3D:99
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::48fb:3aff:fe6d:f6ee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:678 (678.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:172.16.3.30 P-t-P:172.16.3.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1480 Metric:1
RX packets:9898 errors:0 dropped:0 overruns:0 frame:0
TX packets:8844 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:10866223 (10.3 Mb) TX bytes:880772 (860.1 Kb)I put on xp 192.168.2.1 in gateway,and DNS from my /etc/resolv.conf,but when I pinging 192.168.2.1 from desktop it returns "Request timed out".
I think that HAL make some trouble,and not allowing xp to connect to laptop. What do you think?
Offline
I am a little confused. But this is how I interpret your ifconfig output.
Your laptop has a NIC card for a wired Ethernet that is not used. (eth0) It has a Hewlett Packard MAC address
Your Ethernet connection is provided by a PPP connection with an IP address of 172.16.3.30 (ppp0)
Your Bluetooth Interface has an IP address of 192.168.0.2 (pan0) It has a Usi MAC address
Your Bluetooth Interface also has a bnep0 designation which has no address.
I am not an expert on Bluetooth, but I think you want to use the bnep0 interface and not pan0.
Your interface to the outside world is via ppp0.
If you follow the reference you provided, you should use ppp0 everywhere the article refers to eth0
You should also use (I Think) bnep0 everywhere the article refers to eth1
If you still have problems, please provide the output of "route -vne"
Just out of curiosity, how are you setting the IP address and gateway on XP? Are you using the control panel or are you using "ipconfig"?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I am connected to the internet through ethernet wireless router which is connected to AP.
ppp0 is not important for connection with Desktop.
Here is output of "route -vne":
┌─[ dany @ laptop ] - [ 15:13:20 Tue Feb 23 ] - [ ~ ]
└─[$]> route -vne
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.16.3.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 bnep0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 pan0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0I tried with bnep0 too:
┌─[ dany @ laptop ] - [ 15:13:16 Tue Feb 23 ] - [ ~ ]
└─[$]> ifconfig
bnep0 Link encap:Ethernet HWaddr 00:1A:6B:DE:3D:99
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::21a:6bff:fede:3d99/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:450 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28654 (27.9 Kb) TX bytes:1030 (1.0 Kb)
eth0 Link encap:Ethernet HWaddr 00:1A:4B:68:59:74
inet6 addr: fe80::21a:4bff:fe68:5974/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:755912 errors:0 dropped:0 overruns:0 frame:0
TX packets:820991 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:845626894 (806.4 Mb) TX bytes:101744123 (97.0 Mb)
Interrupt:16
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:65945 errors:0 dropped:0 overruns:0 frame:0
TX packets:65945 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12971533 (12.3 Mb) TX bytes:12971533 (12.3 Mb)
pan0 Link encap:Ethernet HWaddr 00:1A:6B:DE:3D:99
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::1491:edff:fe1a:df64/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:1183 (1.1 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:172.16.3.30 P-t-P:172.16.3.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1480 Metric:1
RX packets:750151 errors:0 dropped:0 overruns:0 frame:0
TX packets:819849 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:825062885 (786.8 Mb) TX bytes:80354636 (76.6 Mb)But it won't to connect.By the way, I am using control panel for setting xp.
Offline
I believe you will need to follow the example from this website.
http://bluez.sourceforge.net/contrib/HOWTO-PAN
But I see that your laptop is XP which a different ball game all together..
Can you try install windows active sync on your PC? Your desktop may need to have a virtual interface which will be connected to your linux laptop via bluetooth.
Me just curious, why is the laptop and PC is not connected via router or not in the same LAN?
Offline
I gave up. I even installed archlinux on Desktop with openbox(because it is an old computer),blueman,networkmanager,and I can't even browse files from laptop,only send files works.
Could not display "obex://[11:11:11:11:11:11]/".
Error: Service not supported by remote device
Please select another viewer and try again.There is no bnep0(only pan0) device on Desktop,and I don't know how to get it.
Too much work for nothing.
Offline