两块网卡如何设置静态路由,开机重启仍有效?
Tofloor
poster avatar
gangel
deepin
2015-12-03 04:28
Author
本帖最后由 gangel 于 2015-12-2 20:31 编辑

无线网卡A接互联网,自动获取IP和DNS
有线网卡B接内网,手动设置IP和DNS
问题1:要在B上设置静态路由,且重启后仍有效,怎么设置啊?找不到在哪里设置
问题2:想指定优先B网卡的DNS,找不到再用A网卡的DNS,如何设置
望大神赐教
Reply Favorite View the author
All Replies
cxbii
deepin
2015-12-03 18:57
#1
貌似我们没有提供这么高端的功能,我记录下
Reply View the author
jhkwei
deepin
2015-12-03 19:10
#2
cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.252
gateway 192.168.1.1
netmask 255.255.255.0

auto eth0:1
iface eth0 inet static
address 192.168.0.252
netmask 255.255.255.0
你再网上找一下,按你要求搞就可以了。
Reply View the author
gangel
deepin
2015-12-04 00:08
#3
https://bbs.deepin.org/post/33706
貌似我们没有提供这么高端的功能,我记录下

有线网络如何手动设置IP我都找不到在哪进行设置。。。
Reply View the author
Lyvnee
deepin
2015-12-04 00:38
#4
gangel 发表于 2015-12-3 16:08
有线网络如何手动设置IP我都找不到在哪进行设置。。。

终端sudo  nmtui
Reply View the author
cxbii
deepin
2015-12-04 17:08
#5
https://bbs.deepin.org/post/33706
有线网络如何手动设置IP我都找不到在哪进行设置。。。

你安装的是15版本的吗?
因为现在是alpha版本,特别是网络方面的功能都没开发完
Reply View the author
gangel
deepin
2015-12-04 17:26
#6
https://bbs.deepin.org/post/33706
你安装的是15版本的吗?
因为现在是alpha版本,特别是网络方面的功能都没开发完 ...

现在装的2015 alpha
Reply View the author
cxbii
deepin
2015-12-04 17:37
#7
https://bbs.deepin.org/post/33706
现在装的2015 alpha

那只能等等了
Reply View the author
knightlu
deepin
2015-12-04 17:38
#8
https://bbs.deepin.org/post/33706
你安装的是15版本的吗?
因为现在是alpha版本,特别是网络方面的功能都没开发完 ...

不知道是debian和centos本身的差别,还是deepin自己做的调整,很多配置文件的位置都和centos差很多,我很少用debian系的发行版,官方能不能出一份主要配置文件的位置说明?
Reply View the author
cxbii
deepin
2015-12-04 17:45
#9
https://bbs.deepin.org/post/33706
不知道是debian和centos本身的差别,还是deepin自己做的调整,很多配置文件的位置都和centos差很多,我很 ...

这个是debian系和redhat系的差别。
抱歉,我们不会做这个说明。
Reply View the author
knightlu
deepin
2015-12-04 18:23
#10
https://bbs.deepin.org/post/33706
这个是debian系和redhat系的差别。
抱歉,我们不会做这个说明。

如果是debian系的区别,资料倒也好找,谢谢了。
Reply View the author