Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Adding an alias to a wireless interface- wpa_supplicant
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
paladin-zero
Guru
Guru


Joined: 19 May 2004
Posts: 322

PostPosted: Sat Jul 02, 2005 8:15 pm    Post subject: Adding an alias to a wireless interface- wpa_supplicant Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Jul 02, 2005 10:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum