關於telnet: connect to address 190.168.6.6: No route to host 報錯處理

來源:互聯網
上載者:User

標籤:default   address   防火牆   linux   路由表   

嘗試telnet 一個ip的一個連接埠,來測試連接埠是否通。結果:

650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

反饋像是說這個地址不在路由表裡。

這種問題。有兩個處理方法


  1. 可能主機開啟防火牆,做了阻擋。


check iptables ,

650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

我們執行 iptables -F 清除所有防火牆規則

650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

然後再關閉防火牆

650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

再嘗試telnet

650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

還是報錯。

那麼跳到處理2


2.該位址區段不在路由表內。(處理方法加入路由表)

先檢查路由表,route -n

650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

然後發現沒有,那麼加入の

 linux 加入 路由表命令 

  route add -net  xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx dev 當前的網卡

650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

然後再測試下telnet

650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

還是不行說明,是網路裝置層面的問題。


PS:

  刪除路由(從路由表)

route del -net  xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx dev 當前的網卡


 設定預設閘道

route add default gw 190.168.9.1


本文出自 “IT營運技術分享” 部落格,請務必保留此出處http://emouer.blog.51cto.com/9906658/1612141

關於telnet: connect to address 190.168.6.6: No route to host 報錯處理

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.