三层交换机物理接口做路由案例(思科系列)
来源:网络收集 点击: 时间:2024-06-11三层交换机与二层交换机(桥梁的作用)连接,二层交换机下面连接PC,拓扑图如下。注:端口一定要连接正确,否则会不通,(怎么查看端口前面讲过)。

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

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

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

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

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

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

凡事非一蹴而就,还需多加练习
纯手打,望能喜欢,点个赞,投个票,可否。
路由器思科交换机案例版权声明:
1、本文系转载,版权归原作者所有,旨在传递信息,不代表看本站的观点和立场。
2、本站仅提供信息发布平台,不承担相关法律责任。
3、若侵犯您的版权或隐私,请联系本站管理员删除。
4、文章链接:http://www.ff371.cn/art_897438.html