• 思科模拟器--08.三层交换机配置实验(两个交换机)--24.5.22


    一定会有光的!

    一定~

    总结语:
    在破碎中寻求奇迹!

    --孙策

    实验拓扑图如下:

    第0步:

    先放置八台个人电脑,两台交换机

    PC1~4的接口F0按顺序依次用直通线连接交换机1的Fa0/1~4接口

    交换机1的Fa0/5接口和2的Fa0/5接口用双绞线相连接

    PC5~8的接口F0按顺序依次用直通线连接交换机2的Fa0/1~4接口

    (小技巧:将重要信息简短标注可以大大提高正确率,节省宝贵时间)

    第1步:(配置个人电脑的IP地址,子网掩码和默认路由)

    PC1:

    IP Address:192.168.1.1

    Subnet Mask:255.255.255.0

    Default Gateway:192.168.1.254

    PC2:

    IP Address:192.168.1.2

    Subnet Mask:255.255.255.0

    Default Gateway:192.168.1.254

     

    PC3:

    IP Address:192.168.2.1

    Subnet Mask:255.255.255.0

    Default Gateway:192.168.2.254

     

    PC4:

    IP Address:192.168.2.2

    Subnet Mask:255.255.255.0

    Default Gateway:192.168.2.254

     

    PC5:

    IP Address:192.168.3.1

    Subnet Mask:255.255.255.0

    Default Gateway:192.168.3.254

     

    PC6:

    IP Address:192.168.3.2

    Subnet Mask:255.255.255.0

    Default Gateway:192.168.3.254

     

    PC7:

    IP Address:192.168.4.1

    Subnet Mask:255.255.255.0

    Default Gateway:192.168.4.254

    PC8:

    IP Address:192.168.4.2

    Subnet Mask:255.255.255.0

    Default Gateway:192.168.4.254

     

    第2步:(对比实验)

    现在我们PC1 ping PC8,不通过

    第3步:(交换机1配置:vlan , IP, 启用rip协议)

    输入:en

    进入特权模式

    输入:conf t

    进入全局配置模式

    输入:ho Liu_anxia

    将交换机改名为Liu_anxia

    输入:vl 2

    创建vl 2

    输入:vl 3

    创建vl 3

    输入:vl 6

    创建vl 6

    输入:exit

    退出vlan配置模式

    输入:in r f0/1-2

    进入f0/1-2系列的接口配置模式

    输入:sw mo ac(switchport mode access简写)

    将这部分管理的设备设置为接入模式

    输入:sw ac vl 2

    将f0/1-2的接口划分到vl 2中

    输入:exit

    退出f0/1-2的配置模式

    输入:in r f0/3-4

    进入f0/3-4系列接口的配置模式

    输入:sw mo ac

    将这管理这部分接口的交换机设置为接入模式

    输入:sw ac vl 3

    将这部分接口划分到vl 3中

    输入:exit

    退出该系列接口的配置模式

    输入:in  f0/5

    进入f0/5配置模式

    输入:sw mo ac

    将管理f0/5的交换机设置为接入模式

    输入:sw ac vl 6

    将f0/5接口划分到vl 6中

    输入:end

    退回到特权模式

    输入:sh vl 

    查看端口的分配情况

    输入:in vl 2

    进入vl 2配置模式

    输入:ip ad 192.168.1.254 255.255.255.0

    配置vl 2的IP地址为:192.168.1.254

    输入:exit

    退出vl 2的配置模式

    输入:in vl 3

    进入:vl 3的配置模式

    输入: ip ad 192.168.2.254 255.255.255.0

    设置vl 3的IP地址为:192.168.2.254

    输入:in vl 6

    进入vl 6的配置模式

    输入:ip ad 192.168.5.1 255.255.255.0

    配置交换机1中的vl 6的IP地址为:192.168.5.1

    输入:exit

    退出vl 6的配置模式

    输入:ip routing

    启动三层路由功能

    输入:router rip

    启用rip协议

    输入:network 192.168.1.0

    输入:network 192.168.2.0

    输入:network 192.168.5.0

    将这几个地址添加到rip协议中

    输入:end

    退回到特权模式

    输入:sh ip ro

    查看该设备全部的路由信息

    输入:wr

    保存刚刚配置

    实战如下:

     network 中:192.168.5.0配置错误了,所以又重新写入覆盖掉了错误的:network 192.168.3.0

    1. Switch>
    2. Switch>en
    3. Switch#conf t
    4. Enter configuration commands, one per line. End with CNTL/Z.
    5. Switch(config)#ho Liu_anxia
    6. Liu_anxia(config)#vl 2
    7. Liu_anxia(config-vlan)#vl 3
    8. Liu_anxia(config-vlan)#vl 6
    9. Liu_anxia(config-vlan)#exit
    10. Liu_anxia(config)#in r f0/1-2
    11. Liu_anxia(config-if-range)#sw mo ac
    12. Liu_anxia(config-if-range)#sw ac vl 2
    13. Liu_anxia(config-if-range)#exit
    14. Liu_anxia(config)#in r f0/3-4
    15. Liu_anxia(config-if-range)#sw mo ac
    16. Liu_anxia(config-if-range)#sw ac vl 3
    17. Liu_anxia(config-if-range)#exit
    18. Liu_anxia(config)#in f0/5
    19. Liu_anxia(config-if)#sw mo ac
    20. Liu_anxia(config-if)#sw ac vl 6
    21. Liu_anxia(config-if)#end
    22. Liu_anxia#
    23. %SYS-5-CONFIG_I: Configured from console by console
    24. Liu_anxia#sh vl
    25. VLAN Name Status Ports
    26. ---- -------------------------------- --------- -------------------------------
    27. 1 default active Fa0/6, Fa0/7, Fa0/8, Fa0/9
    28. Fa0/10, Fa0/11, Fa0/12, Fa0/13
    29. Fa0/14, Fa0/15, Fa0/16, Fa0/17
    30. Fa0/18, Fa0/19, Fa0/20, Fa0/21
    31. Fa0/22, Fa0/23, Fa0/24, Gig0/1
    32. Gig0/2
    33. 2 VLAN0002 active Fa0/1, Fa0/2
    34. 3 VLAN0003 active Fa0/3, Fa0/4
    35. 6 VLAN0006 active Fa0/5
    36. 1002 fddi-default act/unsup
    37. 1003 token-ring-default act/unsup
    38. 1004 fddinet-default act/unsup
    39. 1005 trnet-default act/unsup
    40. VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
    41. ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
    42. 1 enet 100001 1500 - - - - - 0 0
    43. 2 enet 100002 1500 - - - - - 0 0
    44. 3 enet 100003 1500 - - - - - 0 0
    45. 6 enet 100006 1500 - - - - - 0 0
    46. 1002 fddi 101002 1500 - - - - - 0 0
    47. 1003 tr 101003 1500 - - - - - 0 0
    48. 1004 fdnet 101004 1500 - - - ieee - 0 0
    49. 1005 trnet 101005 1500 - - - ibm - 0 0
    50. Remote SPAN VLANs
    51. ------------------------------------------------------------------------------
    52. Primary Secondary Type Ports
    53. ------- --------- ----------------- ------------------------------------------
    54. Liu_anxia#
    55. Liu_anxia#
    56. Liu_anxia#conf t
    57. Enter configuration commands, one per line. End with CNTL/Z.
    58. Liu_anxia(config)#in vl 2
    59. Liu_anxia(config-if)#
    60. %LINK-5-CHANGED: Interface Vlan2, changed state to up
    61. %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to up
    62. Liu_anxia(config-if)#ip ad 192.168.1.254 255.255.255.0
    63. Liu_anxia(config-if)#exit
    64. Liu_anxia(config)#in vl 3
    65. Liu_anxia(config-if)#
    66. %LINK-5-CHANGED: Interface Vlan3, changed state to up
    67. %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to up
    68. Liu_anxia(config-if)#ip ad 192.168.2.254 255.255.255.0
    69. Liu_anxia(config-if)#exit
    70. Liu_anxia(config)#in vl 6
    71. Liu_anxia(config-if)#
    72. %LINK-5-CHANGED: Interface Vlan6, changed state to up
    73. %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan6, changed state to up
    74. Liu_anxia(config-if)#ip ad 192.168.5.1 255.255.255.0
    75. Liu_anxia(config-if)#exit
    76. Liu_anxia(config)#ip routing
    77. Liu_anxia(config)#router rip
    78. Liu_anxia(config-router)#network 192.168.1.0
    79. Liu_anxia(config-router)#network 192.168.2.0
    80. Liu_anxia(config-router)#network 192.168.3.0
    81. Liu_anxia(config-router)#end
    82. Liu_anxia#
    83. %SYS-5-CONFIG_I: Configured from console by console
    84. Liu_anxia#sh ip ro
    85. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    86. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    87. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    88. E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    89. i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
    90. * - candidate default, U - per-user static route, o - ODR
    91. P - periodic downloaded static route
    92. Gateway of last resort is not set
    93. C 192.168.1.0/24 is directly connected, Vlan2
    94. C 192.168.2.0/24 is directly connected, Vlan3
    95. C 192.168.5.0/24 is directly connected, Vlan6
    96. Liu_anxia#sh ip ro
    97. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    98. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    99. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    100. E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    101. i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
    102. * - candidate default, U - per-user static route, o - ODR
    103. P - periodic downloaded static route
    104. Gateway of last resort is not set
    105. C 192.168.1.0/24 is directly connected, Vlan2
    106. C 192.168.2.0/24 is directly connected, Vlan3
    107. C 192.168.5.0/24 is directly connected, Vlan6
    108. Liu_anxia#wr
    109. Building configuration...
    110. [OK]
    111. Liu_anxia#sh ip ro
    112. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    113. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    114. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    115. E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    116. i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
    117. * - candidate default, U - per-user static route, o - ODR
    118. P - periodic downloaded static route
    119. Gateway of last resort is not set
    120. C 192.168.1.0/24 is directly connected, Vlan2
    121. C 192.168.2.0/24 is directly connected, Vlan3
    122. C 192.168.5.0/24 is directly connected, Vlan6
    123. Liu_anxia#ip routing
    124. ^
    125. % Invalid input detected at '^' marker.
    126. Liu_anxia#conf t
    127. Enter configuration commands, one per line. End with CNTL/Z.
    128. Liu_anxia(config)#ip routing
    129. Liu_anxia(config)#router rip
    130. Liu_anxia(config-router)#network 192.168.1.0
    131. Liu_anxia(config-router)#network 192.168.2.0
    132. Liu_anxia(config-router)#network 192.168.5.0
    133. Liu_anxia(config-router)#end
    134. Liu_anxia#
    135. %SYS-5-CONFIG_I: Configured from console by console
    136. Liu_anxia#sh ip ro
    137. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    138. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    139. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    140. E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    141. i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
    142. * - candidate default, U - per-user static route, o - ODR
    143. P - periodic downloaded static route
    144. Gateway of last resort is not set
    145. C 192.168.1.0/24 is directly connected, Vlan2
    146. C 192.168.2.0/24 is directly connected, Vlan3
    147. R 192.168.3.0/24 [120/1] via 192.168.5.2, 00:00:01, Vlan6
    148. R 192.168.4.0/24 [120/1] via 192.168.5.2, 00:00:01, Vlan6
    149. C 192.168.5.0/24 is directly connected, Vlan6
    150. Liu_anxia#
    151. Liu_anxia con0 is now available
    152. Press RETURN to get started.

     

    第4步:(交换机2配置,原理相同)

    输入:en

    进入特权模式

    输入:conf t

    进入全局配置模式

    输入:vl 4

    创建vl 4

    输入:vl 5

    创建vl 5

    输入:vl 6

    创建vl 6

    输入:exit

    退出vlan配置模式

    输入:in r f0/1-2

    进入f0/1-2系列的接口配置模式

    输入:sw mo ac(switchport mode access简写)

    将这部分管理的设备设置为接入模式

    输入:sw ac vl 4

    将f0/1-2的接口划分到vl 4中

    输入:exit

    退出f0/1-2的配置模式

    输入:in r f0/3-4

    进入f0/3-4系列接口的配置模式

    输入:sw mo ac

    将这管理这部分接口的交换机设置为接入模式

    输入:sw ac vl 5

    将这部分接口划分到vl 5中

    输入:exit

    退出该系列接口的配置模式

    输入:in  f0/5

    进入f0/5配置模式

    输入:sw mo ac

    将管理f0/5的交换机设置为接入模式

    输入:sw ac vl 6

    将f0/5接口划分到vl 6中

    输入:end

    退回到特权模式

    输入:sh vl 

    查看端口的分配情况

    输入:in vl 4

    进入vl 4配置模式

    输入:ip ad 192.168.3.254 255.255.255.0

    配置vl 2的IP地址为:192.168.3.254

    输入:exit

    退出vl 4的配置模式

    输入:in vl 5

    进入:vl 5的配置模式

    输入: ip ad 192.168.4.254 255.255.255.0

    设置vl 3的IP地址为:192.168.4.254

    输入:in vl 6

    进入vl 6的配置模式

    输入:ip ad 192.168.5.2 255.255.255.0

    配置交换机2中的vl 6的IP地址为:192.168.5.2

    输入:exit

    退出vl 6的配置模式

    输入:ip routing

    启动三层路由功能

    输入:router rip

    启用rip协议

    输入:network 192.168.3.0

    输入:network 192.168.4.0

    输入:network 192.168.5.0

    将这几个地址添加到rip协议中

    输入:end

    退回到特权模式

    输入:sh ip ro

    查看该设备全部的路由信息

    输入:wr

    保存刚刚配置

    实战如下:

     

    1. POST: PortASIC Port Loopback Tests : Begin
    2. POST: PortASIC Port Loopback Tests : End, Status Passed
    3. Waiting for Port download...Complete
    4. --More--
    5. This product contains cryptographic features and is subject to United
    6. States and local country laws governing import, export, transfer and
    7. use. Delivery of Cisco cryptographic products does not imply
    8. third-party authority to import, export, distribute or use encryption.
    9. Importers, exporters, distributors and users are responsible for
    10. compliance with U.S. and local country laws. By using this product you
    11. agree to comply with applicable laws and regulations. If you are unable
    12. to comply with U.S. and local laws, return this product immediately.
    13. A summary of U.S. laws governing Cisco cryptographic products may be found at:
    14. http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
    15. If you require further assistance please contact us by sending email to
    16. export@cisco.com.
    17. cisco WS-C3560-24PS (PowerPC405) processor (revision P0) with 122880K/8184K bytes of memory.
    18. Processor board ID CAT1037RJF7
    19. 24 FastEthernet/IEEE 802.3 interface(s)
    20. 2 Gigabit Ethernet/IEEE 802.3 interface(s)
    21. 63488K bytes of flash-simulated non-volatile configuration memory.
    22. Base ethernet MAC Address : 00D0.FF97.70BB
    23. Motherboard assembly number : 73-9673-09
    24. Power supply part number : 341-0029-05
    25. Motherboard serial number : CAT103758VY
    26. Power supply serial number : DTH1036C7UB
    27. Model revision number : P0
    28. Motherboard revision number : A0
    29. Model number : WS-C3560-24PS-E
    30. System serial number : CAT1037RJF7
    31. Top Assembly Part Number : 800-26380-04
    32. Top Assembly Revision Number : B0
    33. Version ID : V06
    34. CLEI Code Number : COM1100ARC
    35. Hardware Board Revision Number : 0x01
    36. Switch Ports Model SW Version SW Image
    37. ------ ----- ----- ---------- ----------
    38. * 1 26 WS-C3560-24PS 12.2(37)SE1 C3560-ADVIPSERVICESK
    39. Cisco IOS Software, C3560 Software (C3560-ADVIPSERVICESK9-M), Version 12.2(37)SE1, RELEASE SOFTWARE (fc1)
    40. Copyright (c) 1986-2007 by Cisco Systems, Inc.
    41. Compiled Thu 05-Jul-07 22:22 by pt_team
    42. Press RETURN to get started!
    43. %LINK-5-CHANGED: Interface FastEthernet0/5, changed state to up
    44. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to up
    45. %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
    46. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
    47. %LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up
    48. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
    49. %LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up
    50. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
    51. %LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up
    52. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
    53. Switch>en
    54. Switch#conf t
    55. Enter configuration commands, one per line. End with CNTL/Z.
    56. Switch(config)#vl 4
    57. Switch(config-vlan)#vl 5
    58. Switch(config-vlan)#vl 6
    59. Switch(config-vlan)#exit
    60. Switch(config)#in r f0/1-2
    61. Switch(config-if-range)#sw mo ac
    62. Switch(config-if-range)#sw ac vl 4
    63. Switch(config-if-range)#exit
    64. Switch(config)#in r f0/3-4
    65. Switch(config-if-range)#sw mo ac
    66. Switch(config-if-range)#sw ac vl 5
    67. Switch(config-if-range)#exit
    68. Switch(config)#in f0/5
    69. Switch(config-if)#sw mo ac
    70. Switch(config-if)#sw ac vl 6
    71. Switch(config-if)#end
    72. Switch#
    73. %SYS-5-CONFIG_I: Configured from console by console
    74. Switch#sh vl
    75. VLAN Name Status Ports
    76. ---- -------------------------------- --------- -------------------------------
    77. 1 default active Fa0/6, Fa0/7, Fa0/8, Fa0/9
    78. Fa0/10, Fa0/11, Fa0/12, Fa0/13
    79. Fa0/14, Fa0/15, Fa0/16, Fa0/17
    80. Fa0/18, Fa0/19, Fa0/20, Fa0/21
    81. Fa0/22, Fa0/23, Fa0/24, Gig0/1
    82. Gig0/2
    83. 4 VLAN0004 active Fa0/1, Fa0/2
    84. 5 VLAN0005 active Fa0/3, Fa0/4
    85. 6 VLAN0006 active Fa0/5
    86. 1002 fddi-default act/unsup
    87. 1003 token-ring-default act/unsup
    88. 1004 fddinet-default act/unsup
    89. 1005 trnet-default act/unsup
    90. VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
    91. ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
    92. 1 enet 100001 1500 - - - - - 0 0
    93. 4 enet 100004 1500 - - - - - 0 0
    94. 5 enet 100005 1500 - - - - - 0 0
    95. 6 enet 100006 1500 - - - - - 0 0
    96. 1002 fddi 101002 1500 - - - - - 0 0
    97. 1003 tr 101003 1500 - - - - - 0 0
    98. 1004 fdnet 101004 1500 - - - ieee - 0 0
    99. 1005 trnet 101005 1500 - - - ibm - 0 0
    100. Remote SPAN VLANs
    101. ------------------------------------------------------------------------------
    102. Primary Secondary Type Ports
    103. ------- --------- ----------------- ------------------------------------------
    104. Switch#conf t
    105. Enter configuration commands, one per line. End with CNTL/Z.
    106. Switch(config)#in vl 4
    107. Switch(config-if)#
    108. %LINK-5-CHANGED: Interface Vlan4, changed state to up
    109. %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan4, changed state to up
    110. Switch(config-if)#ip ad 192.168.3.254 255.255.255.0
    111. Switch(config-if)#exit
    112. Switch(config)#in vl 5
    113. Switch(config-if)#
    114. %LINK-5-CHANGED: Interface Vlan5, changed state to up
    115. %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan5, changed state to up
    116. Switch(config-if)#ip ad 192.168.4.254 255.255.255.0
    117. Switch(config-if)#exit
    118. Switch(config)#in vl 6
    119. Switch(config-if)#
    120. %LINK-5-CHANGED: Interface Vlan6, changed state to up
    121. %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan6, changed state to up
    122. Switch(config-if)#ip ad 192.168.5.2 255.255.255.0
    123. Switch(config-if)#exit
    124. Switch(config)#ip routing
    125. Switch(config)#router rip
    126. Switch(config-router)#network 192.168.3.0
    127. Switch(config-router)#network 192.168.4.0
    128. Switch(config-router)#network 192.168.5.0
    129. Switch(config-router)#end
    130. Switch#
    131. %SYS-5-CONFIG_I: Configured from console by console
    132. Switch#sh ip ro
    133. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    134. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    135. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    136. E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    137. i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
    138. * - candidate default, U - per-user static route, o - ODR
    139. P - periodic downloaded static route
    140. Gateway of last resort is not set
    141. C 192.168.3.0/24 is directly connected, Vlan4
    142. C 192.168.4.0/24 is directly connected, Vlan5
    143. C 192.168.5.0/24 is directly connected, Vlan6
    144. Switch#wr
    145. Building configuration...
    146. [OK]
    147. Switch#sh ip ro
    148. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    149. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    150. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    151. E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    152. i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
    153. * - candidate default, U - per-user static route, o - ODR
    154. P - periodic downloaded static route
    155. Gateway of last resort is not set
    156. R 192.168.1.0/24 [120/1] via 192.168.5.1, 00:00:05, Vlan6
    157. R 192.168.2.0/24 [120/1] via 192.168.5.1, 00:00:05, Vlan6
    158. C 192.168.3.0/24 is directly connected, Vlan4
    159. C 192.168.4.0/24 is directly connected, Vlan5
    160. C 192.168.5.0/24 is directly connected, Vlan6
    161. Switch#
    162. Switch con0 is now available
    163. Press RETURN to get started.

     

    第5步:(实验验证)

    PC1 ping PC8胜利!

  • 相关阅读:
    Android平台GB28181设备接入模块之球机/云台控制探究
    中高级前端开发需要掌握的vue知识点
    Flask 学习-18.配置管理开发/生产/测试环境
    【自然语言处理(NLP)】基于PaddleHub的文本审核
    配电房轨道式巡检机器人方案
    技术干货|AI框架动静态图统一的思考
    CCF CSP认证 历年题目自练Day13
    嵌入式开发:比较顶级嵌入式GUI解决方案
    如何获取用户的ip地址
    机器学习模型超参数优化最常用的5个工具包
  • 原文地址:https://blog.csdn.net/2301_81989907/article/details/139126737