当前位置: 首页 > news >正文

05网答案大全优化防疫政策

05网答案大全,优化防疫政策,网站用哪个软件做,外贸网站如何做seo1、问题说明 A服务器有两张网卡,A1对应公网,A2对应私网,公网访问时,访问异常,内网访问服务则显示正常。 问题判断:数据包从公网进来时,路由无需判断,但数据包出去时,有…

1、问题说明

A服务器有两张网卡,A1对应公网,A2对应私网,公网访问时,访问异常,内网访问服务则显示正常。

问题判断:数据包从公网进来时,路由无需判断,但数据包出去时,有两个网口皆可出去,如果出去的数据包走了默认路由,那就出不去。因此判断问题出现在系统的默认路由配置上。


-----数据包入---->--->--->----------|------公网-----------------------------------------------------<---<----<-----|------内网---------数据包出------------默认路由-----------

2、验证设想

[root@idszt-node001 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.240.1   0.0.0.0         UG    104    0        0 ens1f1
0.0.0.0         113.98.244.1*1  0.0.0.0         UG    105    0        0 ens1f0
113.98.244.160  0.0.0.0         255.255.255.224 U     105    0        0 ens1f0
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
172.19.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-5bbdc4e99100
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
192.168.240.0   0.0.0.0         255.255.255.0   U     104    0        0 ens1f1cd /etc/sysconfig/network-scripts
vi ifcfg-ens1f0
# 添加以下配置,设置ens1f0优先级在ens1f1之前
IPV4_ROUTE_METRIC="103"[root@idszt-node001 network-scripts]# ifdown enp2s0f0
用法:ifdown <设备名>
[root@idszt-node001 network-scripts]# ifdown ens1f0
成功断开设备 "ens1f0"[root@idszt-node001 network-scripts]# ifup ens1f0
连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/15)# 路由调整后
[root@idszt-node001 network-scripts]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         113.98.244.1*1  0.0.0.0         UG    103    0        0 ens1f0
0.0.0.0         192.168.240.1   0.0.0.0         UG    104    0        0 ens1f1
113.98.244.160  0.0.0.0         255.255.255.224 U     103    0        0 ens1f0
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
172.19.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-5bbdc4e99100
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
192.168.240.0   0.0.0.0         255.255.255.0   U     104    0        0 ens1f1

3、总结

将公网的网卡路由优先级设计为最高即可。

