debian 双网卡设置 问题

[复制链接]
查看11 | 回复1 | 2021-3-5 02:02:57 | 显示全部楼层 |阅读模式
我本地的一台机器 双网卡 系统 debian
网卡配置
debian:~# vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo eth0 eth1
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.205
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.206
iface eth1 inet static
address 192.168.10.207
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255

这样的配置 保存后 运行命令
debian:~# /etc/init.d/networking restart
Reconfiguring network interfaces...if-up.d/mountnfs[eth0]: waiting for interface eth1 before doing NFS mounts (warning).
done.

或者
debian:~# /etc/init.d/networking force-reload
Reconfiguring network interfaces...if-up.d/mountnfs[eth0]: waiting for interface eth1 before doing NFS mounts (warning).
done.

报这个错误 而且 两个网卡 依然能够 正常工作通信
可是如果只启动其中一个网卡 就不会报错
谁知道是什么问题吗






回复

使用道具 举报

千问 | 2021-3-5 02:02:57 | 显示全部楼层
其实我是来浇水的 嘿嘿
。。。沉了 我顶一下 (*^__^*) 嘻嘻……
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行