Re: configure ethernet and wireless(solved)

2016-09-14 Thread George Pediaditis
I found the problem.
The hostname.iwm0 was
"nwid COSMOTE-C4F2EC
wpakey QqCjuQZJfHAfZCbS
wpaakms psk
up"

and i change it to
"up
nwid COSMOTE-C4F2EC
wpakey QqCjuQZJfHAfZCbS
wpaakms psk"

thanks

On Wed, Sep 14, 2016 at 10:05 PM, Raf Czlonka  wrote:
> On Wed, Sep 14, 2016 at 06:59:49PM BST, George Pediaditis wrote:
>
>> then i followed the instructions on faq to setup a trunk interface.
>>
>> I created the files
>> /etc/hostname.re0 that contains:
>> "up"
>>
>> /etc/hostname.iwm0 that contains:
>> "nwid (ssid)
>> wpakey (wpa psk)
>> wpaakms (psk)
>> up"
>>
>> and /etc/hostname.trunk0 that contains:
>>
>> "trunkproto failover trunkport bge0
>> trunkport iwn0
>> dhcp"
>
> Hi George,
>
> You have you used bge(4) and iwn(4) - interfaces which you don't
> have - instead of re(4) and iwm(4)?
>
> ;^)
>
> Regards,
>
> Raf



Re: configure ethernet and wireless(solved)

2016-09-14 Thread George Pediaditis
@Raf Czlonka
Thanks for your replay.  The hostname.trunk0 is correct. My laptop
didn't have access to internet so i used another computer and copied
that part from the webpage and i forgot to change it.



On Wed, Sep 14, 2016 at 10:05 PM, Raf Czlonka  wrote:
> On Wed, Sep 14, 2016 at 06:59:49PM BST, George Pediaditis wrote:
>
>> then i followed the instructions on faq to setup a trunk interface.
>>
>> I created the files
>> /etc/hostname.re0 that contains:
>> "up"
>>
>> /etc/hostname.iwm0 that contains:
>> "nwid (ssid)
>> wpakey (wpa psk)
>> wpaakms (psk)
>> up"
>>
>> and /etc/hostname.trunk0 that contains:
>>
>> "trunkproto failover trunkport bge0
>> trunkport iwn0
>> dhcp"
>
> Hi George,
>
> You have you used bge(4) and iwn(4) - interfaces which you don't
> have - instead of re(4) and iwm(4)?
>
> ;^)
>
> Regards,
>
> Raf



Re: configure ethernet and wireless

2016-09-14 Thread Raf Czlonka
On Wed, Sep 14, 2016 at 06:59:49PM BST, George Pediaditis wrote:

> then i followed the instructions on faq to setup a trunk interface.
> 
> I created the files
> /etc/hostname.re0 that contains:
> "up"
> 
> /etc/hostname.iwm0 that contains:
> "nwid (ssid)
> wpakey (wpa psk)
> wpaakms (psk)
> up"
> 
> and /etc/hostname.trunk0 that contains:
> 
> "trunkproto failover trunkport bge0
> trunkport iwn0
> dhcp"

Hi George,

You have you used bge(4) and iwn(4) - interfaces which you don't
have - instead of re(4) and iwm(4)?

;^)

Regards,

Raf



Re: configure ethernet and wireless

2016-09-14 Thread Gregor Best
Hi George,

On Wed, Sep 14, 2016 at 08:59:49PM +0300, George Pediaditis wrote:
> then i followed the instructions on faq to setup a trunk interface.
> [...]
> and /etc/hostname.trunk0 that contains:
> 
> "trunkproto failover trunkport bge0
> trunkport iwn0
> dhcp"
> [...]

My /etc/hostname.trunk0 has the 'trunkport' entries on separate lines.
That shouldn't make a difference though. Apart from that, it looks
similar.

> 
> Ethernet and wifi doesn't work i reboot my laptop and instead of the
> desktop i ended up in command line. ethernet and wifi  still don't
> work.
> [...]

That sounds weird. Are there error messages of any kind? X should (tm)
work even if there's no network. Is xdm in the output of 'rcctl ls on'?

> [...]
> [demime 1.01d removed an attachment of type application/octet-stream which 
> had a name of dmesg.out]
> 
> [demime 1.01d removed an attachment of type application/octet-stream which 
> had a name of dmesg2.out]
> 

The mailing list stripped your attachments. You'll have to provide them
in-line. It'd also be cool if you could provide the output of ifconfig
and /etc/netstart with your new hostname files.

-- 
Gregor



configure ethernet and wireless

2016-09-14 Thread George Pediaditis
Hello! Im new to openbsd.
I just installed it to my new laptop and i want to configure wireless
and ethernet.
my laptop has Intel dual band wireless ac 3165 for wireless and
realtek 8168 for ethernet.
Ethernet worked fine when i installed it.

I wanted to connect with ethernet (re0 interface) if its available. If
it isn't available then it should connect with my wifi. (iwm0
interface)
i follow the instructions on faq

First i created an hostname.iwm0 that contained:
"nwid (ssid)
wpakey (wpa psk)
wpaakms (psk)
dhcp"

i disconnect ethernet and used sh /etc/netstart iwm0 to restart the
network it worked fine.

then i followed the instructions on faq to setup a trunk interface.

I created the files
/etc/hostname.re0 that contains:
"up"

/etc/hostname.iwm0 that contains:
"nwid (ssid)
wpakey (wpa psk)
wpaakms (psk)
up"

and /etc/hostname.trunk0 that contains:

"trunkproto failover trunkport bge0
trunkport iwn0
dhcp"


Ethernet and wifi doesn't work i reboot my laptop and instead of the
desktop i ended up in command line. ethernet and wifi  still don't
work.

i attach the output of dmesg -s and dmesg

In dmesg i get messages like these

"arp: attempt to overwrite entry for 192.168.1.1 on re0 by
c8:3a:35:20:3c:d8 on iwm0
arp: attempt to add entry for 192.168.1.1 on re0 by 74:a7:8e:c4:f2:ec on trunk0
arp: attempt to add entry for 192.168.1.1 on re0 by 74:a7:8e:c4:f2:ec on trunk0
arp: attempt to add entry for 192.168.1.1 on re0 by 74:a7:8e:c4:f2:ec on trunk0
"
i search the man pages and i got this:
"arp: attempt to add entry for %s on %s by %s on %s
This usually indicates there is more than one interface connected to
the same hub, or that the networks have somehow been short-circuited
(e.g. IPs that should have been present on interface one are present
on interface two)."
I didn't find how to fix it.

Thank you for your help.

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of dmesg.out]

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of dmesg2.out]