加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Ubuntu > 正文

Ubuntu网络配置

发布时间:2020-05-22 18:42:07 所属栏目:Ubuntu 来源:互联网
导读:方法一: root@debian:~# vim.tiny /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /

方法一:

root@debian:~# vim.tiny /etc/network/interfaces

# This file describes the network interfaces available on your system

# and how to activate them. For more information,see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface

auto eth0

iface eth0 inet static

address=192.168.2.100

netmask=255.255.255.0

gateway=192.168.2.254

输入x保存退出


修改DNS:#nano /etc/resolvconf/resolv.conf.d/base

nameserver 8.8.8.8


重启服务:/etc/init.d/networking restart

开启网卡:ifconfig eth0 up

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读