deepin如何配置单网卡双ip?
Tofloor
poster avatar
94share
deepin
2016-11-30 18:23
Author
由于工作需要,要在单网卡上配置双ip,这个问题在ubuntu上是有图形化界面就可以搞定的,deepin的图形化界面好像添加不了新ip,百度使用了/etc/network/interfaces没有什么用。重启后依旧是图形化设置的值。
望大神给个答案。

另。为啥没有内置ethtool工具,还是放在哪里没找到???

Reply Favorite View the author
All Replies
avatar
jingle
deepin
2016-11-30 18:35
#1
好的,我反馈下。

jingle@jingle:~$ apt-cache search ethtool
ethtool - display or change Ethernet device settings

自己安装就可以了。
Reply View the author
avatar
94share
deepin
2016-11-30 19:29
#2
https://bbs.deepin.org/post/132568
好的,我反馈下。

jingle@jingle:~$ apt-cache search ethtool

ok,thanks...
Reply View the author
avatar
Feng Yu
deepin
2016-11-30 19:48
#3
本帖最后由 abcfy2 于 2016-11-30 11:51 编辑

改/etc/network/interfaces没用是因为图形界面下被NetwrokManager服务托管了,这个服务不会读取/etc/network/interfaces的配置。你看的文档应该是ubuntu server的吧?
另外我记得我还反馈过deepin的DNS修改无效,因为只是机械的将主备DNS追加到了DHCP获取到的DNS之后,这是没用的。DNS的配置是按照顺序请求,只有前面的DNS无法连接(是彻底连接失败,而不是拿不到解析记录)才会依次去后面的DNS查找。Ubuntu和Linuxmint的做法是使用dnsmasq缓存一个本地的dns,你可以发现/etc/resolv.conf写的是127.0.1.1,Ubuntu和LinuxMint修改的DNS是会改到dnsmasq的配置的,所以是可以生效的。
Reply View the author
avatar
Feng Yu
deepin
2016-11-30 19:52
#4
其实你也可以创建一个虚拟网卡来代替单网卡双IP
Reply View the author
avatar
fasheng
deepin
2016-11-30 20:00
#5
目前deepin不支持设置多IP,用nmtui配置吧,终端图形化界面
Reply View the author