ubuntu安装配置网卡及防火墙配置

Posted on 2020-09-28 15:02  风行天下-2080  阅读(994)  评论(0编辑  收藏  举报

1、系统安装:

https://jingyan.baidu.com/article/3c48dd348bc005e10be358eb.html

2、系统更新:

https://blog.csdn.net/ezhchai/article/details/80525207

3、系统下载地址:

https://releases.ubuntu.com/xenial/

4、ubuntu系统的防火墙相关:

https://blog.csdn.net/qq_36938617/article/details/95234909?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param

5、配置网络:

(1)

https://www.cnblogs.com/lishubin/p/11672037.html

https://blog.csdn.net/yangpf1910/article/details/96432979

 

 

  • ifconfig查看IP地址是否改过来,如若发现Ip地址重启网络不生效,在命令行执行
  •  

     

     ip addr flush dev eth0

          ifdown eth0

          ifup eth0

(2)配置虚拟网卡:

https://www.cnblogs.com/nulige/p/8979069.html

 6、 配置ssh远程连接

https://blog.csdn.net/zhe_csdn/article/details/90053018

7、yum与apt的区别与使用

https://blog.csdn.net/Lkeven/article/details/77100358

 8、安装docker

sudo apt install docker.io

使用docker 安装centos7镜像

https://www.runoob.com/docker/docker-install-centos.html

 9、Ubuntu16.04删除客人会话

https://blog.csdn.net/weixin_30415113/article/details/94965509

 10、ubuntu15系统使用root用户或者其它用户登录系统

https://blog.csdn.net/XiaoXiaoPengBo/article/details/78028134

 11、ubuntu安装tigervnc

https://jingyan.baidu.com/article/cbcede077f59bf02f40b4ddb.html

 12、ubuntu使用root用户无法ssh登录解决办法

https://jingyan.baidu.com/article/066074d615b8f4c3c31cb067.html

 ——————————————————————————————

配置IP及DNS

https://blog.csdn.net/jlusuperwind/article/details/4074498

一、配置ip
     ubuntu的网络配置信息放在 /etc/network/interfaces 中,
    
     如果配置动态获取ip,则在上述文件中加入以下内容:
     auto eth0
     iface eth0 inet dhcp
 
     如果配置静态ip,则添加如下内容:
     auto eth0
     iface eth0 inet static
     address 192.168.33.201
     netmask 255.255.255.0
     gateway 192.168.33.1
 
     要是配置生效,需要重启网卡:
     ifconfig eth0 down
     ifconfig eth0 up
    
     不是root,命令前面加sudo
    
     接着用ifconfig命令查看ip是否配置成功,配置成功的结果如图一所示:

 ifconfig结果
   图一 配置成功后的ip信息
 
      若还有没有配置成功,则需重启下网络服务
             /etc/init.d/networking restart
 
二、配置dns服务器
         ubuntu 的dns服务器信息,放在 /etc/resolv.conf中,
         添加dns服务器地址,如202.112.125.53,则在上述文件中加入
             nameserver  202.112.125.53
————————————————

 

1

 

Copyright © 2024 风行天下-2080
Powered by .NET 8.0 on Kubernetes