Ubuntu系统如何安装双网卡及更改网卡名称(eth0改为eth1)
1个回答
展开全部
如果ethtool eth0显示的信息类似与下面Settings for eth0:Supported ports: [ TP ]Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/FullSupports auto-negotiation: YesAdvertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full说明eth0是千兆网卡,如果ethtool eth0显示的信息类似与下面Settings for eth0:Supported ports: [ TP ]Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/FullSupports auto-negotiation: YesAdvertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full说明eth0是百兆网卡。对网络进行设置,可以编辑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 interfaceauto loiface lo inet loopbackauto eth0 #设置eth0iface eth0 inet static address 192.168.37.76 netmask 255.255.255.0 network 192.168.37.0 broadcast 192.168.37.255 gateway 192.168.37.254 dns-nameservers 192.168.37.254 #auto eth1 #设置eth1#iface eth1 inet static#address xxx #auto eth0:1 #单网卡设置多个IP#iface eth0:1 inet static#address 192.168.1.60#netmask 255.255.255.0#network x.x.x.x#broadcast x.x.x.x#gateway x.x.x.x设置完后重启网络/etc/init.d/networking restart
快又稳
2024-10-28 广告
2024-10-28 广告
在Linux环境下配置基于域名的虚拟主机,需安装Apache或Nginx等Web服务器,并编辑配置文件。以Apache为例,需创建虚拟主机配置文件,指定域名、文档根目录等,然后启用该配置文件并重启Apache服务。同样,Nginx也需在相应...
点击进入详情页
本回答由快又稳提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询