ubuntu搭建以太坊
Ⅰ linux ubuntu8.10 如何安装ethtool
sudo ./configure
sudo make
sudo make install
Ⅱ ubuntu系统怎么配置ip地址
一、使用命令设置ubuntu的ip地址
1.修改配置文件blacklist.conf禁用IPV6:
sudo vi /etc/modprobe.d/blacklist.conf
2.在文档最后添加 blacklist ipv6,然后查看修改结果:
cat /etc/modprobe.d/blacklist.conf
3.设置IP(设置网卡eth0的IP地址和子网掩码)
sudo ifconfig eth0 192.168.2.1 netmask 255.255.255.0
4.设置网关
sudo route add default gw 192.168.2.254
5.设置DNS 修改/etc/resolv.conf,在其中加入nameserver DNS的地址1 和 nameserver DNS的地址2 完成。
6.重启网络服务(若不行,请重启ubuntu:sudo reboot):
sudo /etc/init.d/networking restart
7.查看当前IP:
ifconfig
二、直接修改系统配置文件
ubuntu的网络配置文件是:/etc/network/interfaces
打开后里面可设置DHCP或手动设置静态ip。前面auto eth0,让网卡开机自动挂载。
1. 以DHCP方式配置网卡
编辑文件/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
也可以在命令行下直接输入下面的命令来获取地址
sudo dhclient eth0
2. 为网卡配置静态IP地址
编辑文件/etc/network/interfaces:
sudo vi /etc/network/interfaces
并用下面的行来替换有关eth0的行:
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.2.1
gateway 192.168.2.254
netmask 255.255.255.0
#network 192.168.2.0
#broadcast 192.168.2.255
将上面的ip地址等信息换成你自己就可以了.用下面的命令使网络设置生效:
sudo /etc/init.d/networking restart
3. 设定第二个IP地址(虚拟IP地址)
编辑文件/etc/network/interfaces:
sudo vi /etc/network/interfaces
在该文件中添加如下的行:
auto eth0:1
iface eth0:1 inet static
address x.x.x.x
netmask x.x.x.x
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x
根据你的情况填上所有诸如address,netmask,network,broadcast和gateways等信息:
用下面的命令使网络设置生效:
sudo /etc/init.d/networking restart
4. 设置主机名称(hostname)
使用下面的命令来查看当前主机的主机名称:
sudo /bin/hostname
使用下面的命令来设置当前主机的主机名称:
sudo /bin/hostname newname
系统启动时,它会从/etc/hostname来读取主机的名称。
5. 配置DNS
首先,你可以在/etc/hosts中加入一些主机名称和这些主机名称对应的IP地址,这是简单使用本机的静态查询。要访问DNS 服务器来进行查询,需要设置/etc/resolv.conf文件,假设DNS服务器的IP地址是192.168.2.2, 那么/etc/resolv.conf文件的内容应为:
search chotim.com
nameserver 192.168.2.2
6.手动重启网络服务:
sudo /etc/init.d/networking restart
返回结果如下:
*Reconfiguring network interfaces… [OK]
Ⅲ linux下ethtool的安装方法!!
1.下载安装包:ethtool-3.15.tar.gz,将其放入自己的路径下,解压:tarzxvfethtool-3.15.tar.gz
2.编译安装:
cdethtool-3.15
sudo./configure
sudomake
sudomakeinstall
3.ethtool-sethX[speed10|100|1000]//设置网口速率10/100/1000M
[plexhalf|full]//设置网口半/全双工
[autonegon|off]//设置网口是否自协商
例如:ethtool-
Ⅳ ubuntu 如何使配置eth0,使其支持ipv6
在目前的ipv4下访问ipv6的网站,
1、可以安装miredo:在终端输入“sudo apt-get install miredo”;
2、修改防火墙的IPV6的设置:进入“/etc/default/ufw”找到“IPV6=no”,改成"IPV6=yes"
3、修改“/etc/hosts”将IPV6的网站地址粘帖到尾部,例如:
2001:da8:200:200::4:100 www.tsinghua.e.cn #清华大学主页
4、重启网络:在终端输入“sudo invoke-rc.d networking restart”;
Ⅳ ubuntu网卡配置问题(急急急)
设置网卡,需要root权限
sudo ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
我这里显示是这样的
#我的网卡不插入网线时,显示的结果:
ifconfig
eth0 Link encap:以太网 硬件地址 00:11AA:fE:22:Fb
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
#添加ip后,但没插入网线。
eth0 Link encap:以太网 硬件地址 00:11AA:fE:22:Fb
inet 地址:192.168.0.1 广播:192.168.0.255 掩码:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
补充:
不显示ip是因为你的本地网卡没有获得ip
Ⅵ 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
Ⅶ ubuntu检测不到以太网卡eth0……在终端使用命令建立连接时,第一步检测以太网卡就无法通过,
可以看看这个文章:
http://www.yyearth.com/article/14-04/network.html
Ⅷ linux下永久添加eth0:1这个网络配置
复制一份已有配置文件改为eth1 改下里面IP即可
比如已有/etc/sysconfig/network-scripts/eth0
里面大致为:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.20
NETMASK=255.255.255.0
GATEWAY=192.168.1.255
复制一份为eth1 改里面device处为eth1 ipaddr那改为192.168.1.21即可出现一个IP为192.168.1.21的eth1
Ⅸ Ubuntu Linux中的网络配置文件是哪个
Ubuntu的网络配置文件主要有:IP地址配置文件、主机名称配置文件、DNS配置文件。解决方法如下:
1、首先查看初始网络状态。