zoukankan      html  css  js  c++  java
  • 网安一些记录

    在/proc/sys/net/ipv4/ip_local_port_range  中 原来为 32768 到61000

    echo "56000 57999" > /proc/sys/net/ipv4/ip_local_port_range

      用vi 删了之后修改不行

    或者在/etc/sysctl.conf文件的末尾添加:(未测试)

    net.ipv4.ip_local_port_range = 1024 65535

    然后通过命令:sysctl -p 让刚才增加的东西生效:

    ifconfig eth1 172.16.38.1 netmask 255.255.0.0

    route 命令可以查看目前内核的路由表

    route add default gw 172.16.0.254 dev eth1

    windows2003 key

    JCGMJ-TC669-KCBG7-HB8X2-FXG7M

    对于重庆的网络配置

     

    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet static
    address 10.137.80.65
    netmask 255.255.255.128

    auto eth1
    iface eth1 inet manual

    auto br0
    iface br0 inet static
    address 172.16.38.1
    netmask 255.255.0.0
    gateway 172.16.0.254
    bridge_ports eth1
    bridge_stp off
    bridge_fd 5
    bridge_maxwait 5

    sudo date -s "2011-04-11" 修改本地时间 

    如:sudo date -s "110411 20:20:20" 

     

    子网掩码通常有以下2种格式的表示方法:

     

      1. 通过与IP地址格式相同的点分十进制表示

     

      如:255.0.0.0 或255.255.255.128

     

      2. 在IP地址后加上"/"符号以及1-32的数字,其中1-32的数字表示子网掩码中网络标识位的长度

     

      如:192.168.1.1/24 的子网掩码也可以表示为255.255.255.0

     

      子网掩码一般为255.255.255.0

  • 相关阅读:
    c++运算符优先级
    C++中宽字符类型(wchar_t)的编码
    标志寄存器综述
    ubuntu 更新源
    windows shell命令相关
    汇编语言-环境搭建(16位)
    linux配置ftp
    ssl协议相关
    boost相关
    ubuntu下编译protobuf
  • 原文地址:https://www.cnblogs.com/zhangzhang/p/2479392.html
Copyright © 2011-2022 走看看