三层交换机及路由器子网互联实验

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

三层交换机及路由器子网互联实验

运行环境: GNS3

实验目的: 在三层交换机及路由器间运行动态路由协议, 实现各子网互通拓扑图如下:

交换机S3550配置:

S3550>

S3550>enable

S3550#conf t

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

S3550(config)#vlan 10

^

% Invalid input detected at '^' marker.

S3550(config)#exit

S3550#

*Mar 1 00:05:11.791: %SYS-5-CONFIG_I: Configured from console by console S3550#vlan database

S3550(vlan)#vlan 10

VLAN 10 added:

Name: VLAN0010

S3550(vlan)#vlan 20

VLAN 20 added:

Name: VLAN0020

S3550(vlan)#no vlan 20

Deleting VLAN 20...

S3550(vlan)#vlan 50

VLAN 50 added:

Name: VLAN0050

S3550(vlan)#exit

APPLY completed.

Exiting....

S3550#conf t

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

S3550(config)#int f0/1

S3550(config-if)#sw

S3550(config-if)#switchport mode access

S3550(config-if)#sw

S3550(config-if)#switchport access vlan 10

S3550(config-if)#no shut

S3550(config-if)#exit

S3550(config)#

*Mar 1 00:06:52.035: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up

*Mar 1 00:06:53.035: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

S3550(config)#int f0/5

S3550(config-if)#sw

S3550(config-if)#switchport mode access

S3550(config-if)#sw

S3550(config-if)#switchport access vlan 50

S3550(config-if)#no shut

S3550(config-if)#

S3550(config-if)#e

*Mar 1 00:07:27.195: %LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to up

*Mar 1 00:07:28.195: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to up

S3550(config-if)#exit

S3550(config)#int vlan 10

S3550(config-if)#ip add 1

*Mar 1 00:07:46.083: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

S3550(config-if)#ip add 172.16.1.2 255.255.255.0

S3550(config-if)#no shut

S3550(config-if)#exit

S3550(config)#int vlan 50

S3550(config-if)#ip add 17

*Mar 1 00:08:19.507: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan50, changed state to up

S3550(config-if)#ip add 172.16.5.1 255.255.255.0

S3550(config-if)#no shut

S3550(config-if)#exit

S3550(config)#

验证:

S3550#sh vlan-switch

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/0, Fa0/2, Fa0/3, Fa0/4

Fa0/6, Fa0/7, Fa0/8, Fa0/9

Fa0/10, Fa0/11, Fa0/12, Fa0/13

Fa0/14, Fa0/15

10 VLAN0010 active Fa0/1

50 VLAN0050 active Fa0/5

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 100

2 100

3 10 enet 100010 1500 - - - - - 0 0

50 enet 100050 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 1 1003 1003 tr 101003 1500 1005 0 - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0

S3550#sh ip int

FastEthernet0/0 is administratively down, line protocol is down

Internet protocol processing disabled

FastEthernet0/1 is up, line protocol is up

Internet protocol processing disabled

FastEthernet0/2 is administratively down, line protocol is down

Internet protocol processing disabled

FastEthernet0/3 is administratively down, line protocol is down

Internet protocol processing disabled

FastEthernet0/4 is administratively down, line protocol is down

Internet protocol processing disabled

FastEthernet0/5 is up, line protocol is up

Internet protocol processing disabled

FastEthernet0/6 is administratively down, line protocol is down

Internet protocol processing disabled

FastEthernet0/7 is administratively down, line protocol is down

相关文档
最新文档