【玩转腾讯云】必须保障169.254网段的路由网关正确

2023-01-05 12:19:41 浏览数 (1)

保证内网域名能正常解析,假如改过默认dns,使得tat内网域名解析不了,那就得加hosts实现,以管理员身份打开cmd分别逐句执行这几句命令来加

代码语言:javascript复制
echo 169.254.0.138  invoke.tat-tc.tencent.cn >>  c:windowssystem32driversetchosts
echo 169.254.0.138  notify.tat-tc.tencent.cn >>  c:windowssystem32driversetchosts
echo 169.254.0.138  notify.tat.tencent-cloud.com >>  c:windowssystem32driversetchosts

也可以把下面这些内网域名ip对应关系配置到C:WindowsSystem32driversetchosts

除过确保确保内网域名解析没问题外,还得确保能实际访问才行,我就遇到过169.254网段路由中网关地址不对导致云服务器访问169.254网段的内网服务不通的case,当时是访问内网ntp server有问题

其实类似问题,只要169.254网段路由有问题,所有内网服务(大多是169.254网段)都会有问题

代码语言:javascript复制
169.254.0.3 mirrors.tencentyun.com
169.254.0.15 update2.agent.tencentyun.com
169.254.0.4 receiver.barad.tencentyun.com
169.254.0.5 custom.message.tencentyun.com
169.254.0.23 metadata.tencentyun.com
169.254.0.19 kms.tencentyun.com
169.254.0.54 kms1.tencentyun.com
169.254.0.26 windowsupdate.tencentyun.com
169.254.0.2 ntpupdate.tencentyun.com
169.254.0.79 time1.tencentyun.com
169.254.0.80 time2.tencentyun.com
169.254.0.81 time3.tencentyun.com
169.254.0.82 time4.tencentyun.com
169.254.0.83 time5.tencentyun.com
169.254.0.138 invoke.tat-tc.tencent.cn
169.254.0.138 notify.tat-tc.tencent.cn
169.254.0.138 notify.tat.tencent-cloud.com

截图中的示例,执行route add -p 169.254.0.0 mask 255.255.128.0 11.153.106.1 后已经通了(后面的网关具体化)

0 人点赞