Centos如何設置不同網(wǎng)段的互通?

admin Linux運維評論735字數(shù) 186閱讀模式

Centos如何設置不同網(wǎng)段的互通?

環(huán)境如下:文章源自網(wǎng)吧系統(tǒng)維護-http://s143.cn/7771.html

一臺 192.168.16.0網(wǎng)段的服務器文章源自網(wǎng)吧系統(tǒng)維護-http://s143.cn/7771.html

一臺192.168.1.0網(wǎng)段的服務器文章源自網(wǎng)吧系統(tǒng)維護-http://s143.cn/7771.html

192.168.16.0網(wǎng)段和192.168.1.0網(wǎng)段的機器無法互通。文章源自網(wǎng)吧系統(tǒng)維護-http://s143.cn/7771.html

具體操作如下:文章源自網(wǎng)吧系統(tǒng)維護-http://s143.cn/7771.html

在192.168.16.177的機器上添加路由表文章源自網(wǎng)吧系統(tǒng)維護-http://s143.cn/7771.html

route add -net 192.168.1.0 gw 192.168.16.1 netmask 255.255.255.0文章源自網(wǎng)吧系統(tǒng)維護-http://s143.cn/7771.html 文章源自網(wǎng)吧系統(tǒng)維護-http://s143.cn/7771.html

版權聲明:文章圖片資源來源于網(wǎng)絡,如有侵權,請留言刪除!!!
廣告也精彩
admin
  • 本文由 發(fā)表于 2021年9月28日 17:37:47
  • 轉載請務必保留本文鏈接:http://s143.cn/7771.html
匿名

發(fā)表評論

匿名網(wǎng)友 填寫信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: