㈠ Linux切换到其他桌面管理系统后无法连接网络
这个跟软件的自启动有关。和 windows 不同,linux 中连接网络的软件只是一个普通的软件,并非系统软件,没有什么特权。
当进入桌面的时候,会自动根据桌面设置启动某些软件。自动启动了那个连接网络的软件,那么就自动连接了网络。
但是 kde 和 i3wm 自启动软件的方式是不同的。i3wm 需要手动在配置文件(~/.config/i3/config 或 ~/.i3/config)里写脚本。
㈡ linux 网络连不上
1.
半英文半中文是因为语言包不全,你可以打开菜单
system/administration/language
support,把
default
language
设置为
chinese(china),并勾选下面的
enable
support
to
enter
complex
characters.
确定返回后重启机器。
2.
如果你曾在路由器里配置了
dhcp
,那么
ubuntu
启动后打开
fire
fox
直接就可以上网。
**组合键
ctrl
+
alt
+
f1、f2、f3、f4、f5、f6
可以分别进入
6
个命令行形式的虚拟终端,ctrl
+
alt
+
f7
可以返回桌面。
你如果想查看一下本机是否从
dhcp
获得了
ip
地址或
ip
是多少,可以用上述组合键切换到某个虚拟终端,然后用你的帐号登录进去,然后在提示符下输入命令
ifconfig
即可看到各块网卡的配置信息。
如果路由器里没有配置
dhcp,那么你手工设置一下
ubuntu
的网络,打开菜单
system/administration/network,选择
connection
标签,点
unlock
,输入密码。然后会看到一些备选连接,不同的硬件配置会有不同的选项,如果是有线网卡,你可打开
wired
connection
(双击,或单击后点“properties”)配置
ip,网关等等,如果是无线网卡,选择
wireless
connection.
如果是虚拟拨号或通过
modem
上网的,请进入
point
to
point
connection
设置。
㈢ linux系统下怎么连接网络
linux系统下连网络,操作步骤如下:
1、首先用root用户登录linux桌面系统。
㈣ Linux连不上外网,求怎么设置
原理同windows
一、设置网卡信息vi /etc/sysconfig/network-scripts/ifcfg-eth0文件 (注意eth0为第一块网卡地址,请根据本机网卡名称不同调整)
DEVICE=eth0 #物理设备名
IPADDR=192.168.1.X #设置为IP地址(此处用于静态IP,如果是动态分配则不用设置)
NETMASK=255.255.255.0 #掩码
GATEWAY=192.168.1.1 #网关地址(请根据具体情况设置,如子网为192.168.10.X,一般网关为192.168.10.1)
ONBOOT=yes
BOOTPROTO=static #[none|static|bootp|dhcp](不使用协议|静态分配|BOOTP协议|DHCP协议)(如果是动态选择dhcp)
二、修改网关
vi /etc/sysconfig/network(其实一步骤中也有网关,可二选一设置)
NETWORKING=yes
HOSTNAME=Aaron
GATEWAY=192.168.1.1
三、修改DNS
vi /etc/resolv.conf
nameserver 202.109.14.5 #主DNS(请根据区域进行网络,如关键字 :福建省 电信DNS地址)
search localdomain
四、重新启动网络配置
service network restart
即可
㈤ LINUX 连不起网提示无法连接
、安装rp-pppoe
到 http://www.roaringpenguin.com/pppoe/#download下载最新版rp-pppoe 的源代码。
tar xzvf rp-pppoe-3.5.tar.gz
然后进入解压生成的目录:
cd rp-pppoe-3.5
cd src
接下来就是常规的配置编译和安装,一切按默认的即可:
./configure
make
make install
至此,安装结束,下面是设置过程。
二、设置
1. 配置你的网卡,运行:ifconfig eth0
不要给这个网卡(连接ADSL modem的网卡)设置IP地址,另外也不要设置成启动系统时激活网卡。
2. 运行adsl-setup#adsl-setup
Welcome to the Roaring Penguin ADSL client setup. First, I will run some checks on your system to make sure the PPPoE client is installed properly... Looks good! Now, please enter some information:
USER NAME
>;>;>; Enter your PPPoE user name (default XXX): 在这里输入ADSL的用户名
INTERFACE
>;>;>; Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number. (default eth0):如果一张网卡就设置写上eth0
Do you want the link to come up on demand, or stay up continuously? If you want it to come up on demand, enter the idle time in seconds after which the link should be dropped. If you want the link to stay up permanently, enter 'no' (two letters, lower-case.) NOTE: Demand-activated links do not interact well with dynamic IP addresses. You may have some problems with demand-activated links. >;>;>; Enter the demand value (default no):不用写什么
DNS
Please enter the IP address of your ISP's primary DNS server. If your ISP claims that 'the server will provide DNS addresses', enter 'server' (all lower-case) here. If you just press enter, I will assume you know what you are doing and not modify your DNS setup.
>;>;>; Enter the DNS information here:在这里写上主用DNS地址:202.106.0.20
下一个备用DNS地址是202.106.196.115 //这里是北京CNC的DNS服务器地址,你可以根据你所在的区域设置不同的DNS服务器地址。
PASSWORD
>;>;>; Please enter your PPPoE password:输入密码
>;>;>; Please re-enter your PPPoE password:再输入一次
FIREWALLING
Please choose the firewall rules to use. Note that these rules are very basic. You are strongly encouraged to use a more sophisticated firewall setup; however, these will provide basic security. If you are running any servers on your machine, you must choose 'NONE' and set up firewalling yourself. Otherwise, the firewall rules will deny access to all standard servers like Web, e-mail, ftp, etc. If you are using SSH, the rules will block outgoing SSH connections which allocate a privileged source port.
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible for ensuring the security of your machine. You are STRONGLY recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway for a LAN
>;>;>; Choose a type of firewall (0-2):这里添写为2
** Summary of what you entered **
Ethernet Interface: eth0
User name: XXX
Activate-on-demand: No
DNS: Do not adjust
Firewalling: MASQUERADE
>;>;>; Accept these settings and adjust configuration files (y/n)?
3. 查看/etc/ppp/pap-secrets,里面应该有你刚才设置的账号和密码(密码是*)。
4. 编辑/etc/ppp/pppoe.conf
ETH=eth1 将eth1改为eth0(如果你只有一个网卡的话) [email protected] 将[email protected]改为你刚才设置的ADSL账号 别的不要动。
5. 查看/etc/resolv.conf
nameserver xxx.xxx.xxx.xxx (应该是你设置的第一DNS地址)
nameserver xxx.xxx.xxx.xxx (应该是你设置的第二DNS地址)
6. 运行adsl-connect &连接,期间可以查看你的链接状态:adsl-status
㈥ linux虚拟机无法上网该怎么办
方法一、恢复虚拟网络默认设置(在断网状态下):
1、依次单击【编辑】-->【虚拟网络编辑器】,如下图所示:
㈦ kali linux连接不了网络怎么办
虚拟机里面装linux一般三种方式联网:
桥接 和你的物理机网卡一个网段
nat方式 和你的虚拟网卡vmnet8一个网段
仅主机方式 和你的虚拟网卡vmnet1 一个网段
举例一种,思路是一样的。
如果是nat方式你要看vmnet8的地址和你的linux地址是否在一个网段,ping一下vmnet8看看通不通。然后ping物理机ip看看通不通。
可以重启linux网卡试一试。通过这几个步骤基本可以判定是哪的问题导致不能联网,然后在网络一下,问题会很快解决。有一本《linux就该这么学》里面对linux网络这块讲的比较详细网上免费下载。
㈧ linux网络连接不上
我想可能是你的linux系统当中有一些默认的防火墙规则存在,不允许你联网。
你可以使用iptables
-L来查看一下,如果有的话,你可以使用iptables
-F命令来将防火墙规则全部清楚。
还有,你将TCP/IP配置都设好了之后,有没有启动network服务?如果没有的话,你再执行命令:service
network
restart。将它重新启动一下就可以了。
㈨ LINUX无法上网
检查步骤如下:
1、进入sh,执行:ifconfig 命令;
2、如果正常启动了,而且ip已经设置好了,就会在输出结果中发现ip地址,直接就可以上网了
3、如果没有发现ip地址,说明网卡没有正常配置,需要进行配置:
在/etc/sysconfig/network-scripts目录下面有网卡的配置文件
ifcfg-eth0是第一个网卡的配置文件,eth1试第二个,一次类推
使用vi修改配置文件,具体配置文件的内容,可以man以下或者到网上搜索一下,下面是一个模板:
DEVICE="eth0"
#网卡名称
ONBOOT=yes
#启动时就自动链接
NM_CONTROLLED="yes"
#由网络管理工具控制
HWADDR=00:22:68:1A:CB:7D
#物理地址MAC
TYPE=Ethernet
#网卡类型:以太网卡
BOOTPROTO=dhcp
#ip试通过dhcp server 自动获取的
DEFROUTE=yes
#默认路由
PEERDNS=yes
#自动获取DNS
PEERROUTES=yes
#自动获取路由
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
#关闭ipv6
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
4、也可以使用setup命令进行设置:进入超级用户,执行:setup,按照菜单和提示输入网络配置信息;
5、如果安装了图形界面,在右上角就会出现网络管理工具的图标,可以使用它进行配置。
㈩ 虚拟机vmware linux系统无法连接网络怎么办!设置的是NAT但是还是无法连接
打开终端,运行下ifconfig
eth0看下具体
虚拟机
的ip地址是多少!
NAT模式下,确保
系统服务
VMware
NAT
service和VMware
DHCP
service服务启动。