2005-02-10 14:41:17

by Jers

[permalink] [raw]
Subject: [Bluez-users] IP address

Hi all,
I intend to create a wireless network of laptops using bt-dongles.
I know that, first "pand -c <btaddr>" creates a connection and a bnep
interface, then an ip-address can be set to the bnep (ifconfig bnepX
<ipaddr>)
Is it possible to assign the ip-address to each laptop/dongle before
creating connections?
Suppose that the ip-addressess of devices in a coverage area are set and
known. I'd like that involved laptops can require connection among
themselves using the ipaddress instead of btaddr.
Does BlueZ meet my requirements?
Thanks a lot.
Jers



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2005-02-10 18:16:13

by Pavel Ruzicka

[permalink] [raw]
Subject: Re: [Bluez-users] IP address

Hi,

> Is it possible to assign the ip-address to each laptop/dongle before
> creating connections?

I depends on distribution.
In Mandrake, Redhat and maybe others you can preconfigure parameters for first
bnep interface in file:
/etc/sysconfig/network-scripts/ifcfg-bnep0
File looks like this:
-----
DEVICE=bnep0
BOOTPROTO=static
IPADDR=192.168.100.1
NETMASK=255.255.255.252
ONBOOT=no
-----

bnep1 can look like this:
-----
DEVICE=bnep1
BOOTPROTO=static
IPADDR=192.168.100.5
NETMASK=255.255.255.252
ONBOOT=no
-----

This is example for configuring many Point-to-Point BNEP connections.
IP 1 with 2, 5 with 6 etc...
You must have enabled routing in kernel.
For automatic enabling/disabling you must have functional hotplug.

If you want LAN with one big address space like 192.168.1.0
with mask 255.255.255.0, you must run bridge on your machine.

Some documentation is here:
http://bluez.sourceforge.net/contrib/HOWTO-PAN

Best regards,

Pavel Ruzicka


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-02-10 14:51:04

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] IP address

Hi Jers,

> I intend to create a wireless network of laptops using bt-dongles.
> I know that, first "pand -c <btaddr>" creates a connection and a bnep
> interface, then an ip-address can be set to the bnep (ifconfig bnepX
> <ipaddr>)
> Is it possible to assign the ip-address to each laptop/dongle before
> creating connections?

can you set the IP address for a network card that is not present in
your machine?

> Suppose that the ip-addressess of devices in a coverage area are set and
> known. I'd like that involved laptops can require connection among
> themselves using the ipaddress instead of btaddr.
> Does BlueZ meet my requirements?

It is not not working this way.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users