小白网-奉贤部落-奉贤免费信息发布平台

查看: 11|回复: 0
打印 上一主题 下一主题

理解了异地恋,就理解如何配置交换机,一文了解清楚

[复制链接]

2万

主题

2万

帖子

7万

积分

论坛元老

Rank: 8Rank: 8

积分
78162
跳转到指定楼层
楼主
发表于 2025-7-26 14:03 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
portant; word-wrap: break-word !important; font-size: 15px;">前面我们多次了交换机的配置, 有朋友反映太难了,portant; word-wrap: break-word !important; font-size: 15px;">看不懂,有弱电vip技术群也不断的有朋友在问交换机的相关配置,今天我们来以步步深入的方式来讲解交换机的配置。以通俗的方式来讲解交换机的配置方式。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">

portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">

portant; clear: both; min-height: 1em; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; text-align: center; letter-spacing: 2px; font-size: 15px; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">案例一、划分vlan,实现同交换机下pc1与pc2不通信portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">我们在做项目时,当把电脑连接好交换机后,两台电脑同时接入一台交换机中,如果不做任何配置,两台电脑是可以互相访问的。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">

portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">如上图所示,假设不看vlan10与vlan20,在对交换机未进行VLAN划分时,PC1和PC2之间是可以通信的。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important;">portant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px;">我们来通俗的理解上面的要求:
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px;">一对情侣搞对象,小明与小芳,两个人在同一个城市同一个公司,现在他们想什么时候见面就可以什么时候见面,城市就相当于交换机,公司就相当于在同一个vlan中。pc1与pc2就是小明跟小芳。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px;">由于他们多次在公司秀恩爱,已影响到其它单身的同事,公司领导已知道事情的严重性,于是就想办法阻止他们在公司碰面,怎么办呢?
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66);">portant; word-wrap: break-word !important;">1、要求:
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">而实际项目中,为了不让pc1与pc2之间通信,需要使pc1与pc2进行隔绝,使pc1与pc2不能互相通信,这个在很多项目中都会遇到这样的情况,那么如何配置呢?
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">于是领导把小明调到同城市附近的分公司去办工,让小明、小芳隔离。所以需要划分vlan,把小明与芳划分到不同的vlan中,也就是不同的分公司中,使他们不能见面(通信),也就能解决秀恩爱影响其它同事的问题。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">所以:创建vlan。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66);">portant; word-wrap: break-word !important;">2、创建VLAN
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-family: 宋体; color: rgb(0, 102, 153);">根据上图中的规划,通过以下的方式来创建portant; word-wrap: break-word !important; font-family: Verdana; color: rgb(0, 102, 153);">VLANportant; word-wrap: break-word !important; font-family: 宋体; color: rgb(0, 102, 153);">,其中要创建的两个portant; word-wrap: break-word !important; font-family: Verdana; color: rgb(0, 102, 153);">VLANportant; word-wrap: break-word !important; font-family: 宋体; color: rgb(0, 102, 153);">分别为portant; word-wrap: break-word !important; font-family: Verdana; color: rgb(0, 102, 153);">VLAN 10portant; word-wrap: break-word !important; font-family: 宋体; color: rgb(0, 102, 153);">和portant; word-wrap: break-word !important; font-family: Verdana; color: rgb(0, 102, 153);">VLAN 20portant; word-wrap: break-word !important; font-family: 宋体; color: rgb(0, 102, 153);">。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-family: 宋体; color: rgb(0, 102, 153); font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switch>   enable   portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0);">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">    // (portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">进入“特权模式”portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">)
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Password: xxxx        portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0);">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; text-align: left;">//portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">(输入密码)
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-family: Verdana; color: rgb(0, 102, 153); font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switch#configure terminal    portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; text-align: left;">//(portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">进入“全局配置”模式portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">)
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-family: Verdana; color: rgb(0, 102, 153); font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switchportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">(portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">configportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">)portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">#VLANportant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153); font-style: italic;"> 10portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">  portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0);">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">     portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; text-align: left;">//portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">(创建portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">VLAN 10portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">)
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-family: 宋体; color: rgb(0, 102, 153); font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switchportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">(portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">config-vlanportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">)portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">#name portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153); font-style: italic;">test10portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">   portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0);">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;"> portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; text-align: left;">//portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">(给portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">VLAN 10portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">命名为portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">test 10portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">)
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switchportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">(portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">config-vlanportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">)portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">#exit    portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0);">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; text-align: left;">//portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">(退出portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">VLAN 10portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">配置模式)
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switchportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">(portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">configportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">)portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">#VLANportant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153); font-style: italic;"> 20portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">      portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0);">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; text-align: left;">//portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">(创建portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">VLAN 20portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">)
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switchportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">(portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">config-vlanportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">)portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">#name portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153); font-style: italic;">test20portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">    portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0);">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;"> portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; text-align: left;">//portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">(给portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">VLAN 20portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">命名为portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana;">test 20portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">)
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switchportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">(portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">config-vlanportant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 153);">)portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">#end     portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0);">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; text-align: left;">//portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体;">(退出配置命令,进入特权模式)
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px;">portant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px; font-family: 宋体;">如果要删除已创建的portant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px; font-family: Verdana;">VLANportant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px; font-family: 宋体;">,可以在配置模式下输入“portant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px; font-family: Verdana;">no vlanvlan-id”portant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px; font-family: 宋体;">来完成:portant; word-wrap: break-word !important; font-family: 宋体; color: rgb(0, 0, 0); font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(0, 0, 0); font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0); font-family: Verdana;">Switchportant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0); font-family: 宋体;">(portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0); font-family: Verdana;">configportant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0); font-family: 宋体;">)portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0); font-family: Verdana;">#no vlan 10   portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0); font-family: 宋体;">(删除portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0); font-family: Verdana;">VLAN 10portant; word-wrap: break-word !important; font-size: 15px; color: rgb(0, 0, 0); font-family: 宋体;">)portant; word-wrap: break-word !important; font-family: 宋体; color: rgb(0, 0, 0); font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px; color: rgb(217, 33, 66);">portant; word-wrap: break-word !important;">3、将交换机端口分配到VLAN在创建了VLAN后,就可以将交换机的端口添加到指定的VLAN中。portant; word-wrap: break-word !important; font-size: 15px; font-family: 宋体; color: rgb(0, 102, 102);">
portant; word-wrap: break-word !important;">步骤1:
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important;">将fastEthernet0/1~ fastEthernet0/6添加到VLAN10中。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important;">

portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switch#configure terminal   portant; word-wrap: break-word !important; font-size: 15px;">  // 进入全局配置模式
portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switch(config)#interface fastethernet 0/1 portant; word-wrap: break-word !important; font-size: 15px;"> //进入fastEthernet0/1的端口配置模式
portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switch(config-if)#switchport access vlan10portant; word-wrap: break-word !important; font-size: 15px;">   //(将fastEthernet0/1端口添加到VLAN10中
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">重复以上的命令,分别将fastEthernet0/2~ fastEthernet0/6添加到VLAN10中。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important;">步骤2:
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important;">将fastEthernet0/7~ fastEthernet0/12添加到VLAN20中。portant; word-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switch#configure terminal    portant; word-wrap: break-word !important; font-size: 15px;">   // 进入全局配置模式
portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switch(config)#interface fastethernet 0/7portant; word-wrap: break-word !important; font-size: 15px;">    //进入fastEthernet0/7的端口配置模式
portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Switch(config-if)#switchport access vlan20  portant; word-wrap: break-word !important; font-size: 15px;">  //将fastEthernet0/7端口添加到VLAN20中portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">重复以上的命令,分别将fastEthernet 0/8~ fastEtherne t0/12添加到VLAN10中。portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66);">portant; word-wrap: break-word !important;">5、保存设置
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">在进行了交换机的配置后,为了防止断电等原因造成的配置参数丢失,可以通过以下命令进行保存。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Router-A#write memory  portant; word-wrap: break-word !important; font-size: 15px;">或者
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);">Router-A#Copyrunning-config starup-configportant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px;">这样就:portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; font-size: 15px; font-family: Verdana; color: rgb(0, 102, 153);"> 将PC1接入VLAN 10所在的端口,再将PC2接入VLAN 20所在的端口。然后利用Ping命令进行测试,发现PC1和PC2之间无法进行通信,就完成了。portant; word-wrap: break-word !important; font-family: 宋体; color: rgb(0, 102, 153);">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">在同一个交换机上面的配置,是比较简单,基本思路就是:
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">进入配置模式—建vlan—为vlan分配端口——然后将相关的设备(电脑)连接到相应的端口中portant; word-wrap: break-word !important; font-size: 15px; color: rgb(217, 33, 66);">。portant; word-wrap: break-word !important; color: rgb(217, 33, 66); font-size: 15px;">基本上就是利用位于不同VLAN之间的端口是无法直接进行通信的原理来实现的。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">小明小芳不在同一个公司,就无法在公司秀恩爱了。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">

