深度linux在哪里配置网络?
Tofloor
poster avatar
deepinutunbu
deepin
2013-11-06 19:44
Author
我安装的deepin_12.12_beta_i386.iso,可以上网。但是我找不到在哪里配置网络,比如配置ip地址,网关,dns.
系统设置-网络打开以后,里面的“ip地址”“掩码”“网关”都是空的。可是我上网很正常。
我想知道哪些配置文件是配置网络的?
Reply Favorite View the author
All Replies
cxbii
deepin
2013-11-06 20:28
#1
你是有线网络吧,deepin可以智能识别网络,然后设置网络的,一般来说用户不需要自己设置

如果你想知道网络的知识
可以看一下百科:
http://wiki.linuxdeepin.com/index.php?t ... 1.E7.BB.9C

帖子发错板块了,会移动到系统讨论,请看下板块说明吧
Reply View the author
deepinutunbu
deepin
2013-11-06 21:01
#2
我安装的deepin_12.12_beta_i386.iso,为什么没有/etc/sysconfig目录?
Reply View the author
woodelf
deepin
2013-11-06 21:05
#3
我安装的deepin_12.12_beta_i386.iso,为什么没有/etc/sysconfig目录?
能不能别拿着for RedHat的教程来看待Debian系的发行版……
Reply View the author
deepinutunbu
deepin
2013-11-06 21:12
#4
[quote]我安装的deepin_12.12_beta_i386.iso,为什么没有/etc/sysconfig目录?
能不能别拿着for RedHat的教程来看待Debian系的发行版……[/quote]
不是for redhat的教程,是2楼给的“百科”链接。
楼上能告诉我deepin的网络配置是哪些文件吗?
Reply View the author
woodelf
deepin
2013-11-06 21:15
#5
[quote][quote]我安装的deepin_12.12_beta_i386.iso,为什么没有/etc/sysconfig目录?
能不能别拿着for RedHat的教程来看待Debian系的发行版……[/quote]
不是for redhat的教程,是2楼给的“百科”链接。
楼上能告诉我deepin的网络配置是哪些文件吗?[/quote]
对于由NetworkManager管理的桌面环境而言,用户的配置在~/.gconf/system/networking/connections,系统全局的配置在/etc/NetworkManager文件或目录下。
Reply View the author
deepinutunbu
deepin
2013-11-06 21:36
#6
我的/etc/NetworkManager下有dispatcher.d,system-connections,vpn三个目录,一个文件NetworkManager.conf,内容是
[main]
plugins=ifupdown,keyfile
dns=dnsmasq

[ifupdown]
managed=false
看不出来有什么作用。我想知道哪里配置ip,网关,dns
Reply View the author
lihongwu
deepin
2013-11-06 22:04
#7
下次请不要重复发贴,已锁定另一贴,以后碰到类似情况,两贴将同时被锁定或删除。
http://www.linuxdeepin.com/forum/6/15875
Reply View the author
woodelf
deepin
2013-11-06 22:27
#8
我的/etc/NetworkManager下有dispatcher.d,system-connections,vpn三个目录,一个文件NetworkManager.conf,内容是
[main]
plugins=ifupdown,keyfile
dns=dnsmasq

[ifupdown]
managed=false
看不出来有什么作用。我想知道哪里配置ip,网关,dns
全局配置就写到/etc/NetworkManager/system-connections下面,比如我随便写一个名为Internet的配置文件内容如下:
  1. [802-3-ethernet]
  2. duplex=full
  3. mac-address=0:23:5a:47:1f:71
  4. [connection]
  5. id=Internet
  6. uuid=27afa607-ee36-43f0-b8c3-9d245cdc4bb3
  7. type=802-3-ethernet
  8. autoconnect=true
  9. timestamp=0
  10. [ipv4]
  11. method=manual
  12. ip=192.168.1.100
  13. gateway=192.168.1.1
  14. netmask=255.255.255.0
  15. [ipv4]
  16. method=auto
Copy the Code
保存文件,然后用nmcli con命令查看uuid,之后再修改里面的uuid行。全部完成后把文件权限改为600。DNS在/etc/resolv.conf中设置。
另外,如果在图形下面你用NetworkManager的applet来配置就行了,没必要自己写配置文件,也不鼓励这么做。
如果你要采用纯手动方式,那就得停用NetworkManager,自己写/etc/network/interfaces这个配置文件。
Reply View the author
deepinutunbu
deepin
2013-11-06 22:54
#9
1.在图形下怎么使用NetworkManager的applet?在哪里?
你看了我一楼的图吗,我在系统设置-网络-有线里打开以后,ipv4下内容是空的。
2.我想知道既然我的网络能用,一定有一个配置好了的配置文件在起作用,我想知道那个文件在哪里。我的/etc/NetworkManager/system-connections下面是空的。
Reply View the author
cxbii
deepin
2013-11-06 23:07
#10
那个百科的是我之前找到的,的确并不完全适合deepin
存在相同现象的页面还有系统服务

这两个页面我会改,但是会推迟
Reply View the author
woodelf
deepin
2013-11-06 23:25
#11
1.在图形下怎么使用NetworkManager的applet?在哪里?
你看了我一楼的图吗,我在系统设置-网络-有线里打开以后,ipv4下内容是空的。
2.我想知道既然我的网络能用,一定有一个配置好了的配置文件在起作用,我想知道那个文件在哪里。我的/etc/NetworkManager/system-connections下面是空的。
1、你一楼那个图就是了。
2、默认情况下,NetworkManager应该没有配置文件的,由dhcpcd或dhclient这些daemon尝试自动分配IP和获取DNS、掩码、网关等信息。
你要想深入了解,就去看源代码。
Reply View the author
deepinutunbu
deepin
2013-11-07 00:35
#12
谢谢楼上。
Reply View the author