ubuntu安装以太坊
1. 安装ubuntun14.4系统后网卡名变为em应该怎么改回eth
# vim /etc/default/grub
在”GRUB_CMDLINE_LINUX”中添加参数net.ifnames=0 biosdevname=0,如下图所示
# update-grub
若提示没有此命令,请先输入安装命令
# apt-get install grub2-common
# vim /etc/network/interfaces
将“em*******”改为“eth0”
2. ubuntu 怎么没有eth1
你有几张网卡?有线网卡从eth0开始。
3. ubuntu中如何手动设置IP ,,为什么 eth0,它抓不到IP4地址,
这样给你解释你看看
eth0上IP为自动获取
eth1上为手工设置(又是VPC自己要求的)
配置过程:
1、打开Ubuntu的/etc/network/interfaces文件
。默认内容如下:
auto
lo
iface
lo
inet
loopback
2、eth0为自动获取IP,所以不需要配置了。插入要手工设置IP的eth1的IP信息,编辑后内容如下,前面auto
eth1,让网卡开机自动挂载.:
auto
lo
iface
lo
inet
loopback
auto
eth1
iface
eth1
inet
static
address
192.168.0.101
netmask
255.255.255.0
network
192.168.0.0
broadcask
192.168.0.255
gateway
192.168.0.2
3、编写完毕保存,然后打开终端运行如下命令,重新启动网卡即可:
$
/etc/init.d/networking
restart
也可以重启网卡让新配置生效,优点是不影响其他网络接口:
$
sudo
ifdown
eth0
$
sudo
ifup
eth04、如果以DHCP方式配置网卡,则改为:
auto
eth0
iface
eth0
inet
dhcp
也可以在命令行下直接输入下面的命令来获取地址
sudo
dhclient
eth0
5、配置DNS服务器的地址,最多可以使用3个DNS服务器
$
sudo
vi
/etc/resolv.conf
nameserver
202.96.134.133
nameserver
202.96.128.68
nameserver
202.96.128.166
对"resolv.conf"的修改是即时生效的。可以使用nslookup命令进行DNS服务器查询,以验证"resolv.conf"配置文件。
如何查看DNS
$
less
/etc/resolv.conf
4. 手机安装ubuntu出现出现eth0:no such device,请问怎么解决
eth0是指有线网卡。手机应该是没有有线网卡的,可以忽略这个提示。
5. ubuntu 装ntop 我需要配置eth0和eth1两块网卡,如何进行设置
# ./ntop -P /var/ntop/ -i eth0 -u ntop 启动服务
试一下吧
6. linux ubuntu8.10 如何安装ethtool
sudo ./configure
sudo make
sudo make install
7. Ubuntu系统如何安装双网卡及更改网卡名称(eth0改为eth1)
如果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
8. ubuntu12.04 没有eth0怎么办
这样给你解释你看看 eth0上IP为自动获取
eth1上为手工设置(又是VPC自己要求的)
配置过程:
1、打开Ubuntu的/etc/network/interfaces文件 。默认内容如下:
auto lo
iface lo inet loopback
2、eth0为自动获取IP,所以不需要配置了。插入要手工设置IP的eth1的IP信息,编辑后内容如下,前面auto eth1,让网卡开机自动挂载.:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 192.168.0.101
netmask 255.255.255.0
network 192.168.0.0
broadcask 192.168.0.255
gateway 192.168.0.2
3、编写完毕保存,然后打开终端运行如下命令,重新启动网卡即可:
$ /etc/init.d/networking restart
也可以重启网卡让新配置生效,优点是不影响其他网络接口:
$ sudo ifdown eth0
$ sudo ifup eth04、如果以DHCP方式配置网卡,则改为:
auto eth0
iface eth0 inet dhcp
也可以在命令行下直接输入下面的命令来获取地址
sudo dhclient eth0
5、配置DNS服务器的地址,最多可以使用3个DNS服务器
$ sudo vi /etc/resolv.conf
nameserver 202.96.134.133
nameserver 202.96.128.68
nameserver 202.96.128.166
对"resolv.conf"的修改是即时生效的。可以使用nslookup命令进行DNS服务器查询,以验证"resolv.conf"配置文件。
如何查看DNS
$ less /etc/resolv.conf
9. ubuntu Linux 安装后ifconfig看见有eth0和lo,但是在/dev目录中没有eth0这个设备,为什么呢
你要的是网卡设备是吧
/etc/network/interfaces
sudo vi /etc/network/interfaces
就可以编辑的
并用下面的行来替换有关eth0的行:
# The primary network interface - use DHCP to find our address
auto eth0
iface eth0 inet dhcp
用下面的命令使网络设置生效:
sudo /etc/init.d/networking restart
也可以在命令行下直接输入下面的命令来获取地址
10. 重装Ubuntu 16.04 之后eth0怎么不见了
中间有空格:ifconfig-a网卡名不一定是eth0,有可能是其它名字如果没有看到网卡,说明系统没有识别,需要另外装驱动程序