Re: Athn0 won't link with new router!!
On 01/23/13 00:55, slhactivist wrote: Hi there misc! I'm having trouble connecting to my router. Any help would be appreciated. I can get athn0 to link, but then it sends a dozen DHCPREQUESTs, and then sends DHCPDISCOVERs until it sleeps... I've never had this problem before. Last time I switch routers, I just changed nwid, and wpakey with ifconfig, then ran dhclient for athn0 and it worked. This time i've tried setting chan, bssid, nwid, nwkey, wpakey, and wpaakms. I've et these parameters with ifconfig, and also entered into my /etc/hostname.athn0 file I've also tried entering (into the /etc/hostname.athn0 file) dhcp and dhcp NONE NONE NONE before any parameters. Usually, the anth0 won't link, just sleeps. But sometimes I can get it to send some DHCPREQUESTs and DHCPDISCOVERs before sleeping... _ Um...I haven't changed much. Just edited the /etc/pf.conf file (just delete all blank lines and comments to make it smaller :P) and did whatever afterboot said, oh and also right at the end of /etc/netstart I added ifconfig athn0 lladdr random to randomize my MAC on each boot. Don't do that. If you really want it, just put lladdr random first in the hostname.athn0 file. Ooooh... did you put it *last* in netstart? Meaning you change MAC address *after* starting dhclient and friends? Sounds like a really bad idea to me. Sometimes I try running /etc/netstart athn0 instead of dhclient athn0. Oh, and also I edited /etc/dhclient.conf a little, just to make it try longer before going to sleep, but doesn't help. Anyone have any ideas??? I'm totally stuck! (reading RFC 2131 right now...) Here's my /etc/hostname.athn0 file: -wol group egress chan 11 bssid ** nwid ** nwkey ** wpakey ** wpaakms pks dhcp NONE NONE NONE And here is ifconfig athn0: athn0 flag=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr: ** priority: 4 groups: wlan egress media: IEEE802.11 autoselect (DS1 mode 11g) Status: no network And when I scan (sudo ifconfig athn0 scan) I get something like this (forgot to write down so from memory): ieee80211: nwid ** chan 11 bssid ** 3dB 54MB privacy, short_preamble, short_slottime wpakey not displayed wpaprotos wpa1, wpa2 wpakms psk wpaciphers tkip, ccmp wpagroupcipher tkip inet ** prefixlen 64 scopeid 0x1 Um...when I looked at the router (It's a D-LINK connected to a Telus DSL box) there is a sticky note on it that says Wireless: NO DHCP...but everyone else is using wireless internet... Also , when I scan for networks, not only does the network name appear, but so does a DLINK and a TELUS network. MAIN PROBLEM: Athn0 won't link...1/10 times it will it seems, after I fiddle with it... I have a feeling this is a simple config file problem, but I'm just not used to editing conf files. Am I going about this the right way? (i.e. editing /etc/dhclient.conf, pf.conf, /etc/hostname.athn0, /etc/myname, and running /etc/netstart, ifconfig, and dhclient?) You should likely only need to edit hostname.athn0 /Alexander
Re: Athn0 won't link with new router!!
On 01/29/13 08:13, slhac tivist wrote: Thank you. Your suggestions have helped. I gave up on DHCP., and can consistently get a link, but I can't even ping the router...here's some info: cat /etc/hostname.athn0: inet 192.168.1.101 255.255.255.0 255.255.255.255 nwid THENAME nwkey THEPASSWORD Are you really using WEP? which results in the following: sudo ifconfig athn0: athn0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr * priority: 4 groups: wlan egress media: IEEE802.11 autoselect (DS5 mode 11g) status: *active* # YAY NICE! ieee80211: nwid DAMEHIGH chan 11 bssid 0*** 41dB nwkey not displayed inet 192.168.1.101 netmask 0xff00 broadcast 192.168.1.255 inet6 fe80::e6ac:35ff:fea9:5a9d%athn0 prefixlen 64 scopeid 0x1 Hmmm as you get active, indeed it seems so. Well, to each his own. Also, if you consider your MAC address a secret, you might as well hide the automagic ipv6 address too... But then again, why would you? :-) OTOH i dont know how the ipv6 address reacts to lladdr random, but even less the need to hide it. :-) route -vn show: Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface Label default192.168.1.254 UGS00 -12 athn0 127/8 127.0.0.1 UGRS 00 33196 8 lo0 127.0.0.1 127.0.0.1 UH 20 33196 4 lo0 192.168.1/24 link#1 UC 10 - 4 athn0 192.168.1.100 127.0.0.1 UGHS 00 33196 8 lo0 192.168.1.254 link#1 UHLc 1 21 - 4 athn0 224/4 127.0.0.1 URS00 33196 8 lo0 Any ideas I'm totally stumped! Some miscellaneous anomalies that may or may not be related include: -tcpdump won't capture on athn0 -when i boot, /etc/netstart sets the default route to 192.168.1.253 ... and i always need to change it to 192.168.1.254 for the re0 to work -kind of weird...they've got a dsl box that provides internet+wireless...and a router connected to it (with the wireless turned off and dhcp off) using it as a hub ? to wire the rest of the house with ethernet? Do you have an /etc/mygate ? /Alexander
Re: Athn0 won't link with new router!!
On 01/29/13 09:49, Alexander Hall wrote: On 01/23/13 00:55, slhactivist wrote: Hi there misc! I'm having trouble connecting to my router. Any help would be appreciated. I can get athn0 to link, but then it sends a dozen DHCPREQUESTs, and then sends DHCPDISCOVERs until it sleeps... I've never had this problem before. Last time I switch routers, I just changed nwid, and wpakey with ifconfig, then ran dhclient for athn0 and it worked. This time i've tried setting chan, bssid, nwid, nwkey, wpakey, and wpaakms. I've et these parameters with ifconfig, and also entered into my /etc/hostname.athn0 file I've also tried entering (into the /etc/hostname.athn0 file) dhcp and dhcp NONE NONE NONE before any parameters. Usually, the anth0 won't link, just sleeps. But sometimes I can get it to send some DHCPREQUESTs and DHCPDISCOVERs before sleeping... _ Um...I haven't changed much. Just edited the /etc/pf.conf file (just delete all blank lines and comments to make it smaller :P) and did whatever afterboot said, oh and also right at the end of /etc/netstart I added ifconfig athn0 lladdr random to randomize my MAC on each boot. Don't do that. If you really want it, just put lladdr random first in the hostname.athn0 file. Ooooh... did you put it *last* in netstart? Meaning you change MAC address *after* starting dhclient and friends? Sounds like a really bad idea to me. Sometimes I try running /etc/netstart athn0 instead of dhclient athn0. Oh, and also I edited /etc/dhclient.conf a little, just to make it try longer before going to sleep, but doesn't help. Anyone have any ideas??? I'm totally stuck! (reading RFC 2131 right now...) Here's my /etc/hostname.athn0 file: -wol group egress chan 11 bssid ** nwid ** nwkey ** wpakey ** wpaakms pks dhcp NONE NONE NONE And here is ifconfig athn0: athn0 flag=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr: ** priority: 4 groups: wlan egress media: IEEE802.11 autoselect (DS1 mode 11g) Status: no network And when I scan (sudo ifconfig athn0 scan) I get something like this (forgot to write down so from memory): ieee80211: nwid ** chan 11 bssid ** 3dB 54MB privacy, short_preamble, short_slottime wpakey not displayed wpaprotos wpa1, wpa2 wpakms psk wpaciphers tkip, ccmp wpagroupcipher tkip inet ** prefixlen 64 scopeid 0x1 Um...when I looked at the router (It's a D-LINK connected to a Telus DSL box) there is a sticky note on it that says Wireless: NO DHCP...but everyone else is using wireless internet... Also , when I scan for networks, not only does the network name appear, but so does a DLINK and a TELUS network. MAIN PROBLEM: Athn0 won't link...1/10 times it will it seems, after I fiddle with it... I have a feeling this is a simple config file problem, but I'm just not used to editing conf files. Am I going about this the right way? (i.e. editing /etc/dhclient.conf, pf.conf, /etc/hostname.athn0, /etc/myname, and running /etc/netstart, ifconfig, and dhclient?) You should likely only need to edit hostname.athn0 well, myname could be nice too. /Alexander
Re: Athn0 won't link with new router!!
Thank you. Your suggestions have helped. I gave up on DHCP., and can consistently get a link, but I can't even ping the router...here's some info: cat /etc/hostname.athn0: inet 192.168.1.101 255.255.255.0 255.255.255.255 nwid THENAME nwkey THEPASSWORD which results in the following: sudo ifconfig athn0: athn0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr * priority: 4 groups: wlan egress media: IEEE802.11 autoselect (DS5 mode 11g) status: *active* # YAY NICE! ieee80211: nwid DAMEHIGH chan 11 bssid 0*** 41dB nwkey not displayed inet 192.168.1.101 netmask 0xff00 broadcast 192.168.1.255 inet6 fe80::e6ac:35ff:fea9:5a9d%athn0 prefixlen 64 scopeid 0x1 route -vn show: Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface Label default192.168.1.254 UGS00 -12 athn0 127/8 127.0.0.1 UGRS 00 33196 8 lo0 127.0.0.1 127.0.0.1 UH 20 33196 4 lo0 192.168.1/24 link#1 UC 10 - 4 athn0 192.168.1.100 127.0.0.1 UGHS 00 33196 8 lo0 192.168.1.254 link#1 UHLc 1 21 - 4 athn0 224/4 127.0.0.1 URS00 33196 8 lo0 Any ideas I'm totally stumped! Some miscellaneous anomalies that may or may not be related include: -tcpdump won't capture on athn0 -when i boot, /etc/netstart sets the default route to 192.168.1.253 ... and i always need to change it to 192.168.1.254 for the re0 to work -kind of weird...they've got a dsl box that provides internet+wireless...and a router connected to it (with the wireless turned off and dhcp off) using it as a hub ? to wire the rest of the house with ethernet? Anyway, if you've read this far ... THANKS! Any advice would be appreciated! On Wed, Jan 23, 2013 at 1:07 AM, Peter N. M. Hansteen pe...@bsdly.netwrote: On Tue, Jan 22, 2013 at 03:55:27PM -0800, slhactivist wrote: Hi there misc! I'm having trouble connecting to my router. Any help would be appreciated. I can get athn0 to link, but then it sends a dozen DHCPREQUESTs, and then sends DHCPDISCOVERs until it sleeps... This sounds very much like no DHCP available. - Peter -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ Remember to set the evil bit on all malicious network traffic delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
Re: Athn0 won't link with new router!!
On Tue, Jan 22, 2013 at 03:55:27PM -0800, slhactivist wrote: Hi there misc! I'm having trouble connecting to my router. Any help would be appreciated. I can get athn0 to link, but then it sends a dozen DHCPREQUESTs, and then sends DHCPDISCOVERs until it sleeps... This sounds very much like no DHCP available. - Peter -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ Remember to set the evil bit on all malicious network traffic delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
Athn0 won't link with new router!!
Hi there misc! I'm having trouble connecting to my router. Any help would be appreciated. I can get athn0 to link, but then it sends a dozen DHCPREQUESTs, and then sends DHCPDISCOVERs until it sleeps... I've never had this problem before. Last time I switch routers, I just changed nwid, and wpakey with ifconfig, then ran dhclient for athn0 and it worked. This time i've tried setting chan, bssid, nwid, nwkey, wpakey, and wpaakms. I've et these parameters with ifconfig, and also entered into my /etc/hostname.athn0 file I've also tried entering (into the /etc/hostname.athn0 file) dhcp and dhcp NONE NONE NONE before any parameters. Usually, the anth0 won't link, just sleeps. But sometimes I can get it to send some DHCPREQUESTs and DHCPDISCOVERs before sleeping... _ Um...I haven't changed much. Just edited the /etc/pf.conf file (just delete all blank lines and comments to make it smaller :P) and did whatever afterboot said, oh and also right at the end of /etc/netstart I added ifconfig athn0 lladdr random to randomize my MAC on each boot. Sometimes I try running /etc/netstart athn0 instead of dhclient athn0. Oh, and also I edited /etc/dhclient.conf a little, just to make it try longer before going to sleep, but doesn't help. Anyone have any ideas??? I'm totally stuck! (reading RFC 2131 right now...) Here's my /etc/hostname.athn0 file: -wol group egress chan 11 bssid ** nwid ** nwkey ** wpakey ** wpaakms pks dhcp NONE NONE NONE And here is ifconfig athn0: athn0 flag=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr: ** priority: 4 groups: wlan egress media: IEEE802.11 autoselect (DS1 mode 11g) Status: no network And when I scan (sudo ifconfig athn0 scan) I get something like this (forgot to write down so from memory): ieee80211: nwid ** chan 11 bssid ** 3dB 54MB privacy, short_preamble, short_slottime wpakey not displayed wpaprotos wpa1, wpa2 wpakms psk wpaciphers tkip, ccmp wpagroupcipher tkip inet ** prefixlen 64 scopeid 0x1 Um...when I looked at the router (It's a D-LINK connected to a Telus DSL box) there is a sticky note on it that says Wireless: NO DHCP...but everyone else is using wireless internet... Also , when I scan for networks, not only does the network name appear, but so does a DLINK and a TELUS network. MAIN PROBLEM: Athn0 won't link...1/10 times it will it seems, after I fiddle with it... I have a feeling this is a simple config file problem, but I'm just not used to editing conf files. Am I going about this the right way? (i.e. editing /etc/dhclient.conf, pf.conf, /etc/hostname.athn0, /etc/myname, and running /etc/netstart, ifconfig, and dhclient?) Thanks in advance!!! P.S. using openbsd 5.2, running on a toshiba netbook. -- View this message in context: http://openbsd.7691.n7.nabble.com/Athn0-won-t-link-with-new-router-tp222408.html Sent from the openbsd user - misc mailing list archive at Nabble.com.