ifconfig: 無効なアドレス "-apbridge"

ifconfig: 無効なアドレス

OpenWRTルーターでネットワークインターフェースを構成する必要があります。そのため、/etc/config/network ファイルの一部のオプションを変更する必要があります。具体的にブリッジを削除したい。シェルで次のコマンドをそれぞれ試しました。

ifconfig lan -apbridge
ifconfig eth0 -apbridge

各コマンドの出力は次のようになります。

ifconfig: bad address '-apbridge'

私も次のことを試しました:

ifconfig lan type -apbridge
ifconfig eth0 type -apbridge

各コマンドの出力は次のようになります。

ifconfig: bad address 'type'

ナノエディタを使用してファイルから直接オプションを削除できることを知っていますが、私の場合はこれは実用的ではありません。コマンドラインからブリッジ接続を削除する必要があります。

どうすればいいですか..ありがとう

ベストアンサー1

頑張ってbrctl...

root@ap5:~# brctl --help
BusyBox v1.19.4 (2013-03-14 11:28:31 UTC) multi-call binary.

Usage: brctl COMMAND [BRIDGE [INTERFACE]]

Manage ethernet bridges

Commands:
        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/off

root@ap5:~# brctl show
bridge name     bridge id               STP enabled     interfaces
br-lan          8000.deadc0decafe       no              eth0
                                                        wlan0

... "delif"を使用すると、ブリッジから不要なインターフェイスを分離できます。

バージョンが重要な場合:この行は、「態度調整(12.09、r36088)」ボックスからのものです。

おすすめ記事