linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Get multiple ip addresses by dhcp for wireless card
@ 2014-02-10  3:56 Zhao Hongjiang
  2014-02-10  6:47 ` Ben Greear
  0 siblings, 1 reply; 9+ messages in thread
From: Zhao Hongjiang @ 2014-02-10  3:56 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, zhousiyi

Hello,

Is it possible for one station to get multiple ip addresses from AP/Wireless
router by dhcp? I had tried to add one or more virtual interface for
phy0 (wlan0, wlan1, wlan2,etc), but only wlan0 can get ip address from AP. 
the following is the steps:

/bin/wpa_supplicant -ddd -iwlan0 -Dnl80211 -c/wifi/wpa_supplicant.conf -B
/bin/wpa_cli -i wlan0 -p /wlan0
> add_network
> set_network 0 ssid "APabc" 
> set_network 0 psk "1111111" 
> enable_network 0

iw wlan0 interface add wlan1 type station 4addr on
ip link set wlan1 up
dhcpcd -ABKL wlan0 #works, can get ip
dhcpcd -ABKL wlan1 #cannot work


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Get multiple ip addresses by dhcp for wireless card
@ 2014-01-23  9:48 Zhao Hongjiang
  0 siblings, 0 replies; 9+ messages in thread
From: Zhao Hongjiang @ 2014-01-23  9:48 UTC (permalink / raw)
  To: linux-wireless; +Cc: zhousiyi

Hello,

Is it possible for one station to get multiple ip addresses from AP/Wireless
router by dhcp? I had tried to add one or more virtual interface for
phy0 (wlan0, wlan1, wlan2,etc), but only wlan0 can get ip address from AP. 
the following is the steps:

/bin/wpa_supplicant -ddd -iwlan0 -Dnl80211 -c/wifi/wpa_supplicant.conf -B
/bin/wpa_cli -i wlan0 -p /wlan0
>add_network
>set_network 0 ssid "APabc" 
>set_network 0 psk "1111111" 
>enable_network 0

iw wlan0 interface add wlan1 type station 4addr on
ip link set wlan1 up
dhcpcd -ABKL wlan0 #works, can get ip
dhcpcd -ABKL wlan1 #cannot work


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-02-12  3:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-10  3:56 Get multiple ip addresses by dhcp for wireless card Zhao Hongjiang
2014-02-10  6:47 ` Ben Greear
2014-02-10  8:38   ` Zhao Hongjiang
2014-02-10 19:20     ` Ben Greear
2014-02-11  3:53       ` Zhao Hongjiang
2014-02-11  3:57         ` Ben Greear
2014-02-11 12:51           ` Arend van Spriel
2014-02-12  3:22             ` Zhao Hongjiang
  -- strict thread matches above, loose matches on Subject: below --
2014-01-23  9:48 Zhao Hongjiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).