portant; clear: both; min-height: 1em; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; text-align: center; letter-spacing: 2px; font-size: 15px; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">案例二、单臂路由实现同一交换机下,不同vlan间的通信portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-align: left; text-indent: 30px;">你以为把小明、小芳拆分到同城市下的分公司,就可以阻绝他们见面吗?
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-align: left; text-indent: 30px;">小明与小芳由于现在不在同一家公司,小明到分公司后,经常利用午休时间约小芳一起见面。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">pc1与pc2已经不在同一vlan中,pc1属于vlan10,pc2属于vlan20,那么pc1如何与pc2通信呢?需要使用路由功能,这里面就有两种实现方法,一种是单臂路由,一种是三层交换机;这里面我们就以单portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">臂路由的方式来实现pc1与pc2通信。如下图所示:以思科交换机为例。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">

portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66);">portant; word-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px;">1、在路由器上配置子接口并封装802.1qportant; word-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router>               //初始
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router>en           //进入特权模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router#conf t      //进入全局模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config)#int f0/0   //创建并进入端口f0/0
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-if)#no shutdown     //开启端口
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-if)#int f0/0.1           //创建并进入子接口
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-subif)#description vlan10     //对子接口进行描述
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-subif)#encapsulation dot1q 10     //对子接口封装802.2q 协议,并定义VID 为10
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-subif)#ip add 192.168.10.1 255.255.255.0    //为子接口配置IP 地址为192.168.10.1
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-subif)#no shutdown        //开启端口
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-subif)#exit    //返回用户模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config)#int f0/0.2      //创建并进入端口f0/0.2
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-subif)#description vlan20       //对子接口进行描述
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-subif)#encapsulation dot1q 20   portant; word-wrap: break-word !important; font-size: 15px;">//对子接口封装802.2q 协议,并定义VID 为20
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-subif)#ip add 192.168.20.1 255.255.255.0   portant; word-wrap: break-word !important; font-size: 15px;">//为子接口配置IP 地址为192.168.20.1、
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">、
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-subif)#no shutdown   portant; word-wrap: break-word !important; font-size: 15px;">//开启端口
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Router(config-subif)#end     
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66);">portant; word-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px;">2、在交换机上划分VLANportant; word-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(77, 77, 77); font-family: ">Switch>     //初始
portant; word-wrap: break-word !important; color: rgb(77, 77, 77); font-family: ">Switch>en   portant; word-wrap: break-word !important; font-size: 15px;">  //进入特权模式
portant; word-wrap: break-word !important; color: rgb(77, 77, 77); font-family: ">Switch#conf t     portant; word-wrap: break-word !important; font-size: 15px;">  //进入全局模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config)#vlan 10     //创建vlan10
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config-vlan)#vlan 20    portant; word-wrap: break-word !important; font-size: 15px;">//创建vlan10
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config-vlan)#exit     
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config)#int f0/2     //创建端口f0/2
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config-if)#switchport acc vlan 10  //将端f0/2划分到vlan10中
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config-if)#exit  //返回用户模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config)#int f0/3   portant; word-wrap: break-word !important; font-size: 15px;">  //创建端口f0/3
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config-if)#switchport acc vlan 20   portant; word-wrap: break-word !important; font-size: 15px;"> //将端f0/2划分到vlan10中
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config-if)#end  //结束
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66);">portant; word-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px;">3、在交换机上定义Trunkportant; word-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch>   
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch>en
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch#conf t
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config)#int f0/1    创建f0/1端口
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config-if)#switchport mode trunk   //portant; word-wrap: break-word !important; color: rgb(85, 85, 85); font-family: ">交换机如果通过路由器实现VLAN之间的通信,需要将连接交换机的端口配置成trunk模式,只有trunk线路才能使vlan通过。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">Switch(config-if)#exit  //返回用户模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px;">如此,pc1与pc2又通上信息了,
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); letter-spacing: 2px; text-indent: 30px; font-size: 15px; text-align: left;">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-align: left; text-indent: 30px;">小芳由于中午经常与小明见面,所以下午上班经常迟到,久而久之,小芳的工作效率下降,身边的同事都知道了。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); letter-spacing: 2px; text-indent: 30px; font-size: 15px; text-align: left;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">这里的午休约会,相当于portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">单臂路由功能。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); letter-spacing: 2px; text-indent: 30px; font-size: 15px;">这让公司的单身的同事又没法镇定工作了,怎么办?
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); letter-spacing: 2px; text-indent: 30px; font-size: 15px;">

