广告合作
  • 今日头条

    今日头条

  • 百度一下

    百度一下,你就知道

  • 新浪网

    新浪网 - 提供新闻线索,重大新闻爆料

  • 搜狐

    搜狐

  • 豆瓣

    豆瓣

  • 百度贴吧

    百度贴吧——全球领先的中文社区

  • 首页 尚未审核订阅工具 订阅

    三层交换机物理接口做路由案例(思科系列)

    来源:网络收集  点击:  时间:2024-06-11
    【导读】:
    在网络设备中,具有路由功能有:三层交换机、路由器。本案例中利用三层交换机路由功能,在端口中配置IP,使不同网段的PC互相通信。详情如下工具/原料more思科模拟器方法/步骤1/5分步阅读

    三层交换机与二层交换机(桥梁的作用)连接,二层交换机下面连接PC,拓扑图如下。注:端口一定要连接正确,否则会不通,(怎么查看端口前面讲过)。

    2/5

    配置PC0 IP地址,子网掩码,网关

    3/5

    配置PC1 IP地址,子网掩码,网关

    4/5

    配置PC2 IP地址,子网掩码,网关

    5/5

    配置PC3 IP地址,子网掩码,网关

    配置交换机1/2

    Switchenable

    Switch#conf

    Configuring from terminal, memory, or network ?

    Enter configuration commands, one per line. End with CNTL/Z.

    Switch(config)#interface fastethernet0/1

    Switch(config-if)#no switchport

    Switch(config-if)#

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

    Switch(config-if)#ip add 192.168.1.1 255.255.255.0

    Switch(config-if)#no shutdown

    Switch(config-if)#exit

    Switch(config)#interface fastethernet0/2

    Switch(config-if)#no switchport

    Switch(config-if)#

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

    Switch(config-if)#ipadd 192.168.2.1 255.255.255.0

    Switch(config-if)#no shutdown

    Switch(config-if)#exit

    Switch(config)#ip routing

    Switch(config)#exit

    2/2

    注意,在配置三层交换机时,一定要输入ip routing才能开启路由功能。

    前后对比。

    注意事项

    凡事非一蹴而就,还需多加练习

    纯手打,望能喜欢,点个赞,投个票,可否。

    路由器思科交换机案例
    本文关键词:

    版权声明:

    1、本文系转载,版权归原作者所有,旨在传递信息,不代表看本站的观点和立场。

    2、本站仅提供信息发布平台,不承担相关法律责任。

    3、若侵犯您的版权或隐私,请联系本站管理员删除。

    4、文章链接:http://www.ff371.cn/art_897438.html

    相关资讯

    ©2019-2020 http://www.ff371.cn/ 国ICP备20009186号05-12 21:47:55  耗时:0.022
    0.022s