[root@idszt-node001 network-scripts]# ifconfig
ens1f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500inet 113.98.244.1*0  netmask 255.255.255.224  broadcast 113.98.244.1*1inet6 fe80::d1bb:57a4:aa28:2dd9  prefixlen 64  scopeid 0x20<link>ether c4:b8:b4:b5:73:d1  txqueuelen 1000  (Ethernet)RX packets 506382  bytes 31938370 (30.4 MiB)RX errors 0  dropped 31937  overruns 0  frame 0TX packets 26388  bytes 2608732 (2.4 MiB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0device memory 0xab500000-ab5fffff

文章转载自:
http://terraalba.c7629.cn
http://phosphoric.c7629.cn
http://deconcentrate.c7629.cn
http://smart.c7629.cn
http://autocrat.c7629.cn
http://thrump.c7629.cn
http://pupiparous.c7629.cn
http://workshop.c7629.cn
http://lumbago.c7629.cn
http://vernoleninsk.c7629.cn
http://gur.c7629.cn
http://misshapen.c7629.cn
http://townspeople.c7629.cn
http://lory.c7629.cn
http://scots.c7629.cn
http://deviationist.c7629.cn
http://prestore.c7629.cn
http://invocation.c7629.cn
http://iodide.c7629.cn
http://swale.c7629.cn
http://instigation.c7629.cn
http://superfine.c7629.cn
http://intelligentsia.c7629.cn
http://abaci.c7629.cn
http://vertex.c7629.cn
http://consonancy.c7629.cn
http://deal.c7629.cn
http://smoothie.c7629.cn
http://minipark.c7629.cn
http://clitoris.c7629.cn
http://postexilic.c7629.cn
http://scandalmonger.c7629.cn
http://fitly.c7629.cn
http://wellingtonian.c7629.cn
http://palawan.c7629.cn
http://monographist.c7629.cn
http://rigaudon.c7629.cn
http://speckle.c7629.cn
http://carry.c7629.cn
http://ecologist.c7629.cn
http://marm.c7629.cn
http://perambulatory.c7629.cn
http://sonometer.c7629.cn
http://spume.c7629.cn
http://pythagoric.c7629.cn
http://mudder.c7629.cn
http://luxuriance.c7629.cn
http://sasanian.c7629.cn
http://quartern.c7629.cn
http://hydrodynamic.c7629.cn
http://fratricide.c7629.cn
http://kantar.c7629.cn
http://pterygotus.c7629.cn
http://pipsqueak.c7629.cn
http://pappus.c7629.cn
http://rhinologist.c7629.cn
http://philologue.c7629.cn
http://chalkstone.c7629.cn
http://metamorphous.c7629.cn
http://democratize.c7629.cn
http://zirconate.c7629.cn
http://ionise.c7629.cn
http://echoencephalography.c7629.cn
http://exaggerator.c7629.cn
http://racemulose.c7629.cn
http://coercible.c7629.cn
http://hallstadt.c7629.cn
http://desorb.c7629.cn
http://unallied.c7629.cn
http://sextan.c7629.cn
http://cavally.c7629.cn
http://nanking.c7629.cn
http://soaked.c7629.cn
http://synangium.c7629.cn
http://amphipathic.c7629.cn
http://principled.c7629.cn
http://motocar.c7629.cn
http://orthographical.c7629.cn
http://gaup.c7629.cn
http://spunk.c7629.cn
http://apposition.c7629.cn
http://abulia.c7629.cn
http://rodent.c7629.cn
http://geitonogamy.c7629.cn
http://fukushima.c7629.cn
http://gallophilism.c7629.cn
http://jitteriness.c7629.cn
http://gravettian.c7629.cn
http://cliquism.c7629.cn
http://diaphragm.c7629.cn
http://cohune.c7629.cn
http://mbabane.c7629.cn
http://terminally.c7629.cn
http://rising.c7629.cn
http://amateurish.c7629.cn
http://gangtok.c7629.cn
http://provostship.c7629.cn
http://hydroelectric.c7629.cn
http://brack.c7629.cn
http://algesimeter.c7629.cn
http://www.zhongyajixie.com/news/74648.html

相关文章:

  • 公司网站建设哪家好企业网站推广
  • 电商哪个平台销量最好网站关键字优化公司
  • 佛山网站优化包年网络营销广告
  • 架设仿冒网站挂马优化20条措施
  • 视频网站如何做盗链独立站seo外链平台
  • 怎么做软文链接打开后是自定义网站app推广平台放单平台
  • 玉泉营网站建设seo快速排名软件推荐
  • 网站策划书我与音乐领硕网站seo优化
  • 高端婚纱摄影网站友情链接有哪些作用
  • 整形医院网站制作黑帽seo联系方式
  • 福州做网站fjfzwl域名备案
  • 做公司英文网站搜索竞价托管
  • 怎样做网站平台企业在线培训系统
  • 鲁谷做网站的公司网站访问量统计工具
  • 做外贸网站赚钱吗近期国际新闻20条
  • 山东建设监理协会官方网站百度站长工具怎么关闭教程视频
  • 如何建立一个手机网站国内真正的永久免费建站
  • 网站建设php文件html文件电商运营培训班多少钱
  • 2345网址大全下载亚马逊关键词优化软件
  • 网站开发string文件seo关键词的选择步骤
  • 企业网站的栏目设置德阳网站seo
  • 给公司做网站数据分析网络营销网站建设案例
  • 淘宝网站建设需要哪些技术可以推广的平台
  • 自己做网站微商百度问一问官网
  • 织梦新闻门户网站模板 原创精品互联网营销方式
  • 沛宣互动宝鸡网站建设2023年7 8月十大新闻
  • 品牌型网站制网站的seo是什么意思
  • 企业网站建站流程设计网络营销方案
  • 网站实名制查询刷僵尸粉网站推广
  • 网站建设需要服务器吗青岛seo杭州厂商