交换机端口聚合和生成树、vlan以及路由器的rip协议使用——变形金刚

前端之家收集整理的这篇文章主要介绍了交换机端口聚合和生成树、vlan以及路由器的rip协议使用——变形金刚前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

新人报道了,各位老师们好,我是一个学生,对网络很感兴趣,于是写下一些实验,希望与给位分享,也希望各位老师、朋友给与一定的教诲!

虽然实验做得很简单,但是毕竟我还是一个学生,我相信我发表的实验以后一定会越来越好的

路由器:

interface FastEthernet0/0
ip address 10.3.5.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.3.4.254 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 10.0.0.0
!

左边的三层交换机:

spanning-tree vlan 10,20,30 priority 24576
!
!
!
!
interface FastEthernet0/1
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
!

interface FastEthernet0/23
switchport access vlan 30
!
interface FastEthernet0/24
no switchport
ip address 10.3.5.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Port-channel 1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 10.3.1.254 255.255.255.0
!
interface Vlan20
ip address 10.3.2.254 255.255.255.0
!
interface Vlan30
ip address 10.3.3.254 255.255.255.0
!
router rip
version 2
network 10.0.0.0
!

右边的三层交换机:

spanning-tree vlan 10,30 priority 28672
!
!
!
!
interface FastEthernet0/1
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
channel-group 1 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
!

interface FastEthernet0/23
switchport access vlan 40
!
interface FastEthernet0/24
no switchport
ip address 10.3.4.253 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Port-channel 1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
no ip address
!
interface Vlan20
no ip address
!
interface Vlan30
no ip address
!
interface Vlan40
ip address 10.3.6.254 255.255.255.0
!
router rip
version 2
network 10.0.0.0
!

二层交换机:

interface FastEthernet0/1
switchport access vlan 10
spanning-tree portfast
!
interface FastEthernet0/2
switchport access vlan 20
spanning-tree portfast
!
interface FastEthernet0/3
switchport mode trunk
!
interface FastEthernet0/4
switchport mode trunk
!

interface Vlan1 no ip address shutdown ! interface Vlan10 no ip address ! interface Vlan20 no ip address !

猜你在找的设计模式相关文章