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

 时间:2026-02-13 14:24:19

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

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

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

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

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

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

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

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

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

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

1、Switch>enable

Switch#conf

Configuring from terminal, memory, or network [terminal]?

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)#ip add 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、注意,在配置三层交换机时,一定要输入ip routing才能开启路由功能。

前后对比。

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

  • VS如何开启解决方案资源管理器
  • Visual Studio 怎么找到监视窗口
  • 在Eclipse中如何设置Java文件使用的字体类型
  • 如何使用c语言结构体链表实现队列结构
  • vs2022怎么修改主题颜色?
  • 热门搜索
    重庆旅游网 甘肃旅游地图 世界旅游胜地 厦门旅游年卡 银川旅游景点大全 陕西旅游集团 旅游资源类型 长江三峡旅游 西沙旅游 海拉尔旅游