当前位置: 技术问答>linux和unix
help:VM5.5下安装redhat9之后的网络配置问题
来源: 互联网 发布时间:2016-12-13
本文导语: VM5.5下安装redhat9之后,上不了网,检查系统配置里面的网络配置,系统好像没有发现网卡,只有一个eth0,描述显示是:vmnics,显然是虚拟的vm网卡 /etc/sysconfig/network-scripts/ifcfg-eth0文件内容如下: DEVICE=eth0 BOOTPROTO=dhcp...
VM5.5下安装redhat9之后,上不了网,检查系统配置里面的网络配置,系统好像没有发现网卡,只有一个eth0,描述显示是:vmnics,显然是虚拟的vm网卡
/etc/sysconfig/network-scripts/ifcfg-eth0文件内容如下:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
全部内容就这些,各位帮我看看问题出在哪,多谢了!
/etc/sysconfig/network-scripts/ifcfg-eth0文件内容如下:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
全部内容就这些,各位帮我看看问题出在哪,多谢了!
|
你的网卡设置成了 dhcp 模式,
直接设置 ip 地址试试。
ifconfig eth0 192.168.168.1.111
直接设置 ip 地址试试。
ifconfig eth0 192.168.168.1.111
|
lz,深刻理解一下命令
[root@RHEL4_U5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
IPADDR=192.168.1.220
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
#NETWORK=127.0.0.0
#BROADCAST=127.255.255.255
ONBOOT=yes
#NAME=loopback
[root@RHEL4_U5 ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search domain
nameserver 202.96.128.86
nameserver 61.144.56.100
nameserver 202.96.128.166
[root@RHEL4_U5 ~]# lspci|grep Ethernet
00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
[root@RHEL4_U5 ~]# lsmod
Module Size Used by
md5 8129 1
ipv6 243425 14
autofs4 25285 0
i2c_dev 14529 0
i2c_core 26049 1 i2c_dev
sunrpc 143909 1
dm_mirror 31429 0
dm_mod 65001 1 dm_mirror
button 10705 0
battery 12997 0
ac 8901 0
uhci_hcd 33241 0
pcnet32 31049 0
mii 9281 1 pcnet32
floppy 58193 0
ext3 119753 3
jbd 59993 1 ext3
ata_piix 19141 0
libata 106141 1 ata_piix
mptscsih 5569 0
mptsas 18509 1 mptscsih
mptspi 13649 5 mptscsih
mptscsi 41501 2 mptsas,mptspi
mptbase 63393 3 mptsas,mptspi,mptscsi
sd_mod 20801 6
scsi_mod 120397 5 libata,mptsas,mptspi,mptscsi,sd_mod
[root@RHEL4_U5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
IPADDR=192.168.1.220
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
#NETWORK=127.0.0.0
#BROADCAST=127.255.255.255
ONBOOT=yes
#NAME=loopback
[root@RHEL4_U5 ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search domain
nameserver 202.96.128.86
nameserver 61.144.56.100
nameserver 202.96.128.166
[root@RHEL4_U5 ~]# lspci|grep Ethernet
00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
[root@RHEL4_U5 ~]# lsmod
Module Size Used by
md5 8129 1
ipv6 243425 14
autofs4 25285 0
i2c_dev 14529 0
i2c_core 26049 1 i2c_dev
sunrpc 143909 1
dm_mirror 31429 0
dm_mod 65001 1 dm_mirror
button 10705 0
battery 12997 0
ac 8901 0
uhci_hcd 33241 0
pcnet32 31049 0
mii 9281 1 pcnet32
floppy 58193 0
ext3 119753 3
jbd 59993 1 ext3
ata_piix 19141 0
libata 106141 1 ata_piix
mptscsih 5569 0
mptsas 18509 1 mptscsih
mptspi 13649 5 mptscsih
mptscsi 41501 2 mptsas,mptspi
mptbase 63393 3 mptsas,mptspi,mptscsi
sd_mod 20801 6
scsi_mod 120397 5 libata,mptsas,mptspi,mptscsi,sd_mod