Hello! I have posted thread before regarding this problem but I marked it as solved and thought I could start a new one because the last one died and I thought I'd make a better job summarising the problem.
The thing is: I have a working wireless Internet connection on interface wlans_ath0="wlan0" and as soon as I put an alias for it in /etc/rc.conf I lose the connection to my router. Also when I ping it the result is: "Network is down". I can make alias with the command:
Then, if I change my /etc/rc.conf into this:
The new result after
Now when I ping the router it is:
No other things are changed except that I add the alias to /etc/rc.conf.
What am I doing wrong or missing? :/
Please help.
--- michael_hackson
The thing is: I have a working wireless Internet connection on interface wlans_ath0="wlan0" and as soon as I put an alias for it in /etc/rc.conf I lose the connection to my router. Also when I ping it the result is: "Network is down". I can make alias with the command:
# ifconfig wlan0 alias 192.168.10.21 netmask 0xffffffff
and have the connection associated and working like this:
Code:
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:21:63:67:3b:39
hwaddr 00:21:63:67:3b:39
inet 192.168.10.110 netmask 0xffffff00 broadcast 192.168.10.255
inet 192.168.10.21 netmask 0xffffffff broadcast 192.168.10.21
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
status: associated
ssid TN_24GHz_0C7D93 channel 11 (2462 MHz 11g ht/20) bssid c4:ea:1d:0c:7d:93
Then, if I change my /etc/rc.conf into this:
Code:
wpa_supplicant_enable="YES"
wlans_ath0="wlan0"
ifconfig_wlan0="WPA inet 192.168.10.110 netmask 0xffffff00 ssid TN_24GHz_0C7D93
"
ifconfig_wlan0_alias0="inet 192.168.10.21 netmask 0xffffffff"
defaultrouter="192.168.10.1"
create_args_wlan0="country SE regdomain ETSI"
gateway_enable="YES" #Enable as LAN gateway
The new result after
# service netif restart && service routing restart
(or reboot for that sake):
Code:
wlan0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu
1500
ether 00:21:63:67:3b:39
hwaddr 00:21:63:67:3b:39
inet 192.168.10.110 netmask 0xffffff00 broadcast 192.168.10.255
inet 192.168.10.21 netmask 0xffffffff broadcast 192.168.10.21
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid TN_24GHz_0C7D93 channel 10 (2457 MHz 11g)
regdomain ETSI country SE indoor ecm authmode WPA1+WPA2/802.11i
privacy MIXED deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60
protmode CTS wme burst roaming MANUAL
groups: wlan
Now when I ping the router it is:
Code:
PING 192.168.10.1 (192.168.10.1): 56 data bytes
ping: sendto: Network is down
ping: sendto: Network is down
ping: sendto: Network is down
ping: sendto: Network is down
^C
No other things are changed except that I add the alias to /etc/rc.conf.
What am I doing wrong or missing? :/
Please help.
--- michael_hackson