我目前有一个linux系统,只有一个物理以太网端口。这个物理端口有eth0网络接口。我想要创建另一个以太网接口,它也使用这个单一的物理端口。如何使用/etc/network/interfaces文件实现这一点?
我的最终目标是能够使用一个以太网端口访问两个不同的网络。例如,如果我有以下interfaces文件:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
gateway 192
我关闭了我的无头文件服务器,没有gui文件服务器来替换一个已捕获的风扇,现在eth0接口没有通过DHCP获取IP地址;在引导过程中,它只是“等待网络配置”,并最终超时。
/etc/网络/接口
# 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
iface lo inet loopback
我有一个基于ubuntu 10.04主机的kvm主机,客人是rhel 5.3 64位,
在客人上,我尝试执行mii-tool eth0。
SIOCGMIIREG on eth0 failed: Input/output error
SIOCGMIIREG on eth0 failed: Input/output error
eth0: no autonegotiation, 100baseTx-FD, link ok
和mii工具-v eth4
eth0: no autonegotiation, 100baseTx-FD, link ok
product info: vendor 00:5
上周我买了一台联想Z70-80,并安装了Ubuntu14.04可信的Tahr。自从我试图找出我的无线适配器不能工作的原因后,我就一直在论坛上。它在Windows 10下工作,以太网工作得很好。我意识到可能还没有司机:
网络控制器0280:高通QCA6174 802.11ac无线网络适配器168 c:003 e
我运行了我找到的这里无线信息脚本,结果如下:
########## wireless info START ##########
Report from: 17 Nov 2015 23:44 EST -0500
Booted last: 17 Nov 2015 23:26 EST -
基础设施:Microsoft Azure OS:Ubuntu 18.04
Issue :我们已经分配了两个网卡(相同的子网)。我们可以使用主IP (20.71.0.21)地址进行SSH,但无法与次要地址(20.71.0.22)连接。这是在Ubuntu 16.04上工作的。我想确定路线。
> :~# ip r l
> default via 10.171.0.1 dev eth0 proto dhcp src 20.71.0.21
> metric 100
> 20.71.0.0/24 dev eth0 proto kernel scope link src 20.7