1 |
On Tuesday 18 Apr 2017 16:03:25 Florian Gamböck wrote: |
2 |
> Hello! |
3 |
> |
4 |
> In my wireless home network I use a static IP for my machine. The |
5 |
> regarding line in /etc/conf.d/net reads as follows (let's assume that my |
6 |
> SSID is in fact "MySSID"): |
7 |
> |
8 |
> config_MySSID="192.168.0.10/24" |
9 |
> |
10 |
> Is there a possibility to configure this IP not only for this specific |
11 |
> SSID, but also for a specific MAC address of my wireless card? I only |
12 |
> want my "main" wireless card to have this static IP, if another card |
13 |
> goes up and connects with the same SSID, it should be configured via |
14 |
> DHCP. |
15 |
> |
16 |
> I tried the following: |
17 |
> |
18 |
> config_MySSID="dhcp" |
19 |
> config_001122334455="192.168.0.10/24" |
20 |
> |
21 |
> I also changed the order of those two lines, but the SSID based config |
22 |
> seems to "win" regardless. Also, if this config would actually work, |
23 |
> then I would have this static IP in every network I change (this is not |
24 |
> desireable). So I need a logical AND with those two variables, like so: |
25 |
> |
26 |
> config_MySSID="dhcp" |
27 |
> config_001122334455_MySSID="192.168.0.10/24" |
28 |
> |
29 |
> This would mean the following: Connect to MySSID via DHCP, except when |
30 |
> using the interface with the MAC address 001122334455, which should get |
31 |
> a static IP. |
32 |
> |
33 |
> Not to mention that I indeed tried this last one, but it didn't work |
34 |
> either. |
35 |
> |
36 |
> So, what are your thoughts? Is this possible via netifrc? |
37 |
|
38 |
I had to read this message twice and I am not yet sure I understand correctly |
39 |
what it is you are trying to achieve. |
40 |
|
41 |
Do you want whichever NIC of your PC connects first to a specific SSID to |
42 |
always obtain IP 192.168.0.10/24 and any NIC which connects second to use |
43 |
DHCP? |
44 |
-- |
45 |
Regards, |
46 |
Mick |