Solved Static IP over WPA Wifi

How Big of a n00b am I

  • Meh. Happens to the best of us.

    Votes: 0 0.0%
  • Big n00b. RTFM

    Votes: 0 0.0%
  • Go out and buy an iMac

    Votes: 0 0.0%

  • Total voters
    3
  • Poll closed .
I have a laptop the I installed 10.3 on. Trying to get the Wifi working with a static IP...

Code:
root@laptop:/etc # ifconfig
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
  options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
  ether e4:11:5b:45:ff:20
  nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
  media: Ethernet autoselect (10baseT/UTP <half-duplex>)
  status: no carrier
ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
  ether 7c:e9:d3:36:c2:13
  nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
  media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
  status: associated
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 0x3
  inet 127.0.0.1 netmask 0xff000000
  nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
  ether 7c:e9:d3:36:c2:13
  inet 192.168.1.200 netmask 0xffffff00 broadcast 192.168.1.255
  nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
  media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
  status: associated
  ssid "NSA Surveillance Van-17" channel 11 (2462 MHz 11g) bssid e0:91:f5:67:24:26
  country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
  AES-CCM 2:128-bit txpower 0 bmiss 7 scanvalid 60 protmode CTS wme
  roaming MANUAL
Code:
root@laptop:/etc # cat rc.conf
hostname="laptop"
sshd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"

# Wifi
wlans_ral0="wlan0"
ifconfig_wlan0="WPA inet 192.168.1.200 netmask 255.255.255.0 ssid 'NSA Surveillance Van-17'"
Code:
root@laptop:/etc # cat wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1

network={
  ssid="NSA Surveillance Van-17"
  psk="********" <--- Obvious edit
  priority=5
}
Code:
# Generated by resolvconf
nameserver 8.8.8.8
nameserver 192.168.1.1

I am shelled into the machine with the line
Code:
ssh 192.168.1.200
So I own the IP. But, I cannot seem to get OUT of my own network....



**EDIT**

I am leaving this up here as an act of contrition.
I am public shaming myself.
In my haste to get online, I neglected to define the defaultrouter= in rc.conf

Sorry.
 
AFAIK you can leave out
Code:
ssid 'NSA Surveillance Van-17'
from rc.conf when you use WPA. wpa_supplicant chooses the SSID by itself.
 
AFAIK you can leave out
Code:
ssid 'NSA Surveillance Van-17'
from rc.conf when you use WPA. wpa_supplicant chooses the SSID by itself.

Putting it into both disables roaming if that's desired because the SSID listed in /etc/rc.conf becomes the only one the system accepts.
 
Back
Top