View previous topic :: View next topic |
Author |
Message |
paladin-zero Guru
Joined: 19 May 2004 Posts: 322
|
Posted: Sat Jul 02, 2005 8:15 pm Post subject: Adding an alias to a wireless interface- wpa_supplicant |
|
|
I am using wpa_supplicant to deal with connecting to my wireless network at home and work. I would like to set up an alias for this interface. This is easy to do for eth0:
Code: | alias_eth0="192.168.2.101" |
but when I try it with the wireless interface
Code: | alias_wlan0="192.168.2.102" |
the alias is not created. Any ideas why? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sat Jul 02, 2005 10:36 pm Post subject: |
|
|
Try using the new style config
Code: |
config_wlan0=(
"192.168.0.2/24"
"192.168.0.3/24"
) |
If you're using iproute2 you won't get an alias as it can add multiple addresses without the need to create aliases.
If you're using ifconfig then you'll get aliases |
|
Back to top |
|
|
|