怎么解决Linux操作系统找不到网卡的问题toad
1. 安装网卡
机器太新,以至于现有的Linux版本无法认出,比如机器找不到网卡,这时候怎么办呢?
别急,首先你需要知道网卡是什么型号的,以本实验室新购入的电脑为例,它的网卡是集成的,型号是Realtek RTL8168/8111 PCI-E Gigabit Ethernet NIC.然后我们到Realtek的官方网站去下载相应的Linux驱动程序,按照说明安装。
Unpack the tarball :
# tar vjxf
Change to the directory:
# cd
基是什么意思If you are running the target kernel, then you should be able to do :
# make clean modules
# make install
瘫痪是什么意思
# /sbin/depmod -a
# /sbin/insmod ./src/
You can check whether the driver is loaded by using following commands.
# /sbin/lsmod | grep r8168
# /sbin/ifconfig –a
If there is a device name, ethX, shown on the monitor, the linux
driver is loaded. Then, you can u the following command to activate
the ethX.
# ifconfig ethX up助理会计师考试科目
福州成人英语学习,where X=0,1,2,……
这里也可以通过系统→管理→网络来设置IP地址等,最后激活。
1. Set manually
a. Set the IP address of your machine.
# ifconfig ethX "the IP address of your machine"
b. Set the IP address of DNS.
Inrt the following configuration in /etc/
namerver "the IP address of DNS"
c. Set the IP address of gateway.
# route add default gw "the IP address of gateway"
新时代美容学校2. Set by doing configurations in
日语学习资料/etc/sysconfig/network-scripts
/
ifcfg-ethX for Redhat and Fedora,or /etc/sysconfig/network
/ifcfg-ethX for SuSE. There are two examples to t network
configurations.
a. Fix IP address:
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
TYPE=ethernet
NETMASK=
IPADDR=
tip是什么意思GATEWAY=
星期一到星期天BROADCAST=
2. 修改:#vi /etc/hosts,在该文本中,增加两行:
localhost
node3
修改:vi /etc/,增加一行:
node3
3. 启动ssh服务
大部分的Linux版本应该都会自带该程序
#ssh-keygen
#cd .ssh
成都雅思暑期班#cp id_ authorized_keys
#ssh node3
附加信息:
ifup eth0看看能否启动eth0
lsmod看看有没有加载网卡驱动
dmesg看看有没有网卡启动时的错误信息