debian和ubuntu的网络配置,保存的实际位置

admin 2016年01月12日 Linux学习 664次阅读 查看评论

debian和ubuntu的网络配置,保存的实际位置

NetworkManager saves these settings in 

实际位置在:

/etc/NetworkManager/system-connections/name-of-connection

QQ截图20160113151617.jpg

. Example
/etc/NetworkManager/system-connections/Wired connection 1 :



[802-3-ethernet]
duplex=full
mac-address=XX:XX:XX:XX:XX:XX

[connection]
id=Wired connection 1
uuid=xxx-xxxxxx-xxxxxx-xxxxxx-xxx
type=802-3-ethernet
timestamp=1385213042

[ipv6]
method=auto

[ipv4]
method=auto
dns=208.67.222.222;



ignore-auto-dns=true
Running nm-tool again should show that NetworkManager now has the right idea of how your DNS should be resolved.


DHCP Client Configuration

Example: dhclient3 uses /etc/dhcp/dhclient.conf. The setting you want is


supersede domain-name-servers 12.34.56.78, 12.34.56.79;
or perhaps


prepend domain-name-servers 12.34.56.78, 12.34.56.79;
See the dhclient.conf(5) manual page for details.

« 上一篇 下一篇 » admin原创文章,转载请注明出处! 标签:debian网络配置

相关日志:

«   2019年7月   »
1234567
891011121314
15161718192021
22232425262728
293031
控制面板
您好,欢迎到访网站!
  [查看权限]
网站分类
文章归档
网站收藏
友情链接
图标汇集