OpenWrt Forum Archive

Topic: SIOCGIFFLAGS: No such device ??

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

Hey!

I installed these pakages on my WRT54GL (OpenWRT 8.09.1):
pptp kmod-mppe kmod-crypto

and wrote the following in my /etc/config/network:

#### VLAN configuration 
config switch eth0
    option vlan0    "0 1 2 3 5*"
    option vlan1    "4 5"


#### Loopback configuration
config interface loopback
    option ifname    "lo"
    option proto    static
    option ipaddr    127.0.0.1
    option netmask    255.0.0.0


#### LAN configuration
config interface lan
    option type     bridge
    option ifname    "eth0.0"
    option proto    static
    option ipaddr    172.16.1.1
    option netmask    255.255.255.0


#### WAN configuration
config interface    wan
    option ifname    "eth0.1"
    option proto    dhcp
    
config interface wan2
    option ifname   'ppp0'
    option proto    'pptp'
    option server   "vpn.stw-bonn.de"
    option username 'MYUSERNAME'
    option password 'MYPASSWORD'

config route studnet
    option interface wan
    option target 192.168.0.0
    option netmask 255.255.0.0
    option gateway 192.168.16.1

and when i want to start wan2, i get this:

root@OpenWrt:~# ifconfig wan2 up
ifconfig: SIOCGIFFLAGS: No such device

and:

root@OpenWrt:~# ifup wan2
udhcpc: SIOCGIFINDEX: No such device

i flashed the Box two times but both time the same error... can anybody help please?

You need to set the ifname to the "physical" device which provides the initial connectivity to establish the tunnel. Best is to comment out the entire wan section, rename your wan2 to wan, and set the ifname to eth0.1 (which is the ethernet port that is physically providing the wan connection).

OpenWrt should do the ppp0 setup etc. by itself. There is no need to specify it in the network config.

~ JoW

(Last edited by jow on 10 Sep 2009, 13:48)

The discussion might have continued from here.