CISCO 单臂路由

CISCO 单臂路由、VTPSTP配置实验
拓扑图如下:
要求:1PC0PINGPC1
      2、正常情况下VLAN 10A线路去路由器;当A断了时,走线路BC到路由器。
        正常情况下VLAN 20B线路去路由器;当B断了时,走线路BA到路由器。
具体配置步骤如下:
1、 在路由器上配置子接口,并封装802.1Q
Router>en
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f0/1
Router(config-if)#no sh
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 192.168.2.1 255.255.255.0
Router(config-subif)#int f0/1.2
%LINK-5-CHANGED: Interface FastEthernet0/1.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.2, changed state to up
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 192.168.1.1 255.255.255.0
姚文元墓Router(config-subif)#no sh
Router(config-subif)#end
%SYS-5-CONFIG_I: Configured from console by console
Router#wr
[OK]
2、 交换机switch1上配置VTP server ,并把相应接口配置成TRUNK模式
Switch>en
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
  as VLAN database mode is being deprecated. Please consult user
  documentation for configuring VTP/VLAN in config mode.
Switch(vlan)#vtp server
Device mode already VTP SERVER.
Switch(vlan)#vtp domain we
Changing VTP domain name from NULL to we
Switch(vlan)#vtp password 123
Setting device VLAN database password to 123
Switch(vlan)#vlan 10网站
VLAN 10 added:
    Name: VLAN0010
Switch(vlan)#vlan 20
VLAN 20 added:
    Name: VLAN0020
Switch(vlan)#exi
APPLY completed.
Switch#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int range f0/1 - 4
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mode trunk
%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
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
Switch(config-if-range)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
[OK]
3检验检疫、交换机switch2上配置张生伟VTP client,并把相应接口加入VLAN中。配置成VLAN 10 的根网桥
Switch>en
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
  as VLAN database mode is being deprecated. Please consult user
  documentation for configuring VTP/VLAN in config mode.
Switch(vlan)#vtp c
Switch(vlan)#vtp client
Setting device to VTP CLIENT mode.
Switch(vlan)#vtp domain we
Domain name already set to we.
Switch(vlan)#vtp password 123
电影马本斋Setting device VLAN database password to 123
Switch(vlan)#exit
APPLY completed.
Switch#sh vlan
VLAN Name                            Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/4, Fa0/5
                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                Fa0/10, Fa0/11, Fa0/12, Fa0/13
                                                Fa0/14, Fa0/15, Fa0/16, Fa0/17
                                                Fa0/18, Fa0/19, Fa0/20, Fa0/21
                                                Fa0/22, Fa0/23, Fa0/24, Gig1/1
                                                Gig1/2
10  VLAN0010                        active   
20  VLAN0020                        active   
1002 fddi-default                    act/unsup
如何培养团队精神1003 token-ring-default              act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
VLAN Type  SAID      MTU  Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001    1500  -      -      -        -    -        0      0
10  enet  100010    1500  -      -      -        -    -        0      0
20  enet  100020    1500  -      -      -        -    -        0      0
1002 fddi  101002    1500  -      -      -        -    -        0      0 
1003 tr    101003    1500  -      -      -        -    -        0      0 

本文发布于:2024-09-21 15:44:26,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/44916.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:接口   配置   路由器   相应   检验
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议