zoukankan      html  css  js  c++  java
  • Linxu网络常用命令(CentOS 7)

     命令 全称  作用 常用参数距离
    nmcli network manager command line 查看所有网络设备和网络连接状态 nmcli d; nmcli device show; nmcli connection show
    nmtui network manager text UI 网络管理器的文字终端UI
    ifup interface up 启用网络设备  
    ifdown interface down 关闭网络设备  
    ifquery interface query    
    dhclient dhcp client 自动配置DHCP服务器  
    ip     ip address
    ifconfig interface config 类似于ipconfig,但已被ip命令替代  
    service   系统服务 service network restart 重启网络服务

    配置地址及文件:

    配置文件 作用
    /etc/sysconfig/network-scripts/ifcfg-{interface name} 配置ip地址、DNS服务器
    /etc/resolv.conf DNS服务器

    参考链接:

    https://superuser.com/questions/1282808/how-to-enable-network-adapter-in-centos7-minimal

    https://superuser.com/questions/915536/centos-7-virtualbox-no-internet-access

    https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-networkmanager_tools

  • 相关阅读:
    const修饰指针
    C++调用C中编译过的函数要加extern "C"
    linux常用指令(1)
    链式队列实现
    存储类别和类型限定词
    数组,指针和引用
    字符函数和字符串函数
    C/C++编译的程序占用的内存
    结构体1(嵌套使用)
    输入输出函数小结
  • 原文地址:https://www.cnblogs.com/hejing195/p/14679023.html
Copyright © 2011-2022 走看看