网卡是Realtek rtl8111b/8168b。
网络是长城宽带的有线、拨号上网,只知道用户名和密码。
安装过程中我就想联网,但失败。安装完后我继续联网仍然失败。有人说要把DSL的服务填上、我填上了Internet仍然拨号失败(是不是只填上用户名,服务,密码就行了?)。
只有VISTA能上网,Xubuntu上不了网。
于是我这两天进入VISTA系统查找资料,有人说ifconfig中如果没有出现eth0就是驱动没有,我看了系统默认使用的网卡驱动是r8169,我在VISTA里查看的是r8168(VISTA里安装的也是8168)。
搜了好多帖子,终于下狠心安装r8168驱动。
我是参照如下安装的:
https://ubuntuforums.org/showthread.php ... l8111+8168
安装完毕后,DSL仍然不能上网。我查看了lspci -v,发现模块是r8168,但使用的驱动却是r8168。我lsmod | grep r816了,发现输出了r8168、r8169两个驱动。
我还以为是驱动问题,又开始狂搜贴,终于只剩下一个r8168驱动了。
但是仍然不能上网,新手到这里已经蒙了,向各位高手求助,先提前谢谢大家!!
从始至终我ifconfig输出的没有eth0,一直是ens33,我也不明白什么意思,不知道为什么连不上网?
我把xubuntu上终端输入的代码发上来(在xubuntu保存的txt文件,结果在win里格式都变了,草草调整了一下):
请高手帮忙看看,帮我找找不能上网的原因,谢谢大家!
代码: 全选
kong@kong-x:~$ ifconfig
ens33 Link encap:以太网 硬件地址 00:1e:90:3a:cb:fd
inet6 地址: fe80::c421:d97e:2b92:2778/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:68 错误:0 丢弃:13 过载:0 帧数:0
发送数据包:176 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:4750 (4.7 KB) 发送字节:17379 (17.3 KB)
中断:17 基本地址:0xc000
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:340 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:340 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1
接收字节:25136 (25.1 KB)
发送字节:25136 (25.1 KB)
kong@kong-x:~$ lsmod | grep r816
r8168 475136 0
kong@kong-x:~$ lspci -v
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
Subsystem: Elitegroup Computer Systems 82G33/G31/P35/P31 Express DRAM Controller
Flags: bus master, fast devsel, latency 0
Capabilities: <access denied>
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 10) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 24
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: fa000000-feafffff
Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family High Definition Audio Controller
Flags: bus master, fast devsel, latency 0, IRQ 28
Memory at f9ffc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 25
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00001000-00001fff
Memory behind bridge: 80000000-801fffff
Prefetchable memory behind bridge: 0000000080200000-00000000803fffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 01) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 26
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: feb00000-febfffff
Prefetchable memory behind bridge: 0000000080400000-00000000805fffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01) (prog-if 00 [UHCI])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family USB UHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 23
I/O ports at cc00 [size=32]
Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01) (prog-if 00 [UHCI])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family USB UHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at c880 [size=32]
Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01) (prog-if 00 [UHCI])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family USB UHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at c800 [size=32]
Kernel driver in use: uhci_hcd
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01) (prog-if 00 [UHCI])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family USB UHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at c480 [size=32]
Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01) (prog-if 20 [EHCI])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family USB2 EHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at f9ffbc00 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=32
Capabilities: <access denied>
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
Subsystem: Elitegroup Computer Systems 82801GB/GR (ICH7 Family) LPC Interface Bridge
Flags: bus master, medium devsel, latency 0
Capabilities: <access denied>
Kernel driver in use: lpc_ich
Kernel modules: intel_rng, lpc_ich, leds_ss4200
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) (prog-if 8a [Master SecP PriP])
Subsystem: Elitegroup Computer Systems 82801G (ICH7 Family) IDE Controller
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 01f0 [size=8]
I/O ports at 03f4
I/O ports at 0170 [size=8]
I/O ports at 0374
I/O ports at ffa0 [size=16]
Kernel driver in use: ata_piix
Kernel modules: pata_acpi
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01) (prog-if 8f [Master SecP SecO PriP PriO])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family SATA Controller [IDE mode]
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
I/O ports at c400 [size=8]
I/O ports at c080 [size=4]
I/O ports at c000 [size=8]
I/O ports at bc00 [size=4]
I/O ports at b880 [size=16]
Capabilities: <access denied>
Kernel driver in use: ata_piix
Kernel modules: pata_acpi
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family SMBus Controller
Flags: medium devsel, IRQ 5
I/O ports at 0400 [size=32]
Kernel modules: i2c_i801
01:00.0 VGA compatible controller: NVIDIA Corporation G98 [GeForce 9300 GE] (rev a1) (prog-if 00 [VGA controller])
Flags: bus master, fast devsel, latency 0, IRQ 27
Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
I/O ports at dc00 [size=128]
Expansion ROM at feae0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 01)
Subsystem: Elitegroup Computer Systems RTL8111/8168 PCI Express Gigabit Ethernet controller
Physical Slot: 33
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at e800 [size=256]
Memory at febff000 (64-bit, non-prefetchable) [size=4K]
Expansion ROM at febc0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: r8168
Kernel modules: r8168
kong@kong-x:~$ sudo modprobe r8168
[sudo] kong 的密码:
kong@kong-x:~$ lspci -v
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
Subsystem: Elitegroup Computer Systems 82G33/G31/P35/P31 Express DRAM Controller
Flags: bus master, fast devsel, latency 0
Capabilities: <access denied>
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 10) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 24
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: fa000000-feafffff
Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family High Definition Audio Controller
Flags: bus master, fast devsel, latency 0, IRQ 28
Memory at f9ffc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 25
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00001000-00001fff
Memory behind bridge: 80000000-801fffff
Prefetchable memory behind bridge: 0000000080200000-00000000803fffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 01) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 26
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: feb00000-febfffff
Prefetchable memory behind bridge: 0000000080400000-00000000805fffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01) (prog-if 00 [UHCI])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family USB UHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 23
I/O ports at cc00 [size=32]
Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01) (prog-if 00 [UHCI])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family USB UHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at c880 [size=32]
Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01) (prog-if 00 [UHCI])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family USB UHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at c800 [size=32]
Kernel driver in use: uhci_hcd
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01) (prog-if 00 [UHCI])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family USB UHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at c480 [size=32]
Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01) (prog-if 20 [EHCI])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family USB2 EHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at f9ffbc00 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=32
Capabilities: <access denied>
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
Subsystem: Elitegroup Computer Systems 82801GB/GR (ICH7 Family) LPC Interface Bridge
Flags: bus master, medium devsel, latency 0
Capabilities: <access denied>
Kernel driver in use: lpc_ich
Kernel modules: intel_rng, lpc_ich, leds_ss4200
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) (prog-if 8a [Master SecP PriP])
Subsystem: Elitegroup Computer Systems 82801G (ICH7 Family) IDE Controller
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 01f0 [size=8]
I/O ports at 03f4
I/O ports at 0170 [size=8]
I/O ports at 0374
I/O ports at ffa0 [size=16]
Kernel driver in use: ata_piix
Kernel modules: pata_acpi
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01) (prog-if 8f [Master SecP SecO PriP PriO])
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family SATA Controller [IDE mode]
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
I/O ports at c400 [size=8]
I/O ports at c080 [size=4]
I/O ports at c000 [size=8]
I/O ports at bc00 [size=4]
I/O ports at b880 [size=16]
Capabilities: <access denied>
Kernel driver in use: ata_piix
Kernel modules: pata_acpi
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
Subsystem: Elitegroup Computer Systems NM10/ICH7 Family SMBus Controller
Flags: medium devsel, IRQ 5
I/O ports at 0400 [size=32]
Kernel modules: i2c_i801
01:00.0 VGA compatible controller: NVIDIA Corporation G98 [GeForce 9300 GE] (rev a1) (prog-if 00 [VGA controller])
Flags: bus master, fast devsel, latency 0, IRQ 27
Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
I/O ports at dc00 [size=128]
Expansion ROM at feae0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau
03:00.0
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 01)
Subsystem: Elitegroup Computer Systems RTL8111/8168 PCI Express Gigabit Ethernet controller
Physical Slot: 33
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at e800 [size=256]
Memory at febff000 (64-bit, non-prefetchable) [size=4K]
Expansion ROM at febc0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: r8168
Kernel modules: r8168