温馨提示×

linux添加新网卡的命令是什么

小亿
129
2024-01-09 15:04:27
栏目: 智能运维

在Linux中,添加新网卡的命令是ip命令或ifconfig命令。

  1. 使用ip命令添加新网卡:

    sudo ip link add <interface_name> type <interface_type>
    

    其中,<interface_name>是新网卡的名称,<interface_type>是新网卡的类型,如ethernetbridge等。

  2. 使用ifconfig命令添加新网卡:

    sudo ifconfig <interface_name> up
    

    其中,<interface_name>是新网卡的名称。

请注意,以上命令需要以超级用户(即root用户)或具有管理员权限的用户来执行。

0