ifconfig 및 ip link show는 다른 인터페이스를 표시합니다. bus master,

나는 eno2 데비안 스트레치에서 실수로 인터페이스를 삭제했습니다. /etc/network/interfaces 이제는 이렇게됩니다.

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eno1
iface eno1 inet dhcp

# IPv6 interface
iface eno1 inet6 static
    address ****:****:****::1
    netmask 48

그래서 ifconfig 명령은 다음 인터페이스를 표시합니다.

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:63:12:47:a0  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet ***.***.***.***  netmask 255.255.255.0  broadcast ***.***.***.***
        inet6 ****:****:****::*  prefixlen 48  scopeid 0x0<global>
        inet6 fe80::ec4:7aff:fe0e:c7ee  prefixlen 64  scopeid 0x20<link>
        ether **:**:**:**:**:**  txqueuelen 1000  (Ethernet)
        RX packets 1430101  bytes 213249567 (203.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3066573  bytes 4160098195 (3.8 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0xdf120000-df13ffff

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 950165  bytes 317274829 (302.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 950165  bytes 317274829 (302.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

하지만 ip link show 보여 주다 eno2 인터페이스가 더 이상 존재하지 않는 경우 :

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether **:**:**:**:**:** brd ff:ff:ff:ff:ff:ff
3: eno2: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether **:**:**:**:**:** brd ff:ff:ff:ff:ff:ff
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
    link/ether **:**:**:**:**:** brd ff:ff:ff:ff:ff:ff

비 구성 인터페이스를 삭제하려고했습니다. ip link delete eno2, 오류를 반환합니다. RTNETLINK answers: Operation not supported

어떻게 제거 할 수 있습니까? eno2 인터페이스는 ip link show?


최신 정보: 그만큼 ispconfig -a 명령은 실제로 eno2 인터페이스를 보여 주지만이 NIC는 물리적으로 존재하지 않으므로 삭제하려는 이유가 있습니다.


업데이트 2 : ~의 출력 lspci 명령:

00:00.0 Host bridge: Intel Corporation Atom processor C2000 SoC Transaction Router (rev 02)
    Flags: bus master, fast devsel, latency 0

00:01.0 PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 1 (rev 02) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 24
    Memory at df180000 (64-bit, non-prefetchable) [size=128K]
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] Power Management version 3
    Capabilities: [88] Subsystem: Super Micro Computer Inc Atom processor C2000 PCIe Root Port 1
    Capabilities: [90] MSI: Enable+ Count=1/1 Maskable+ 64bit-
    Capabilities: [100] Advanced Error Reporting
    Kernel driver in use: pcieport
    Kernel modules: shpchp

00:02.0 PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 2 (rev 02) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 25
    Memory at df160000 (64-bit, non-prefetchable) [size=128K]
    Bus: primary=00, secondary=02, subordinate=03, sec-latency=0
    I/O behind bridge: 0000d000-0000dfff
    Memory behind bridge: de000000-df0fffff
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] Power Management version 3
    Capabilities: [88] Subsystem: Super Micro Computer Inc Atom processor C2000 PCIe Root Port 2
    Capabilities: [90] MSI: Enable+ Count=1/1 Maskable+ 64bit-
    Capabilities: [100] Advanced Error Reporting
    Kernel driver in use: pcieport
    Kernel modules: shpchp

00:03.0 PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 3 (rev 02) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 26
    Memory at df140000 (64-bit, non-prefetchable) [size=128K]
    Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] Power Management version 3
    Capabilities: [88] Subsystem: Super Micro Computer Inc Atom processor C2000 PCIe Root Port 3
    Capabilities: [90] MSI: Enable+ Count=1/1 Maskable+ 64bit-
    Capabilities: [100] Advanced Error Reporting
    Kernel driver in use: pcieport
    Kernel modules: shpchp

00:0e.0 Host bridge: Intel Corporation Atom processor C2000 RAS (rev 02)
    Subsystem: Super Micro Computer Inc Atom processor C2000 RAS
    Flags: fast devsel
    Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00

00:0f.0 IOMMU: Intel Corporation Atom processor C2000 RCEC (rev 02)
    Subsystem: Super Micro Computer Inc Atom processor C2000 RCEC
    Flags: bus master, fast devsel, latency 0, IRQ 11
    Capabilities: [40] Express Root Complex Event Collector, MSI 00
    Capabilities: [80] Power Management version 3
    Capabilities: [90] MSI: Enable- Count=1/1 Maskable+ 64bit-
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [150] Root Complex Event Collector <?>

00:13.0 System peripheral: Intel Corporation Atom processor C2000 SMBus 2.0 (rev 02)
    Subsystem: Super Micro Computer Inc Atom processor C2000 SMBus 2.0
    Flags: bus master, fast devsel, latency 0, IRQ 27
    Memory at df1ab000 (64-bit, non-prefetchable) [size=1K]
    Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00
    Capabilities: [80] Power Management version 3
    Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable+ 64bit+
    Capabilities: [100] Advanced Error Reporting
    Kernel driver in use: ismt_smbus
    Kernel modules: i2c_ismt

00:14.0 Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)
    Subsystem: Super Micro Computer Inc Ethernet Connection I354
    Flags: bus master, fast devsel, latency 0, IRQ 20
    Memory at df120000 (64-bit, non-prefetchable) [size=128K]
    I/O ports at e060 [size=32]
    Memory at df1a4000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
    Capabilities: [70] MSI-X: Enable+ Count=10 Masked-
    Capabilities: [a0] Express Root Complex Integrated Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Device Serial Number 0c-c4-7a-ff-ff-0e-c7-ee
    Capabilities: [1a0] Transaction Processing Hints
    Capabilities: [1d0] Access Control Services
    Kernel driver in use: igb
    Kernel modules: igb

