XFBAY学习笔记=++=实验十五 三层交换与二层交换机结合

00

《三层交换与二层交换机结合》

    这个实验用三层交换机3550做路由,二层交换机2950下接计算机。
通过VTP功能将三层交换机的VLAN信息传到下层。
    参考配置如下:

C3550#vlan database
C3550(vlan)#vlan 2
C3550(vlan)#vlan 3
C3550(vlan)#exit
C3550#conf t
C3550(config)#int vlan 2
C3550(config-if)#ip address 10.65.1.2 255.255.0.0
C3550(config-if)#int vlan 3
C3550(config-if)#ip address 10.66.1.2 255.255.0.0
C3550(config-if)#exit
C3550(config)#int f0/4
C3550(config-if)#switchport mode trunk
C3550(config-if)#switchport trunk encapsulation dot1q
C3550(config-if)#switchport trunk allowed vlan all
C3550(config-if)#end
C3550#vlan database
C3550(vlan)#vtp server
C3550(vlan)#vtp domain abc
C3550(vlan)#vtp password abcd
C3550(vlan)#exit
C3550#conf t
C3550(config)#ip routing
C3550(config)#exit
C3550#

C2900#vlan database
C2900(vlan)#vtp client
C2900(vlan)#vtp domain abc
C2900(vlan)#vtp password abcd
C2900(config)#int f0/4
C2900(config-if)#switchport mode trunk
C2900(config-if)#switchport trunk encapsulation dot1q
C2900(config-if)#switchport trunk allowed vlan all
C2900(config-if)#description trunk
C2900(config)#int f0/2
C2900(config-if)#switchport mode access
C2900(config-if)#switchport access vlan 2
C2900(config-if)#description connected HostA
C2900(config-if)#int f0/6
C2900(config-if)#switchport mode access
C2900(config-if)#switchport access vlan 3
C2900(config-if)#description connected HostB
C2900(config-if)#end
C2900#

分别设置PCA,PCB的IP地址、网关等
------------------------------------------------
[root@PCA root]# ifconfig eth0 10.65.1.1 netmask 255.255.255.0
[root@PCA root]# route add default gw 10.65.1.2
------------------------------------------------

[root#PCA root]# ping 10.65.1.1        (通)
[root#PCA root]# ping 10.65.1.2        (通)
[root#PCA root]# ping 10.66.1.1        (通)
[root#PCA root]# ping 10.66.1.2        (通)

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

附:VTP百科  http://baike.baidu.com/view/123875.htm
------------------------------------------------------

你可能感兴趣的:(笔记,结合,实验,二层交换机,XFBAY)