I need to configure the network interfaces in my OpenWRT-router. hence I need to change some options in the /etc/config/network file. specifically I want to remove the bridge connection. I have tried each one of the following commands on my shell:ifconfig lan -apbridgeifconfig eth0 -apbridgeeach command output is:ifconfig: bad address '-apbridge'I've tried these too:ifconfig lan type -apbridgeifconfig eth0 type -apbridgeeach command output is:ifconfig: bad address 'type'I know I can just use nano editor and remove the option from the file directly, but in my case this is not practical. I need to remove the bridge connection from the command line..how can I do that .. thanks
ifconfig: bad address '-apbridge'
linux;openwrt
Try brctl...root@ap5:~# brctl --helpBusyBox v1.19.4 (2013-03-14 11:28:31 UTC) multi-call binary.Usage: brctl COMMAND [BRIDGE [INTERFACE]]Manage ethernet bridgesCommands:        show                    Show a list of bridges        addbr BRIDGE            Create BRIDGE        delbr BRIDGE            Delete BRIDGE        addif BRIDGE IFACE      Add IFACE to BRIDGE        delif BRIDGE IFACE      Delete IFACE from BRIDGE        setageing BRIDGE TIME           Set ageing time        setfd BRIDGE TIME               Set bridge forward delay        sethello BRIDGE TIME            Set hello time        setmaxage BRIDGE TIME           Set max message age        setpathcost BRIDGE COST         Set path cost        setportprio BRIDGE PRIO         Set port priority        setbridgeprio BRIDGE PRIO       Set bridge priority        stp BRIDGE [1/yes/on|0/no/off]  STP on/offroot@ap5:~# brctl showbridge name     bridge id               STP enabled     interfacesbr-lan          8000.deadc0decafe       no              eth0                                                        wlan0...using 'delif' you can unplug unwanted interfaces from the bridge.If versions matter: These lines are from an ATTITUDE ADJUSTMENT (12.09, r36088)-box.