00:14.1 Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)
    Subsystem: Super Micro Computer Inc Ethernet Connection I354
    Flags: bus master, fast devsel, latency 0, IRQ 21
    Memory at df100000 (64-bit, non-prefetchable) [size=128K]
    I/O ports at e040 [size=32]
    Memory at df1a0000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
    Capabilities: [70] MSI-X: Enable+ Count=10 Masked-
    Capabilities: [a0] Express Root Complex Integrated Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Device Serial Number 0c-c4-7a-ff-ff-0e-c7-ee
    Capabilities: [1a0] Transaction Processing Hints
    Capabilities: [1d0] Access Control Services
    Kernel driver in use: igb
    Kernel modules: igb

00:16.0 USB controller: Intel Corporation Atom processor C2000 USB Enhanced Host Controller (rev 02) (prog-if 20 [EHCI])
    Subsystem: Super Micro Computer Inc Atom processor C2000 USB Enhanced Host Controller
    Flags: bus master, medium devsel, latency 0, IRQ 23
    Memory at df1aa000 (32-bit, non-prefetchable) [size=1K]
    Capabilities: [50] Power Management version 3
    Capabilities: [58] Debug port: BAR=1 offset=00a0
    Capabilities: [98] PCI Advanced Features
    Kernel driver in use: ehci-pci
    Kernel modules: ehci_pci

00:18.0 SATA controller: Intel Corporation Atom processor C2000 AHCI SATA3 Controller (rev 02) (prog-if 01 [AHCI 1.0])
    Subsystem: Super Micro Computer Inc Atom processor C2000 AHCI SATA3 Controller
    Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 28
    I/O ports at e0b0 [size=8]
    I/O ports at e0a0 [size=4]
    I/O ports at e090 [size=8]
    I/O ports at e080 [size=4]
    I/O ports at e020 [size=32]
    Memory at df1a9000 (32-bit, non-prefetchable) [size=2K]
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [70] Power Management version 3
    Capabilities: [a8] SATA HBA v1.0
    Kernel driver in use: ahci
    Kernel modules: ahci

00:1f.0 ISA bridge: Intel Corporation Atom processor C2000 PCU (rev 02)
    Subsystem: Super Micro Computer Inc Atom processor C2000 PCU
    Flags: bus master, medium devsel, latency 0
    Capabilities: [e0] Vendor Specific Information: Len=0c <?>
    Kernel driver in use: lpc_ich
    Kernel modules: lpc_ich

00:1f.3 SMBus: Intel Corporation Atom processor C2000 PCU SMBus (rev 02)
    Subsystem: Super Micro Computer Inc Atom processor C2000 PCU SMBus
    Flags: medium devsel, IRQ 18
    Memory at df1a8000 (32-bit, non-prefetchable) [size=32]
    I/O ports at e000 [size=32]
    Kernel driver in use: i801_smbus
    Kernel modules: i2c_i801

02:00.0 PCI bridge: ASPEED Technology, Inc. AST1150 PCI-to-PCI Bridge (rev 03) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=02, secondary=03, subordinate=03, sec-latency=32
    I/O behind bridge: 0000d000-0000dfff
    Memory behind bridge: de000000-df0fffff
    Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [78] Power Management version 3
    Capabilities: [80] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
    Capabilities: [a4] Subsystem: Super Micro Computer Inc AST1150 PCI-to-PCI Bridge
    Capabilities: [100] Virtual Channel
    Kernel modules: shpchp

03:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 30) (prog-if 00 [VGA controller])
    Subsystem: Super Micro Computer Inc ASPEED Graphics Family
    Flags: bus master, medium devsel, latency 0, IRQ 17
    Memory at de000000 (32-bit, non-prefetchable) [size=16M]
    Memory at df000000 (32-bit, non-prefetchable) [size=128K]
    I/O ports at d000 [size=128]
    [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
    Kernel driver in use: ast
    Kernel modules: ast



답변

뒤로 : 하드웨어 네트워크 인터페이스가 아닙니다. 한정된 …에서 /etc/network/interfaces. 커널에 의해 감지되어 사용 가능합니다. 당신이 그들 안에 있지 않으면 /etc/network/interfaces사용하지 않고 “다운”상태로 유지됩니다.

ifconfig 기본적으로 “up”인 인터페이스 만 표시합니다. 모든 인터페이스를 보려면, 다음을 사용하십시오. ifconfig -a. 그러면 너는 볼 것이다. eno2, 현재 다운됩니다.

제거 eno2, 시스템에서 실제로 제거해야합니다.

전용 서버에는 이중 포트 NIC가 함께 제공됩니다. 이것은 lspci. 듀얼 포트 NIC이기 때문에 두 번째 포트를 제거 할 수 없습니다.

“Avoton”(C2000) 제품군의 모든 Atom 프로세서에는 최소 2 개의 내장 이더넷 MAC가 있습니다.


답변