zoukankan      html  css  js  c++  java
  • 网络管理

    网络管理
    wan(wide area network 广域网):几千米以上
    lan(local area network 局域网):范围在几米到几千米以内的网络
    以太网(Ethernet)
    csma/cd 发前先听,边发边听,冲突停发,延迟重发
    csma/ca
    半双工:
    双工、单工

    冲突:
    信息传递、资源共享
    osi
    tcp/ip 物理、数据链路、网络、传输、 应用层。
    ip tcp/udp web
    对等层通信
    data + 应用(qq)+传输+网络+数据(mac)+物理(0001110)


    等级保护

    一套解决方案,

    32 20亿 15亿 中 3.4亿

    mac 48 全球唯一 24 24
    ip 32
    网关:
    默认路由:
    主机路由

    地址:mac
    ip/mask
    dns服务器

    配置方式:
    静态方式:ifconfig ,route ,netstat
    ip ( ) ss
    图形界面:nmtui,nmcli
    配置文件:vim /etc/sysconfig/network-scripts/ifcfg-ens33
    动态方式:
    DHCP:dynamic host configuration protocol

    ifconfig 配置网络接口
    ifconfig -a
    ifconfig ens33 down 关闭接口
    ifconfig ens33 up 开启接口
    ifconfig ens33 down ;ifconfig ens33 up 重启网卡服务
    ifconfig ens33 arp 开启arp 解析功能
    ifconfig lo -arp 关闭arp 解析功能
    ifconfig lo promisc 开启网卡混杂模式
    ifconfig lo 10.10.10.10/24 配置接口地址和掩码

    查看配置的网络接口

    Ifconfig -a显示或配置网络设备

       ifconfig ens33 down关闭接口

    ifconfig ens33 up 开启接口

    同时输入,完成两条命令,关闭加开启,相当于重启接口

    开启、关闭arp 解析功能,关闭后远程SSH掉线

    ifconfig lo promisc开启网卡混杂模式

    配置接口地址和掩码

    配置网卡信息vi /etc/sysconfig/network-scripts/ifcfg-ens33

    nmcli地址配置工具

    route 显示 / 操作IP选路表
    -n 以地址形式显示路由信息
    route [-v] [-A family] add [-net|-host] target [netmask Nm] [gw Gw] [metric N]
    route add -host 1.1.1.1 gw 172.16.12.2 配置主机路由
    route add default gw 172.16.12.2 配置默认路由
    route [-v] [-A family] del [-net|-host] target [gw Gw][netmask Nm] [metric N] [[dev] If]
    route del -net 0.0.0.0 netmask 0.0.0.0 gw 172.16.12.2 删除默认路由

     

     以地址形式显示路由信息

    配置主机路由

    删除主机路由

    配置默认路由

    删除默认路由

    DNS 域名解析服务
    /etc/resolv.conf

    netstat 显示网络连接,路由表,接口状态,伪装连接,网络链路信息和组播成员组
    netstat [-t] [-u] [-w] [-l] [-a]
    netstat -t tcp相关协议
    netstat -tan 显示关于tcp 所有基于ip+端口连接
    netstat -r 显示路由
                -n 数字格式
                -i 显示接口统计数据

     

     

    -r  显示路由

      -n  数字格式

        -i  显示接口统计数据

  • 相关阅读:
    WSGI详解
    WSGI、flup、fastcgi、web.py的关系
    全面解读python web 程序的9种部署方式
    python对web服务器做压力测试并做出图形直观显示
    6个最佳的开源Python应用服务器
    用 Python 脚本实现对 Linux 服务器的监控
    浅谈图片服务器的架构演进
    Python中使用Flask、MongoDB搭建简易图片服务器
    流行python服务器框架
    搜索引擎技术之概要预览
  • 原文地址:https://www.cnblogs.com/wufanblog/p/13463839.html
Copyright © 2011-2022 走看看