【192.168.2.1/24如何访问192.168.1.1/24的服务器?】分享给互联网从爱好者学习参考。
</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0pxfont-family:Microsoft YaHei UI">在网络中,ip地址192.168.2.1如何访问192.168.1.1的服务器呢?</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,251,0)font-family:Microsoft YaHei UI">第一个解决办法:添加三层转发设备。</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0pxfont-family:Microsoft YaHei UI">首先分析192.168.2.1/24和192.168.1.1/24,它们的掩码都是24位,不在同一个网段,</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0pxfont-family:Microsoft YaHei UI">所以就简化为两个不同网段的主机如何互访?这个问题就很好解决了,中间加一个三层交换机或路由器作为网关,把它们连接起来就可以了,例如下图所示:</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial">
</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">当配置IP地址,并且打开端口以后,在路由器上就会自动生成两条静态路由,如下所示:</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">
</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">他们之间的报文会经过直连路由转发。
</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0pxfont-family:Microsoft YaHei UI">这个方法在于这两台主机的网关要配置好,另外这两台主机之间可能不止一台路由器,还有可能有其它的设备,在这些设备上都要启用路由协议,保持一路畅通。</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial">
</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,251,0)font-family:Microsoft YaHei UI">方法二:修改这两台主机的子网掩码</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0pxfont-family:Microsoft YaHei UI">这种情况能较快的解决问题。</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0pxfont-family:Microsoft YaHei UI">可以把ip地址192.168.2.1和192.168.1.1修改他们的子网掩网,使他们在同一个网段的中,例如把子网掩码修改为16位,即255.255.0.0,这两台主机就在同一个网段了。他们的网络ID都是192.168.0.0/16。</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">
</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial">
</em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0pxfont-family:Microsoft YaHei UI">那么相同网段之间的主机怎么通信呢?
</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0pxfont-family:Microsoft YaHei UI">在实际项目中,加上二层交换机了,把它们接在同一个VLAN里,那么它们也就可以通信了。</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"></em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,251,0)">
</em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">我对上面的两种方法在做一下简单的总结:
</em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">
</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">1、</em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">它们之间通信通过三层交换机或路由器,通过路由来转发来实际不同网段间的通信。</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0pxfont-family:Microsoft YaHei UI">2、修改子网掩码,将两台主机的掩码修改为16位,直连或者通过二层交换机通信;</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">
</em>portant; FONT-SIZE: 17px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; FONT-FAMILY: -apple-system-font, Bl<em></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; TEXT-ALIGN: justify; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: both; MIN-HEIGHT: 1em; ORPHANS: 2; WIDOWS: 2; MARGIN: 0px; LETTER-SPACING: 0.54px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial"></em>portant; FONT-SIZE: 15px; WORD-WRAP: break-word !im<em></em>portant; MAX-WIDTH: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0pxfont-family:Microsoft YaHei UI">当然也还有很多其它不同的方法,例如单臂路由等,需要与实际环境所使用的设备结合起来。