关于window7和win7 ubuntu 双系统双系统在win7 ubuntu 双系统上使用锐捷用户使用myxrgtu联网,最后一步出现找不到该命令

Ubuntu下锐捷和L2TP双重认证模式上网
操作系统:Ubuntu
所需软件:myxrgsu(锐捷客户端) 、xl2tpd、expect、tcl8.4
大部分的学校使用的是校园网,基本使用锐捷认证就可以连接互联网。现在越来越多的学校使用锐捷和L2TP双重认证模式。这里我先介绍下L2TP协议,便于对后文的配置有个大概的了解。
L2TP (Layer Two Tunneling Protocol,第二层通道协议)是VPDN(虚拟专用拨号网络)技术的一种,专门用来进行第二层数据的通道传送,即将第二层数据单元,如点到点协议(PPP)数据单元,封装在IP或UDP载荷内,以顺利通过包交换网络(如Internet),抵达目的地。
L2TP本质上是一种隧道传输协议,它使用两种类型的消息:控制消息和数据隧道消息。控制消息负责创建、维护及终止L2TP隧道,而数据隧道消息则负责用 户数据的真正传输。L2TP支持标准的安全特性CHAP和PAP,可以进行用户身份认证。在安全性考虑上,L2TP仅定义了控制消息的加密传输方式,对传 输中的数据并不加密。
值得注意的是,L2TP不对隧道传输中的数据进行加密,从而没法保证数据传输过程中的安全。因此L2TP常和IPsec结合使用,先使用L2TP封装第二层数据,再使用IPsec封装对数据进行加密和提供完整性保护,由此保证通信数据安全传送到目的地。
l2tp和pptp协议的异同:PPTP(电信的另一种协议)和L2TP都使用PPP协议对数据进行封装,然后添加附加包头用于数据在互联网络上的传输。尽管两个协议非常相似,但是仍存在以下几方面的不同:
1.PPTP要求互联网络为IP网络。L2TP只要求隧道媒介提供面向数据包的点对点的连接。L2TP可以在IP(使用UDP),桢中继永久虚拟电路(PVCs),X.25虚拟电路(VCs)或ATM VCs网络上使用。
2.PPTP只能在两端点间建立单一隧道。L2TP支持在两端点间使用多隧道。使用L2TP,用户可以针对不同的服务质量创建不同的隧道。
3.L2TP可以提供包头压缩。当压缩包头时,系统开销(overhead)占用4个字节,而PPTP协议下要占用6个字节。
4.L2TP可以提供隧道验证,而PPTP则不支持隧道验证。但是当L2TP或PPTP与IPSEC共同使用时,可以由IPSEC提供隧道验证,不需要在第2层协议上验证隧道。
介绍就到此,详细信息可以通过互联网了解,下面说说如何成功配置锐捷和l2tp双重认证模式。
要上网,首先要设置IP。ubuntu较新的版本都使用network-manager来管理网络。network-manager使得IP配置极为简单。
依次点击 系统 -& 系统管理 -& 网络连接。默认会有一个Auto eth0 ,选中并点击编辑,输入管理员密码认证成功后打开编辑界面,勾选自动连接(上)和对所用用户可以(下)。然后点击IPv4设置面板,在方法一栏选择手动,然后在下面的地址栏点击右边的添加按钮,输入IP,子网掩码,网关。最后在DNS服务器一栏输入DNS。点击应用即可。这样IP就设置完成了。
设置后,可以通过终端执行 ifconfig 命令查看IP等信息,执行 cat /etc/resolv.conf 命令查看DNS信息。
2、配置锐捷网络
现在附件的myxrgsu.zip文件。
解压缩后,将libpcap.so.0.6.2和libstdc++.so.5两个文件复制到/usr/lib/目录下。将myxrgsu文件复制到/usr/bin/目录下并赋予可执行权限。具体步骤:
$ sudo cp libpcap.so.0.6.2 libstdc++.so.5 /usr/lib/
$ sudo cp myxrgsu gdqy /usr/bin/
$ sudo chmod 755 /usr/bin/myxrgsu
做完这一步后,打开终端,执行
$ sudo myxrgsu
按照提示输入相关信息就可以通过锐捷连接网络了。
$ sudo myxrgsu
[sudo] password for user:
XRGSupplicant 1.1.1
Ruijie Network CopyRight
Please input your user name:0&&&&&&&&&&&&&&&&&&&&&&& #输入你的锐捷帐号
Please input your password:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& #输入你的锐捷密码
Use DHCP,1-Use,0-UnUse(Default: 0):&&&&&&&&&&&&&&&&&&&&& #直接回车
Use default auth parameter,0-Use 1-UnUse(Default: 0):&&&&&&&& #直接回车
Searching server...
Connecting server...
Authenticating...
Authenticate SUCCESSFULLY!
Please input 'unauth' to LogOff:
这样就表示连接成功,可以按下Ctrl+C退出。
通过上述步骤,你会发现,每次执行myxrgsu都要输入很多信息,颇为麻烦,为了操作方便,这里介绍如何编写简化操作的脚本,也为下文配置l2tp连接做准备。
首先安装expect,安装过程会提示以来tcl8.4(tcl8.5),也一定安装。
$ sudo apt-get install expect
安装好后,就可以开始写脚本了
$ sudo gedit /usr/bin/ruijie
写入如下内容:
#! /usr/bin/expect
set timeout 3
spawn myxrgsu -a
expect &Please input your user name:&
send &xxxxxxxx\r&
expect &Please input your password:&
send &000000\r&
expect &Use DHCP,1-Use,0-UnUse(Default: 0):&
send &0\r&&&&&&&&&&&&&&&&&&&&
#expect &You hava 3 Nic:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
#expect &&& 0.&&& eth0 Desc: (null)&&&&&&&&&&&&&&&&&&&
#expect &&& 1.&&& vmnet1 Desc: (null)&&&&&&&&&&&&&&&
#expect &&& 2.&&& vmnet8 Desc: (null)&
#expect &Please select which NIC will be used(0-2,Default:0)&
#send &0\r&
expect &Use default auth parameter,0-Use 1-UnUse(Default: 0):&
send &0\r&
set timeout 10
expect &Please input 'unauth' to LogOff:&
xxxxxx改成你的校园网帐号,000000改成你的校园网密码。
说明:一般用户的电脑只有一块网卡,黄色注释内容为多块网卡时的提示信息,笔者因为安装了vmware,所以映射成三块网卡( eth0,vmnet1,vmnet8)。如果你有多块网卡,取消橙色部分几行开头的注释并做相应修改(执行sudo myxrgsu时有相应提示)。
赋予可执行权限:
$ sudo chmod 755 /usr/bin/ruijie
对于只用校园网用户,到这一步就可以了。开机后执行sudo ruijie 就可以连接网络了。
3、配置L2TP
linux下支持l2tp协议的软件有几个,笔者这里选择使用xl2tpd。
1)、安装:
$ sudo apt-get install xl2tpd
2)、修改 /etc/xl2tpd/xl2tpd.conf 配置文件,添加一个lac段
$ sudo gedit /etc/xl2tpd/xl2tpd.conf
[lac gdqy]
lns = 000.000.000.000
redial = yes
redial timeout = 15
max redials = 5
require pap = yes
require chap = yes
require authentication = yes
name = xxxxxxxx
ppp debug = no
pppoptfile = /etc/ppp/options.l2tpd
000.000.000.000替换成学校给的VPN拨号服务器的lns,
xxxxxxxx改成学校给你的宽带帐号。lac后面的gdqy(改成你喜欢的名字)也可以改,但是你后面的拨号脚本也要改相应的地方,总之你把所有的gdqy改成你喜欢的名字就行了(名字保持一致)。
3)、修改(创建) /etc/ppp/chap-secrets
$ sudo gedit /etc/ppp/chap-secrets
在文件的最后面添加如下内容:
---------------------------------------
xxxxxxxx * 000000 *
---------------------------------------
将xxxxxxxx换成学校给你的宽带帐号,000000换成学校给你的宽带密码
注意,这里每个字段之间的分隔符是&Tab&,即键盘上字幕Q左边的那个键( 同下面的/etc/ppp/pap-secrets)。
4)、修改(创建) /etc/ppp/pap-secrets
$ sudo gedit /etc/ppp/pap-secrets
在文件的最后面添加如下内容:
---------------------------------------
xxxxxxxx * 000000 *
---------------------------------------
将xxxxxxxx换成学校给你的宽带帐号,000000换成学校给你的宽带密码
5)、修改(创建) /etc/ppp/options.l2tpd
$ sudo gedit /etc/ppp/options.l2tpd
添加如下内容:
defaultroute
6)、创建启动脚本
$ sudo gedit /usr/bin/gdqy
添加如下内容:
#!/bin/bash
TIMEOUT=10
INTERFACE=eth0
L2TPD_TIMEOUT=10
L2TPD_SCRIPT=/etc/init.d/xl2tpd
L2TPD_PIPE=/var/run/xl2tpd/l2tp-control
function usage
echo &$1 L2TP宽带连接.&
echo &$1 [-h] [-r]&
echo & 默认连接宽带.&
echo & -r 重新连接.&
echo & -h 帮助信息.&
function connect
if ppp0_ then
echo &已经连接宽带.&
/usr/bin/ruijie && /usr/bin/clear && bring_up_ppp0 && setup_route
function reconnect
restart_l2tpd && bring_up_ppp0 && setup_route
function super_user
if [ &$UID& = &0& ]; then
function ppp0_alive
if /sbin/ifconfig | grep -s 'ppp0' & /dev/ then
function bring_up_ppp0
for i in $(seq $N_RETRY)
echo -n &等待连接&
echo &c gdqy& & $L2TPD_PIPE
for j in $(seq $TIMEOUT)
if ppp0_ then
echo & 完成!&
echo -n &.&
echo &连接失败&
function setup_route
echo &设置路由...&
STATIC=$(/sbin/ip route | grep '^default' | cut -d& & -f3)
if [ ! -z $STATIC ]; then
/sbin/ip route add 211.66.184.0/21 via $STATIC dev $INTERFACE
/sbin/ip route add 172.16.0.0/14 via $STATIC dev $INTERFACE
/sbin/ip route add 210.38.32.0/24 via $STATIC dev $INTERFACE
/sbin/ip route add 202.116.41.0/24 via $STATIC dev $INTERFACE
/sbin/ip route add 168.160.184.0/24 via $STATIC dev $INTERFACE
/sbin/ip route add 210.21.59.0/24 via $STATIC dev $INTERFACE
/sbin/ip route add 192.168.129.1/32 via $STATIC dev $INTERFACE
/sbin/ip route del default
PPP=$(/sbin/ifconfig | sed -n '/点对点/s/^.*点对点:\([0-9.]*\).*$/\1/p')
/sbin/ip route add default via $PPP dev ppp0
/sbin/ifconfig ppp0 mtu 1462
echo &完成!&
function restart_l2tpd
echo &启动连接...&
$L2TPD_SCRIPT restart
for i in $(seq $L2TPD_TIMEOUT)
if [ -e $L2TPD_PIPE ]; then
echo &完成!&
echo &重新连接失败!&
if ! super_ then
echo &需要管理员权限!&
if [ $# -lt 1 ]; then
elif [ &$1& = &-h& ]; then
学校内部资源地址(我已修改过,原作者的数字的位置和我的稍有区别,格式就是这样的,172.16.0.0/14 或者210.21.59.0/24什么意思你去问原作者或者看我最后的学习发给我们的L2TP配置文件),根据学校的具体情况修改。如果你使用的是英文地址,将显示的2个点对点改成P-t-P。
其中/sbin/ip route add 192.168.129.1/32 via $STATIC dev $INTERFACE这里的192.168.129.1是lns,32应该是指
sudo route add -net 192.168.129.1 netmask 255.255.255.255 gw 172.17.92.254&& #将172.17.1.254 改成你的静态IP的默认网关赋予权限:
中的某个值,具体是哪个?自己猜。
编辑完脚本之后,终端输入
$ sudo chmod 755 /usr/bin/gdqy
至此,配置过程结束。重新启动计算机,打开终端,执行
$ sudo gdqy
就可以连接宽带了。
补充:本配置存在一个缺点,就是由于网络不稳定,系统运行一段时间后,网络会自动刷新,然后发现只可以打开部分网页,但qq等其他需要联网的软件正常使用。此时,解决方法:打开终端,执行 sudo ifconfig ppp0 mtu 1462 或者 sudo gdqy -r 。
本配置依据广东轻院提供的信息编写,其他学校的同学依据自己学校的具体情况做相应修改。
认证成功的图片:
注:以上图片上传到红联频道中。
注意:尽量不要在文本里添加带有#的注释,以避免意想不到的错误,文件本来就有的注释就不用去管它。例如:
[lac gdqy]
lns = 192.168.129.1 #192.168.129.1是VPN拨号服务器
redial = yes
redial timeout = 15
max redials = 5
require pap = yes
require chap = yes
require authentication = yes
name = @qgxy.v.gd&&&&&& #将name = @qgxy.v.gd 改成你的宽带帐号
ppp debug = no
pppoptfile = /etc/ppp/options.l2tpd
把上面的#192.168.129.1是VPN拨号服务器,#将name = @qgxy.v.gd 改成你的宽带帐号都去掉,还有就是注意空格符
另附学校给我们的L2TP配置文件:
LNSIP=192.168.129.1
211.66.184.0 mask 255.255.248.0;
172.16.0.0 mask 255.252.0.0;
210.38.32.0 mask 255.255.255.0
202.116.41.0 mask 255.255.255.0
168.160.184.0 mask 255.255.255.0
210.21.59.0 mask 255.255.255.0
------分隔线----------------------------&已解决&双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上 - 查看主题 & Ubuntu中文论坛
&[ 11 篇帖子 ]&
&文章标题 : &已解决&双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
13:29帖子: 4
系统: ubuntu 14.04 LTS
接收感谢: 0 次
本机为台式机,只有有线联网,连的路由,即插即用那种。以前看教程尝试过重新安装网卡驱动(驱动来自inter官网额e1000e),但仍然失败。而且重启时出现各种错误,例如lshw无法识别一类的。现在系统刚重装,未做任何改动,下面是相关问题需要的一些信息。麻烦大神们帮忙分析解决问题了,谢谢。在线等-----------------------已解决方案-----------------经@poloshiiao和@vickycq帮忙分析,的确是双系统网卡设置相互影响的问题,在windows和主板上关闭网络唤醒功能后,回到UBUNTU有线联网功能就正常了。再次感谢@poloshiao和@vickycq等活跃在论坛帮助大家分析解决问题的大神前辈们,谢谢你们!------------------------已解决方案----------------uname -r3.16.0-30-genericsudo lspci -knn00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM Controller [] (rev 06) Subsystem: Dell Device [] Kernel driver in use: hsw_uncore00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-th Gen Core Processor PCI Express x16 Controller [] (rev 06) Kernel driver in use: pcieport00:14.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [] (rev 04) Subsystem: Dell Device [] Kernel driver in use: xhci_hcd00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [a] (rev 04) Subsystem: Dell Device [] Kernel driver in use: mei_me00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I217-LM [a] (rev 04) Subsystem: Dell Device [] Kernel driver in use: e1000e00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [d] (rev 04) Subsystem: Dell Device [] Kernel driver in use: ehci-pci00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [] (rev 04) Subsystem: Dell Device [] Kernel driver in use: snd_hda_intel00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 [] (rev d4) Kernel driver in use: pcieport00:1c.1 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #2 [] (rev d4) Kernel driver in use: pcieport00:1d.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [] (rev 04) Subsystem: Dell Device [] Kernel driver in use: ehci-pci00:1f.0 ISA bridge [0601]: Intel Corporation Q87 Express LPC Controller [e] (rev 04) Subsystem: Dell Device [] Kernel driver in use: lpc_ich00:1f.2 SATA controller [0106]: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [] (rev 04) Subsystem: Dell Device [] Kernel driver in use: ahci00:1f.3 SMBus [0c05]: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [] (rev 04) Subsystem: Dell Device []01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Caicos XTX [Radeon HD 8490 / R5 235X OEM] [] Subsystem: Dell Device [] Kernel driver in use: radeon01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Caicos HDMI Audio [Radeon HD 6400 Series] [1002:aa98] Subsystem: Dell Device [1028:aa98] Kernel driver in use: snd_hda_intel03:00.0 PCI bridge [0604]: Texas Instruments XIO2001 PCI Express-to-PCI Bridge [104c:8240]sudo lshw -numeric -class network
description: Ethernet interface
product: Ethernet Connection I217-LM [A]
vendor: Intel Corporation [8086]
physical id: 19
bus info: pci@.0
logical name: eth0
version: 04
serial: 34:17:eb:df:3d:9f
size: 100Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.3.2-k duplex=full firmware=0.13-4 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:46 memory:f7f0ffff memory:f7f3fff ioport:f040(size=32)sudo ifconfig -aeth0
Link encap:以太网
硬件地址 34:17:eb:df:3d:9f
inet6 地址: fe80::3617:ebff:fedf:3d9f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST
接收数据包:5354 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:279 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:3.5 KB)
发送字节:5 KB)
中断:20 Memory:f7f000 lo
Link encap:本地环回
inet 地址:127.0.0.1
掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING
接收数据包:96 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:96 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节: KB)
发送字节: KB)sudo route -nv内核 IP 路由表目标
使用 接口sudo dhclient -vInternet Systems Consortium DHCP Client 4.2.4Copyright
Internet Systems Consortium.All rights reserved.For info, please visit No broadcast interfaces found - exiting.sudo cat /etc/network/interfaces# interfaces(5) file used by ifup(8) and ifdown(8)auto loiface lo inet loopbacksudo ls -al /etc/resolv.conf lrwxrwxrwx 1 root root 29 10月 25 05:10 /etc/resolv.conf -& ../run/resolvconf/resolv.confsudo cat /run/resolvconf/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)#
DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
21:13,总共编辑了 2 次
&文章标题 : Re: 双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
16:33帖子: 13412
把下面指令 複製 貼進終端機 執行sudo apt-get remove --purge resolvconfsudo reboot重新試試 上面的指令
&文章标题 : Re: 双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
13:29帖子: 4
系统: ubuntu 14.04 LTS
接收感谢: 0 次
poloshiao 写道:把下面指令 複製 貼進終端機 執行sudo apt-get remove --purge resolvconfsudo reboot重新試試 上面的指令----------------------------------------------------------------------uname -r3.16.0-30-genericsudo lspci -knn00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM Controller [] (rev 06) Subsystem: Dell Device [] Kernel driver in use: hsw_uncore00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-th Gen Core Processor PCI Express x16 Controller [] (rev 06) Kernel driver in use: pcieport00:14.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [] (rev 04) Subsystem: Dell Device [] Kernel driver in use: xhci_hcd00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [a] (rev 04) Subsystem: Dell Device [] Kernel driver in use: mei_me00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I217-LM [a] (rev 04) Subsystem: Dell Device [] Kernel driver in use: e1000e00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [d] (rev 04) Subsystem: Dell Device [] Kernel driver in use: ehci-pci00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [] (rev 04) Subsystem: Dell Device [] Kernel driver in use: snd_hda_intel00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 [] (rev d4) Kernel driver in use: pcieport00:1c.1 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #2 [] (rev d4) Kernel driver in use: pcieport00:1d.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [] (rev 04) Subsystem: Dell Device [] Kernel driver in use: ehci-pci00:1f.0 ISA bridge [0601]: Intel Corporation Q87 Express LPC Controller [e] (rev 04) Subsystem: Dell Device [] Kernel driver in use: lpc_ich00:1f.2 SATA controller [0106]: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [] (rev 04) Subsystem: Dell Device [] Kernel driver in use: ahci00:1f.3 SMBus [0c05]: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [] (rev 04) Subsystem: Dell Device []01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Caicos XTX [Radeon HD 8490 / R5 235X OEM] [] Subsystem: Dell Device [] Kernel driver in use: radeon01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Caicos HDMI Audio [Radeon HD 6400 Series] [1002:aa98] Subsystem: Dell Device [1028:aa98] Kernel driver in use: snd_hda_intel03:00.0 PCI bridge [0604]: Texas Instruments XIO2001 PCI Express-to-PCI Bridge [104c:8240]sudo lshw -numeric -class network出现PCI字符又变成SCSI,然后消失什么都没输出,接着系统出现system program problem detected(上次重装e1000e网卡驱动也是出现在这问题)sudo ifconfig -aeth0
Link encap:以太网
硬件地址 34:17:eb:df:3d:9f
inet6 地址: fe80::3617:ebff:fedf:3d9f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST
接收数据包:1737 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:126 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:6.6 KB)
发送字节:2 KB)
中断:20 Memory:f7f000 lo
Link encap:本地环回
inet 地址:127.0.0.1
掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING
接收数据包:155 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:155 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:1 KB)
发送字节:1 KB)sudo route -nv内核 IP 路由表目标
使用 接口sudo dhclient -vInternet Systems Consortium DHCP Client 4.2.4Copyright
Internet Systems Consortium.All rights reserved.For info, please visit No broadcast interfaces found - exiting.sudo cat /etc/network/interfaces# interfaces(5) file used by ifup(8) and ifdown(8)auto loiface lo inet loopbacknationalflag@nationalflag:~$ sudo ls -al /etc/resolv.conf ls: 无法访问/etc/resolv.conf: 没有那个文件或目录
&文章标题 : Re: 双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
16:33帖子: 13412
引用:sudo ls -al /etc/resolv.confls: 无法访问/etc/resolv.conf: 没有那个文件或目录1. 把下面指令 複製 貼進終端機 執行sudo apt-get install --reinstall resolvconf network-manager network-manager-gnomesudo reboot1-1. 再把下面指令 複製 貼進終端機 執行sudo nmcli dev status eth0把結果直接 選取/複製/貼上來2. 補充猜測 你的問題可能在於2-1. 網路有關套件崩潰所以剛剛測試2-2. 有線網卡設定等一下測試
&文章标题 : Re: 双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
13:29帖子: 4
系统: ubuntu 14.04 LTS
接收感谢: 0 次
poloshiao 写道:引用:sudo ls -al /etc/resolv.confls: 无法访问/etc/resolv.conf: 没有那个文件或目录1. 把下面指令 複製 貼進終端機 執行sudo apt-get install --reinstall resolvconf network-manager network-manager-gnomesudo reboot1-1. 再把下面指令 複製 貼進終端機 執行sudo nmcli dev status eth0把結果直接 選取/複製/貼上來2. 補充猜測 你的問題可能在於2-1. 網路有關套件崩潰所以剛剛測試2-2. 有線網卡設定等一下測試---------------------------------------木有网,已经没有resolvconf的安装包了~~是不是要重新要下一个PS:以前是可以上网的,但win8.1更新win10后也不能上网,于是在win10下载更新了网卡驱动,然后ubuntu也不能连网了,不知道是不是影响了网卡的配置。
&文章标题 : Re: 双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
13:12帖子: 2956地址: 山东省寿光县
系统: Debian
引用:以前是可以上网的,但win8.1更新win10后也不能上网,于是在win10下载更新了网卡驱动,然后ubuntu也不能连网了,不知道是不是影响了网卡的配置。双系统网卡设置相互影响的问题,有用户报告关闭主板的网络唤醒功能 (WoL, Wake-on-LAN) 可缓解。不妨尝试一下。参考
_________________Debian 中文论坛 - 欢迎所有 Debian GNU/Linux 用户的加入
_________________
评价:&3.85%&
&文章标题 : Re: 双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
16:33帖子: 13412
引用:已经没有resolvconf的安装包了1. 把下面指令 複製 貼進終端機 執行sudo ls -al /var/cache/apt/archives | grep resolvconf看看 有沒有 resolvconf_1.69ubuntu1_all.deb如果有sudo dpkg -i /var/cache/apt/archives/resolvconf_1.69ubuntu1_all.deb安裝 resolvconf2. 如果沒有 resolvconf_1.69ubuntu1_all.deb從任何一個可以上網的電腦到這個網頁任選一個下載伺服器 下載resolvconf_1.69ubuntu1_all.deb然後複製到這一台電腦使用sudo dpkg -i resolvconf_1.69ubuntu1_all.deb安裝 resolvconf2-1. 也可以到這個網頁任選一個下載伺服器 下載resolvconf_1.69ubuntu1.1_all.deb然後複製到這一台電腦使用sudo dpkg -i resolvconf_1.69ubuntu1.1_all.deb安裝 resolvconf引用:双系统,win10和ubuntu14.04LTS引用:双系统网卡设置相互影响的问题,有用户报告关闭主板的网络唤醒功能 (WoL, Wake-on-LAN) 可缓解。3. 雙系統 或 多重系統 開機最好把所有關機還耗用電源的設定 全部排除否則問題可能一大堆
_________________
评价:&3.85%&
&文章标题 : Re: 双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
13:29帖子: 4
系统: ubuntu 14.04 LTS
接收感谢: 0 次
引用:双系统网卡设置相互影响的问题,有用户报告关闭主板的网络唤醒功能 (WoL, Wake-on-LAN) 可缓解。
引用:3. 雙系統 或 多重系統 開機最好把所有關機還耗用電源的設定 全部排除否則問題可能一大堆 ----------------------------------已解决---------------------------------------------------感谢两位大神到帮忙,最终在关闭windows和主板的网络唤醒功能之后,再重启回到ubuntu就能联网了。
&文章标题 : Re: 双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
13:12帖子: 2956地址: 山东省寿光县
系统: Debian
poloshiao 写道:3. 雙系統 或 多重系統 開機最好把所有關機還耗用電源的設定 全部排除否則問題可能一大堆正解 还包括 PCI-E唤醒 和 PXE 等等等等参考
_________________Debian 中文论坛 - 欢迎所有 Debian GNU/Linux 用户的加入
&文章标题 : Re: &已解决&双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
12:44帖子: 1
系统: windows
送出感谢: 0 次
接收感谢: 0 次
你好,我的问题和你一样,请问你是怎么设置的网络唤醒功能的,在windows10里,是那个magic packet吗?我禁用了还是不可以
&文章标题 : Re: &已解决&双系统,win10和ubuntu14.04LTS,win有线网正常,ubuntu有线网连不上发表于 :
13:12帖子: 2956地址: 山东省寿光县
系统: Debian
写道:你好,我的问题和你一样,请问你是怎么设置的网络唤醒功能的,在windows10里,是那个magic packet吗?我禁用了还是不可以先在 BIOS 中关闭需要先安装 Intel 专有驱动,再在 Intel 专有驱动设置程序中设置 如图附件:
voOsrOJ.png [ 44.95 KiB | 被浏览 1147 次 ]
_________________Debian 中文论坛 - 欢迎所有 Debian GNU/Linux 用户的加入
显示帖子 : 全部帖子1天7天2周1个月3个月6个月1年&排序 作者发表时间文章标题 升序降序&
&[ 11 篇帖子 ]&
正在浏览此版面的用户:没有注册用户 和 2 位游客
您 不能 在这个版面发表主题您 不能 在这个版面回复主题您 不能 在这个版面编辑帖子您 不能 在这个版面删除帖子您 不能 在这个版面提交附件
选择一个版面
------------------
公告/注意事项
& &新闻和通知
& &校园社团支持
& && &华东校区
& && &华南校区
& && &华北校区
& && &华中校区
& && &东北校区
& && &西北校区
& && &港澳台校区
& && &国外校区
& &软件推荐
& &非常任务
系统安装区
& &教学和常见问答
& && &课堂教学和培训
& &初学者园地 - 16.04
& &系统安装和升级
& && &新立得和软件源
& && &Wubi安装讨论
& &启动和引导
& &网卡问题以及网络和拨号
& && &校园网拨号
& &笔记本、UMPC支持
& &手机和平板
& && &Ubuntu移动应用开发
& &常用硬件支持
& &系统架构支持
配置美化区
& &字体美化和中文支持
& && &个人配置文件存放点
& &桌面特效
& &窗口管理器
& &屏幕抓图
& &办公、图像、机械电子设计等
& && &Vim和Emacs
& &因特网相关软件
& &影音多媒体
& &Wine及其分支
& &游戏和游戏模拟器
& &虚拟机和虚拟化
& &其它类软件
& &开源模板库
服务器管理
& &服务器基础应用
& &数据库管理
& &服务器维护和硬件相关
& &Ubuntu VPS
参与Ubuntu开发
& &软件和文档翻译
& &编译或打包
& &Ubuntu错误报告
程序设计区
& &Shell脚本
& &GTK+和QT
& &软件/网站开发
& && &Python/Php/Perl
& && &C/C++/Java
& &内核及嵌入式开发
& &开源小工具
& &Ubuntu 16.10
& &Ubuntu 14.04 LTS
& &Ubuntu 12.04 LTS
& &Ubuntu 10.04 LTS
& &老旧版本支持
& && &Ubuntu 15.10
& && &Ubuntu 15.04
& && &Ubuntu 14.10
衍生发行版
& &Ubuntu GNOME
& &Kubuntu
& &Xubuntu & Lubuntu
& &Ubuntu中文衍生版
& && &UbuntuKylin
& &Ubuntu国外衍生版
& && &Mint
& &Ubuntu衍生版制作
& &其它类Unix OS发行版
& && &Arch发行版
& && &Debian发行版
& && &OpenSUSE发行版
& && &Deepin
& &深度PK版
& &Ubuntu故事和感慨
& &Full Circle开源杂志
分享交流区
& &同城交流
& &线下活动专版
& &Ubuntu宣传推广
& &论坛管理
& && && &Ubuntu中文网上商店}

我要回帖

更多关于 win7 ubuntu 双系统 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信