Setting up network for AD-HOC (point-to-point between PC and E-Puck)
We are working with a private local network using static IP addresses!
Add entries to file "/etc/network/interfaces" (on the PC):
auto wlan0
#iface wlan0 inet dhcp
iface wlan0 inet static
address 192.168.0.100
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
#pointopoint 192.168.0.1
wireless-mode ad-hoc
and ''"/etc/network/interfaces"'' (on the E-Puck)
auto wlan1
#iface wlan1 inet dhcp
iface wlan1 inet static
address 192.168.0.1
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
#pointopoint 192.168.0.100
wireless-mode ad-hoc
Invoke on both systems either
sudo /etc/init.d/networking restart
or
sudo ifdown wlan0 (or wlan1)
sudo ifup wlan0 (or wlan1)
Setting up network for ACCESS POINT (the PC needs a wireless router attached)
We are working with a private local network using static IP addresses!
Add entries to file "/etc/network/interfaces" (on the PC)
auto wlan0
#iface wlan0 inet dhcp
iface wlan0 inet static
address 192.168.0.100
network 192.168.0.0
netmask 255.255.255.0
gateway 192.168.0.200 (address of router!)
broadcast 192.168.0.255
wireless-essid 'name'
#wireless-key 1234567890
wireless-mode managed
and "/etc/network/interfaces" (on the E-Puck)
auto wlan1
#iface wlan1 inet dhcp
iface wlan1 inet static
address 192.168.0.1
network 192.168.0.0
netmask 255.255.255.0
gateway 192.168.0.200 (address of router!)
broadcast 192.168.0.255
wireless-essid 'name'
wireless-mode managed
#there is a line missing adjusting the power, look up on E-Puck
Invoke on both systems either
sudo /etc/init.d/networking restart
or
sudo ifdown wlan0 (or wlan1)
sudo ifup wlan0 (or wlan1)
No comments:
Post a Comment