DLH*_*DLH 0 networking ubuntu ethernet interface
我们的服务器有三个以太网接口。我有一个插入电缆调制解调器(用于静态 ip),另一个插入路由器(用于访问工作网络的其余部分)。我很确定我在 Xubuntu 下同时运行了两个界面,但是在 Ubuntu Server 下我似乎无法做到这一点;如果我连接到工作网络,我的静态 IP 将停止工作。这种方式违背了拥有多个以太网接口的目的。怎样才能让这两个界面愉快的生活在一起呢?
route
输出:
eth0 关闭
Destination Gateway Genmask Flags Metric Ref Use Iface
74.218.198.192 * 255.255.255.248 U 0 0 0 eth2
default rrcs-74-218-198 0.0.0.0 UG 100 0 0 eth2
Run Code Online (Sandbox Code Playgroud)
eth0 up(在前两行之后挂起,所以我使用了route -n
)
Destination Gateway Genmask Flags Metric Ref Use Iface
74.218.198.192 0.0.0.0 255.255.255.248 U 0 0 0 eth2
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.2.1 0.0.0.0 UG 100 0 0 eth0
0.0.0.0 74.218.198.193 0.0.0.0 UG 100 0 0 eth2
Run Code Online (Sandbox Code Playgroud)