public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] Assigning an IP in AP mode
  @ 2011-08-12  4:29 99% ` Adam Carter
  0 siblings, 0 replies; 1+ results
From: Adam Carter @ 2011-08-12  4:29 UTC (permalink / raw
  To: gentoo-user

On Fri, Aug 12, 2011 at 12:11 PM, Grant <emailgrant@gmail.com> wrote:
> Does anyone know how to assign an IP address to a wireless interface
> in AP mode?  It can't be specified in /etc/conf.d/net because
> /etc/init.d/net.wlan0 is not executed since hostapd handles the whole
> thing.  'ifconfig wlan0 192.168.0.1' works but I know I've done it
> before without issuing that command each time I reboot, I just can't
> remember how.

In /etc/conf.d/net as usual, just disable iwconfig and wpa_supplicant
in modules_wlan0

> BTW, can I assign IP addresses on the same subnet to the 2 wireless
> interfaces in my system if one of them connects to the WAN and the
> other to the LAN?

You probably don't want to do that. It will give you two connected
routes for the subnet, and only the one with the better metric will be
used, so you wont be able to communicate with hosts on the other
interface. You could probably setup bridging, but IMO it would almost
certainly be better to just use different subnets.

I could be wrong though - try it and see what happens.



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-08-12  2:11     [gentoo-user] Assigning an IP in AP mode Grant
2011-08-12  4:29 99% ` Adam Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox