OpenWrt Forum Archive

Topic: Problem creating nas0 device

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I have tried to create this device several times and I keep ending up with this error:

root@OpenWrt:/etc/config# br2684ctl -c 0 -a 0.35
br2684ctl[1774]: socket creation failed: Address family not supported by protocol
br2684ctl[1774]: Communicating over ATM 0.0.35, encapsulation: LLC

br2684ctl[1774]: failed to create socket 124, reason: Address family not supported by protocol
br2684ctl[1774]: setsockopt SO_SNDBUF: (-1) Unknown error -1

br2684ctl[1774]: setsockopt SO_ATMQOS 9
br2684ctl[1774]: Fatal: failed to connect on socket

I have succesfully configured the pppoe using the documented uci commands for OpenWRT Kamikaze 8.09 but if I can't bridge the ppp0 device I cannot use it.

Has anyone else experienced the above errors trying to create the nic nas0? Any suggestions?

Mike

Update:

I was able to create the device but now have the following error:

br2684ctl[2392]: Interface "nas0" created sucessfully
br2684ctl[2392]: Communicating over ATM 0.0.35, encapsulation: LLC
br2684ctl[2392]: Fatal: failed to connect on socket; No such device

Any help is much appreciated.

Thanks,
Mike

Thank you for the quick reply.

Unfortunately, though, it didn't help me. For some reason I cannot even create the nas0 interface because of this error:

br2684ctl[2392]: Fatal: failed to connect on socket; No such device

I cannot set my wan interface to nas0 because technically it doesn't exist yet (even though it said it has been created).

Essentially, all I need to do is bridge my WAN to my LAN using PPPoE. The stock firmware seems to do this automatically when you authenticate as a pppoe user (creates some sort of a bridged network device on which both the LAN and WAN connect).

Can you suggest a step-by-step approach to make this work? I plan on writing a wiki myself once I get it working but need a hand with what really should be a simple task....

Thanks,
Mike

Please post the contents of "/etc/config/network" excluding your pppoe username/password.

Sorry for the delayed response, KillaB. I've had nothing but problems trying to sort out my pppoe. Here is my config (as you asked):

This is my OS

root@OpenWrt:/# uname -a
Linux OpenWrt 2.6.25.17 #16 Sun Feb 15 00:19:46 CET 2009 mips unknown

(yes, I made sure I did these commands using the 2.4 kernel first)

nvram set boot_wait=on
nvram set boot_time=10
nvram commit && reboot


Here is the network file (excluding password, etc.)


config 'switch' 'eth0'
        option 'vlan0' '0 1 2 3 5*'
        option 'vlan1' '4 5'

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'type' 'bridge'
        option 'ifname' 'eth0.0'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth0.1'
        option 'proto' 'pppoe'
        option 'username' 'user'
        option 'password' 'pass'

As you can see, there's no entry for NAS0.

This version of the OS is the stock openwrt found here: (just so you know I haven't tweaked anything).

http://downloads.openwrt.org/kamikaze/8 … uashfs.bin


Thanks for your help / suggestions. Sorry again for the long delay in responding.

Mike

Hi !

I think that I have the same problem...

root@OpenWrt:~# br2684ctl -c 0 -a 0.35
br2684ctl[525]: socket creation failed: Address family not supported by protocol
br2684ctl[525]: Communicating over ATM 0.0.35, encapsulation: LLC
br2684ctl[525]: failed to create socket 124, reason: Address family not supported by protocol
br2684ctl[525]: setsockopt SO_SNDBUF: (-1) Unknown error -1
br2684ctl[525]: setsockopt SO_ATMQOS 9
br2684ctl[525]: Fatal: failed to connect on socket; Bad file descriptor

With this setup:

config 'switch' 'eth0'
        option 'vlan0' '0 1 2 3 5*'
        option 'vlan1' '4 5'

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'type' 'bridge'
        option 'ifname' 'eth0.0'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'atm-bridge'
        option 'atmdev' 'nas0'
        option 'unit' '0'
        option 'encaps' 'llc'
        option 'vpi' '0'
        option 'vci' '35'
        option 'payload' 'routed'

config 'interface' 'wan'
        option 'ifname' 'nas0'
        option 'proto' 'pppoe'
        option 'username' 'myusername'
        option 'password' 'mypassword'
        option 'keepalive' '10'

Any hint is apreciated.

Regards,
Jan

I would also like to mention that previously in White Russian the PPPoE worked.

And also this - I am using Linksys WRT54GL router.

(Last edited by janprunk on 8 Mar 2009, 18:28)

I also have a wrt54gl and am having the same problems,
I installed br2684ctl and notice near the bottom of /etc/init.d/br2684ctl it has

insmod br2684 >/dev/null 2>/dev/null

but there is no br2684.o anywhere on my system for it to installed... where can I get it?

Has anyone come up with a solution for this error, its kinda disabling the internet usage for us at this stage.

Has this bug been fixed, yet ?

splat wrote:

I also have a wrt54gl and am having the same problems,
I installed br2684ctl and notice near the bottom of /etc/init.d/br2684ctl it has

insmod br2684 >/dev/null 2>/dev/null

but there is no br2684.o anywhere on my system for it to installed... where can I get it?

You need the kmod-atm package.

The discussion might have continued from here.