Hi all,
I have a set network aliases in /etc/rc.conf to use them in my jails.
when I start my desktop sometimes it doesn't create all the aliases (few of them will be missing) and consequently some of the jails won't have network.
I usually restart my wlan0
As you see all the aliases are there but the SSID comes as "" and the router IP 192.168.0.16 is missing.
I tried to check the dhclient
I tried using ifconfig to set manually the ssid and the IP they will show up but still won't have internet.
Eventually I have to disable the aliases in rc.conf and restart wlan0 to have the internet back (connection to the router). No matter how much I try it doesn't work... Any help will be appreciated.
I have a set network aliases in /etc/rc.conf to use them in my jails.
Code:
# Adding alias for wlan0 for jails
ifconfig_wlan0_alias0="inet 192.168.0.100 netmask 0xffffff00 broadcast 192.168.0.255"
ifconfig_wlan0_alias1="inet 192.168.0.101 netmask 0xffffff00 broadcast 192.168.0.255"
ifconfig_wlan0_alias2="inet 192.168.0.102 netmask 0xffffff00 broadcast 192.168.0.255"
ifconfig_wlan0_alias3="inet 192.168.0.103 netmask 0xffffff00 broadcast 192.168.0.255"
ifconfig_wlan0_alias4="inet 192.168.0.104 netmask 0xffffff00 broadcast 192.168.0.255"
ifconfig_wlan0_alias5="inet 192.168.0.105 netmask 0xffffff00 broadcast 192.168.0.255"
when I start my desktop sometimes it doesn't create all the aliases (few of them will be missing) and consequently some of the jails won't have network.
I usually restart my wlan0
service netif restart wlan0
. And when I do that all the alias will be loaded correctly but will wlan0 won't connect to the SSID.
Code:
~ % ifconfig -a
msk0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:1d:72:f0:48:dc
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
wlan0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:21:6b:51:73:20
inet 192.168.0.100 netmask 0xffffff00 broadcast 192.168.0.255
inet 192.168.0.101 netmask 0xffffff00 broadcast 192.168.0.255
inet 192.168.0.102 netmask 0xffffff00 broadcast 192.168.0.255
inet 192.168.0.103 netmask 0xffffff00 broadcast 192.168.0.255
inet 192.168.0.104 netmask 0xffffff00 broadcast 192.168.0.255
inet 192.168.0.105 netmask 0xffffff00 broadcast 192.168.0.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 157 (5785 MHz 11a)
regdomain FCC country US authmode WPA1+WPA2/802.11i privacy MIXED
deftxkey UNDEF txpower 23 bmiss 10 mcastrate 6 mgmtrate 6 scanvalid 60
wme roaming MANUAL bintval 0
groups: wlan
As you see all the aliases are there but the SSID comes as "" and the router IP 192.168.0.16 is missing.
I tried to check the dhclient
Code:
:~ % sudo dhclient wlan0
wlan0: no link .............. giving up
Eventually I have to disable the aliases in rc.conf and restart wlan0 to have the internet back (connection to the router). No matter how much I try it doesn't work... Any help will be appreciated.
Last edited by a moderator: