Skip to content

Instantly share code, notes, and snippets.

@grahamperrin
Created December 12, 2016 19:23
Show Gist options
  • Save grahamperrin/0bf62edae99abd6b429582da7fa3e020 to your computer and use it in GitHub Desktop.
Save grahamperrin/0bf62edae99abd6b429582da7fa3e020 to your computer and use it in GitHub Desktop.
FreeBSD-CURRENT TrueOS Desktop (unstable) connecting to an unwanted wireless network
# The terminal sesion in the screen recording that's linked from
# https://gitter.im/trueos/Lobby?at=584eea6a9ce5147013cd6df2
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo pc-netmanager
Locale: "en"
route: route has not been found
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo pc-netmanager
Locale: "en"
route: route has not been found
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo pc-netmanager
Locale: "en"
route: route has not been found
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 58:20:b1:d8:f9:66
inet6 fe80::5a20:b1ff:fed8:f966%em0 prefixlen 64 scopeid 0x1
inet 193.62.168.100 netmask 0xffffff00 broadcast 193.62.168.255
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 94:65:9c:0f:c3:9b
inet6 fe80::9665:9cff:fe0f:c39b%wlan0 prefixlen 64 scopeid 0x3
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
status: associated
ssid BTWi-fi channel 1 (2412 MHz 11g) bssid 52:64:d9:1e:a8:3a
regdomain FCC country US authmode OPEN privacy OFF txpower 30
bmiss 10 scanvalid 60 protmode CTS wme
groups: wlan
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo service wpa_supplicant start
Password:
wpa_supplicant| * Starting WPA Supplicant Daemon ...
wpa_supplicant|Successfully initialized wpa_supplicant
wpa_supplicant|wlan0: Failed to initialize driver interface
wpa_supplicant| * start-stop-daemon: failed to start `/usr/local/sbin/wpa_supplicant'
wpa_supplicant| * Failed to start WPA Supplicant Daemon [ !! ]
wpa_supplicant| * ERROR: wpa_supplicant failed to start
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> service wpa_supplicant status
* status: stopped
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 58:20:b1:d8:f9:66
inet6 fe80::5a20:b1ff:fed8:f966%em0 prefixlen 64 scopeid 0x1
inet 193.62.168.100 netmask 0xffffff00 broadcast 193.62.168.255
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo service wpa_supplicant start
wpa_supplicant| * Starting WPA Supplicant Daemon ...
wpa_supplicant|Successfully initialized wpa_supplicant
wpa_supplicant|wlan0: Failed to initialize driver interface
wpa_supplicant| * start-stop-daemon: failed to start `/usr/local/sbin/wpa_supplicant'
wpa_supplicant| * Failed to start WPA Supplicant Daemon [ !! ]
wpa_supplicant| * ERROR: wpa_supplicant failed to start
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo service wpa_supplicant restart
wpa_supplicant| * Starting WPA Supplicant Daemon ...
wpa_supplicant|Successfully initialized wpa_supplicant
wpa_supplicant|wlan0: Failed to initialize driver interface
wpa_supplicant| * start-stop-daemon: failed to start `/usr/local/sbin/wpa_supplicant'
wpa_supplicant| * Failed to start WPA Supplicant Daemon [ !! ]
wpa_supplicant| * ERROR: wpa_supplicant failed to start
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo service network restart
network | * WARNING: you are stopping a boot service
netmount | * Unmounting network filesystems ...
dhcpcd | * Stopping DHCP Client Daemon ... [ ok ]
network | * Stopping network ...
network |network.lo0 | * Caching service dependencies ... [ ok ]
network | * Starting network services ...
network |network.em0 | * Starting network (em0) ... [ ok ]
network |network.lo0 | * Starting network (lo0) ... [ ok ]
network | * Created wlan0
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> netmount | * Mounting network filesystems ... [ ok ]
dhcpcd | * Detected DHCP Client Daemon interfaces: wlan0 ... [ ok ]
dhcpcd | * Starting DHCP Client Daemon ...
dhcpcd |using config file `/usr/local/etc/dhcpcd.conf' [ ok ]
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo pc-netmanager
Locale: "en"
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo service wpa_supplicant restart
wpa_supplicant| * Starting WPA Supplicant Daemon ...
wpa_supplicant|Successfully initialized wpa_supplicant [ ok ]
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 58:20:b1:d8:f9:66
inet6 fe80::5a20:b1ff:fed8:f966%em0 prefixlen 64 scopeid 0x1
inet 193.62.168.100 netmask 0xffffff00 broadcast 193.62.168.255
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 94:65:9c:0f:c3:9b
inet6 fe80::9665:9cff:fe0f:c39b%wlan0 prefixlen 64 scopeid 0x3
inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
status: associated
ssid piano channel 1 (2412 MHz 11g) bssid 58:1f:28:74:07:a4
regdomain FCC country US authmode WPA2/802.11i privacy ON
deftxkey UNDEF TKIP 2:128-bit txpower 30 bmiss 10 scanvalid 60
protmode CTS wme roaming MANUAL
groups: wlan
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> drill
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 36704
;; flags: qr rd ra ; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 15
;; QUESTION SECTION:
;; . IN NS
;; ANSWER SECTION:
. 1045 IN NS m.root-servers.net.
. 1045 IN NS a.root-servers.net.
. 1045 IN NS b.root-servers.net.
. 1045 IN NS c.root-servers.net.
. 1045 IN NS d.root-servers.net.
. 1045 IN NS e.root-servers.net.
. 1045 IN NS f.root-servers.net.
. 1045 IN NS g.root-servers.net.
. 1045 IN NS h.root-servers.net.
. 1045 IN NS i.root-servers.net.
. 1045 IN NS j.root-servers.net.
. 1045 IN NS k.root-servers.net.
. 1045 IN NS l.root-servers.net.
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
a.root-servers.net. 3595975 IN A 198.41.0.4
b.root-servers.net. 3595975 IN A 192.228.79.201
c.root-servers.net. 3595975 IN A 192.33.4.12
d.root-servers.net. 3595975 IN A 199.7.91.13
e.root-servers.net. 3595975 IN A 192.203.230.10
f.root-servers.net. 3595975 IN A 192.5.5.241
g.root-servers.net. 3595975 IN A 192.112.36.4
h.root-servers.net. 3595975 IN A 198.97.190.53
i.root-servers.net. 3595975 IN A 192.36.148.17
j.root-servers.net. 3595975 IN A 192.58.128.30
k.root-servers.net. 3595975 IN A 193.0.14.129
l.root-servers.net. 3595975 IN A 199.7.83.42
m.root-servers.net. 3595975 IN A 202.12.27.33
a.root-servers.net. 3595975 IN AAAA 2001:503:ba3e::2:30
b.root-servers.net. 3595975 IN AAAA 2001:500:84::b
;; Query time: 4 msec
;; SERVER: 192.168.1.1
;; WHEN: Mon Dec 12 18:14:22 2016
;; MSG SIZE rcvd: 492
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo pc-netmanager
Locale: "en"
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> uname -v
FreeBSD 12.0-CURRENT #59 deb4a9b(drm-next-4.7): Sun Dec 11 19:50:23 UTC 2016 root@gauntlet:/usr/obj/usr/src/sys/GENERIC
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment