Blogger Information
Blog 7
fans 0
comment 0
visits 11753
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
云服务器配置的内网IP跟MTU
珑珲云服务器
Original
695 people have browsed it

如何配置服务器的内网IP以及MTU 1

编辑网卡配置文件,注意MTU都是1450,否则通信会出现异常

centos:  /etc/sysconfig/network-scripts/ifcfg-eth1
配置如下

修改IPADDR和NETMASK,重启网卡eth1 是配置生效

ubuntu18 :/etc/netplan/50-cloud-init.yaml
配置如下

修改eth1 的 addresses的ip地址和掩码,netplan apply 是配置生效

debian: /etc/network/interfaces
配置如下

修改eth1 address和netmask,重启网卡eth1生效

Windows系统

开始->运行->CMD: netsh interface ipv4 set subinterface "这里填写内网网卡名" mtu=1450 store=persistent

网卡名称如下图所示:如 "以太网 3"

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post