portant; clear: both; min-height: 1em; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; text-align: center; letter-spacing: 2px; font-size: 15px; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">案例三、划分vlan,实现同交换机下pc1与pc2不通信
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">领导也看出问题了,下狠招,再将小明调portant; word-wrap: break-word !important; font-size: 15px; letter-spacing: 2px; text-indent: 30px; color: rgb(217, 33, 66);">portant; word-wrap: break-word !important;">到其它城市的分公司portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">,相当于增加了一台交换机了,将小明(pc1)分配到另一台交换机上面,如下图。portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">

portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66); font-size: 15px;">如图,这下pc1与pc2是真的无法通信了,pc1在交换机A中,pc2在交换机B中。小明、小芳情侣间无法再见面了,就这样算了吗?
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">

portant; clear: both; min-height: 1em; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; text-align: center; letter-spacing: 2px; font-size: 15px; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">案例四、利用三层交换机,实现不同vlan间如何互相通信
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">把小明拆分到portant; word-wrap: break-word !important; font-size: 15px; letter-spacing: 2px; text-indent: 30px; color: rgb(217, 33, 66);">portant; word-wrap: break-word !important;">不同城市的分公司portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">,可把小明急坏了,portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-family: -apple-system-font, BlinkMacSystemFont, ">异地恋,久则生变;小明何尝不懂这个道理。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-family: -apple-system-font, BlinkMacSystemFont, ">于是小明想到了办法,努力工作,以最快的速度与分公司的领导搞好了关系,分公司的领导经常派小明到总公司办事 ,顺便与小芳见面。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-family: -apple-system-font, BlinkMacSystemFont, ">pc1与pc2由于阻绝在了两个不同的交换机里,且在不同的vlan中,是无法通信的,那怎么办呢?
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">S3550-24(三层交换机)1台、S2126交换机1台、pc1在vlan20里,pc2在vlan10里,如下图所示。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">


portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;"> 配置:
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66); overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">1、在交换机SwitchA上创建VLAN 20,并将F0/15口划分到VLAN 20中。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">SwitchA>enable
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">SwitchA#configure terminal
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">SwitchA(config)#vlan20            //创建VLAN 20
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">SwitchA(config-vlan)#name vlan20    //将VLAN 20 命名为vlan20
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">SwitchA(config)#interface f0/15       //进入F0/15接口配置模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">SwitchA(config-if)#switchport access vlan 20    //将F0/15端口划入VLAN 20
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">SwitchA #showvlan id 20    //验证已创建了VLAN 20并已将F0/15端口划入VLAN 20中。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px; letter-spacing: 2px; text-indent: 30px; color: rgb(217, 33, 66); overflow-wrap: break-word !important;">2、在交换机SwitchA上与SwitchB相连的端口(此处为F0/24端口)定义为tag vlan 模式。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA>enable
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA#configure terminal
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA (config)#interface f0/24             //进入接口配置模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA (config-if)#switchport mode trunk     //将F0/24口设置为tag vlan模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA (config)#show interfaces f0/24 switch  //验证F0/24口已被设置为tag vlan模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;"> portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66); overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">3、在交换机SwitchB上创建VLAN 10,并将F0/5端口划入VLAN 10中。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA>enable
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA#configure terminal
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchB(config)#vlan 10                  //创建VLAN 10
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchB (config-vlan)#name vlan10    //将VLAN 10 命名为vlan
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchB (config)#interface f0/5      //进入F0/5接口配置模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchB (config-if)#switchport access vlan10    !将F0/5端口划入VLAN 10
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchB #show vlan id 10      //验证已创建了VLAN 10并已将F0/5端口划入VLAN 10中
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;"> portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66); overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">4、在交换机SwitchB上与SwitchA相连的端口(此处为F0/24端口)定义为tag vlan 模式。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA>enable
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA#configure terminal
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchB (config)#interface f0/24            //进入接口配置模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchB (config-if)#switchport mode trunk     //将F0/24口设置为tag vlan模式
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchB (config)#show interfaces f0/24 switch //验证F0/24口已被设置为tag vlan模式。portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(217, 33, 66); overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">portant; word-wrap: break-word !important; font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">5、设置三层交换机VLAN 间通讯
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">  portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;"> 开启三层交换机的路由功能
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA>enable
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA#configure terminal
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA(config)#ip routing          //开启三层交换机的路由功能
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA(config) #interface vlan 10     //创建虚拟接口vlan10
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA(config-if) #ip address 192.168.10.254 255.255.255.0   //配置vlan10的虚拟接口ip地址
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA(config) #interface vlan 20    //创建虚拟接口vlan20
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;"> 配置vlan20的虚拟接口ip地址
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px;">SwitchA(config-if) #ip address 192.168.20.254 255.255.255.0  portant; word-wrap: break-word !important; font-size: 15px; color: rgb(84, 84, 84); letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;"> //配置vlan20的虚拟接口ip地址portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; font-size: 15px; letter-spacing: 2px; text-indent: 30px; color: rgb(217, 33, 66); overflow-wrap: break-word !important;">8、将PC1的默认网关设置为192.168.10.254,将PC2的默认网关设置为192.168.20.254
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;"> 如此,pc1与pc3便可以相互通。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; overflow-wrap: break-word !important;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px;">小明与小芳之间又开始见面了。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">小明通过分公司领导这层关系,到总公司办工顺便与女方见面。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px;">而这个领导相当三层交换机的路由功能。
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px;">
portant; word-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, ">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px;">portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-align: left; text-indent: 30px;">于此,总公司领导看小明在分公司表现不错,portant; word-wrap: break-word !important; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">也认了,睁一只眼闭一只眼。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|小白网-奉贤部落-奉贤免费信息发布平台  

GMT+8, 2025-8-7 11:21 , Processed in 0.065411 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表