天天看點

在linux下disable 網卡

disable eth0 網卡

ifconfig eth0 down

enable eth0 網卡

ifconfig eth0 up

以下可以檢視網卡連接配接的狀态及速度

 [[email protected] ~]# ethtool eth0

Settings for eth0:

        Supported ports: [ TP ]

        Supported link modes:   1000baseT/Full 

                               10000baseT/Full 

        Supports auto-negotiation: No

        Advertised link modes:  Not reported

        Advertised auto-negotiation: No

        Speed: 10000Mb/s

        Duplex: Full

        Port: Twisted Pair

        PHYAD: 0

        Transceiver: internal

        Auto-negotiation: off

        Supports Wake-on: uag

        Wake-on: d

        Link detected: yes

繼續閱讀