All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhao Hongjiang <zhaohongjiang@huawei.com>
To: <linux-wireless@vger.kernel.org>
Cc: <zhousiyi@huawei.com>
Subject: Get multiple ip addresses by dhcp for wireless card
Date: Thu, 23 Jan 2014 17:48:54 +0800	[thread overview]
Message-ID: <52E0E586.7050806@huawei.com> (raw)

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


             reply	other threads:[~2014-01-23  9:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23  9:48 Zhao Hongjiang [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52E0E586.7050806@huawei.com \
    --to=zhaohongjiang@huawei.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=zhousiyi@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.