IOU5配置: n. i* M! B) z" m
!
+ X3 n0 @4 n/ ]; Cspanning-tree mode mst
7 K7 i# H$ s' \9 kspanning-tree extend system-id
! r1 b5 c. s1 {0 c!
5 y2 J# l1 f1 e3 Qspanning-tree mst configuration
6 f2 P! d m2 i& _/ I name 1
/ } F! `* @" V* z+ @ revision 1
7 e9 u( `' B4 a7 @. c instance 1 vlan 3, 5
! L" z' Y3 F$ D4 ~7 f7 c8 }5 Z' | instance 2 vlan 2, 4& Y" f( K* l: X6 J7 O
!1 {9 I: F5 m) y* m6 f. c
spanning-tree mst 1 priority 24576
. g! ^# k8 d: W& e6 `# gspanning-tree mst 2 priority 286729 W9 D) U, E3 ~- {
!; `1 y/ ]) E1 R2 K- P2 p6 Z5 K8 b
!
" G5 S" k" `( j. ointerface Port-channel1
# n& t, s9 p& E7 k4 o# V switchport
2 k8 ]+ u" Q$ ^2 P, m' H switchport trunk encapsulation dot1q# Q. W0 |5 S2 z* a
switchport mode trunk7 [5 d7 L; {( T' v3 d" [
!) @6 G, \) V& C+ c& G' g* H D( c
interface Ethernet0/0( J# y( o) K; T! g4 Q; V
switchport trunk encapsulation dot1q
. t4 e: y2 y. s/ O switchport mode trunk0 J4 L- K$ p- B( M
duplex auto
. H( f8 b! r7 u& q!
3 H% I( I. E! s$ {/ G1 k3 m1 dinterface Ethernet0/1
( G% g% v$ j: i switchport trunk encapsulation dot1q
8 V! A+ M6 `- ~' m0 U0 b& J; y, W switchport mode trunk( D. d1 Z0 h; K3 W. `* k
duplex auto
4 \. d1 c1 M5 h!
( o+ m/ g {; dinterface Ethernet0/2& v7 {) `5 b3 S; q1 w/ j
switchport trunk encapsulation dot1q$ u6 e; [+ S, d+ _3 _9 h
switchport mode trunk3 ~' _+ q1 p9 ]0 u, S/ Z$ _" i* s
duplex auto
0 F6 a9 u6 ~- K! r* ^2 A!
) L- U1 S# @) v* Winterface Ethernet0/3
: u/ j1 A9 l0 w" g switchport trunk encapsulation dot1q
0 A" d. K1 t2 { m/ n switchport mode trunk
; o( d; E/ |- h9 r duplex auto3 c: d5 @6 X* D8 k
!) ~4 u6 c5 W4 \+ \2 \4 n
interface Ethernet1/0; p+ n- V2 r6 g3 t) W# |" G
duplex auto
) k, h2 } g! L8 W!
& x& f4 }1 L( Uinterface Ethernet1/11 ^8 `5 k! G+ F: [! y2 U- e
switchport trunk encapsulation dot1q
9 _% [' [9 p5 L/ K; @( X switchport mode trunk
) I8 o- E9 o. _ P+ N duplex auto
0 @. K3 u* H0 F& b channel-group 1 mode on
: `' o% h+ w5 I/ C5 ]4 d!
4 R$ o7 j2 m; i& j: P. finterface Ethernet1/2* O5 o0 P' \. E. N0 S
switchport trunk encapsulation dot1q
6 B* j8 s/ B8 ` switchport mode trunk
4 n5 G' Z9 ]0 R duplex auto
2 g3 x/ c/ D0 ] m/ k" X: E channel-group 1 mode on
) D4 i, P- T- f!" a, k$ V, {7 I- G: x$ ?# b4 q) \
interface Ethernet1/3
4 D7 j" m5 p7 H% d8 |/ l! | duplex auto/ d, l- q" [7 N& o
!2 N7 y9 y. d5 _6 P6 A3 |+ [# F% _
interface Ethernet2/0
, ~* I; ` ?- x% |6 u no switchport/ p4 I; m) b% m7 D+ `$ B
ip address 192.168.10.2 255.255.255.252; W& o1 R( m0 ?; H
duplex auto
/ b% T* \) b. R$ Z: q: {!
2 p* n/ g/ f* I |' x1 }interface Ethernet2/1
$ t9 I) V6 u; L1 x no switchport( P+ _* ^% o8 _
ip address 192.168.20.6 255.255.255.252
& U/ H% W! D. J duplex auto
) d, S X% H7 y% E!
% T; @. d+ h; k( E, ?!/ ?( U* P5 o' M. V1 X/ c. O; r H+ z
interface Vlan3& o4 j T9 @/ l" y+ f/ u
ip address 192.168.3.254 255.255.255.05 q$ D( |5 }- R! T, A- [$ T
!# Q$ q* r' `" j! o8 G, u
interface Vlan5) [1 _7 _6 D- o( N T
ip address 192.168.5.254 255.255.255.02 R9 a5 l( G# {5 n
!' v0 W! w) m( t z& d( i
router ospf 1: p0 ]0 V# L* e8 R- V
network 192.168.3.254 0.0.0.0 area 0% o& M0 v; f# L+ s- k3 I0 s* J
network 192.168.5.254 0.0.0.0 area 0
2 i, }! N5 n. g! Q6 j network 192.168.10.2 0.0.0.0 area 00 R3 i* G5 V' B# z7 j! B7 x
network 192.168.20.6 0.0.0.0 area 0" J& d# t3 \1 F+ j, ^3 d2 ?
!# q6 U9 v: j8 M5 x! M' U5 o+ E
IOU6配置2 s. ?$ ]! {, K2 p1 L8 g4 s* @) Y; V
!+ Z: b% d; x# [7 |0 D. S
spanning-tree mode mst3 s1 f) {! G: `# j. ~
spanning-tree extend system-id7 m0 }+ w, o5 ^, o3 X/ K6 t. \% J
!: a% |1 x0 Q/ ?7 J
spanning-tree mst configuration
2 w$ V. x2 q" V, _- V+ e9 ?0 A name 1, Q% S* b) p+ x h/ g* F
revision 1+ ~9 Y0 _, \, ~2 ]% L
instance 1 vlan 3, 5
l0 r% m( y& ` instance 2 vlan 2, 4
! i6 q2 H. b1 e" V$ q!
" F3 P1 y, U1 @+ s0 Ispanning-tree mst 1 priority 286721 {& h8 ^% F: b# ~& p7 q0 _$ V+ A
spanning-tree mst 2 priority 24576- X% g. n! l# h1 i; }7 g* k, t
!
, Z0 X( M$ {' B7 u!1 S8 H- l$ }8 \' \1 S4 e
interface Port-channel1
$ H6 v- k0 } L9 b: O$ V) J5 t switchport
: A5 }. }! `, F+ d" L+ S switchport trunk encapsulation dot1q
: t% b1 D' t) z$ e switchport mode trunk1 V; J5 o% {1 n
!
4 i3 Q5 c, Z* C3 s5 _/ S3 ^5 Xinterface Ethernet0/0
( j& d1 A* ~, D2 b9 I+ C: [ switchport trunk encapsulation dot1q
% o9 R3 z/ K8 C3 @" Y switchport mode trunk& x! r4 [# C8 L, p+ u
duplex auto
8 t$ Z0 U4 _/ y3 y) A!
1 K" M2 _* R# j" O" F( Jinterface Ethernet0/1
" H+ c, P( W0 {* }8 `& ?6 Y1 P switchport trunk encapsulation dot1q
" Q* z I$ q# v8 o, `' Y switchport mode trunk
' I5 `9 h6 F* C# \! R duplex auto1 z/ l+ a6 I: M2 u' [( A
!
( C2 V J2 i' a) E, g' [interface Ethernet0/2
+ O# s2 L& A8 }! E# r5 T switchport trunk encapsulation dot1q3 I2 X6 q! b' u: q/ w
switchport mode trunk
- }6 T" [2 Z* R" M% U5 P! e duplex auto$ j3 v% [) @8 b# P1 t9 u
!
. _* G! y$ ~: \( ?! S7 kinterface Ethernet0/3
' h7 }" T! G5 r/ l2 c9 w( }7 k& w# w' p) t switchport trunk encapsulation dot1q$ Q+ y+ ? p* h3 ~, ~* y: s: i
switchport mode trunk
- Z1 V/ k s8 v+ y duplex auto
4 j( T2 t% X1 c!6 `9 |6 X/ Q4 _$ {% m4 I) U6 ~4 l
interface Ethernet1/0/ M! m( [& n5 W; b1 ~' [
duplex auto
0 m9 |6 v/ c% X# k3 X2 d!
2 o: F' M5 Q+ [) qinterface Ethernet1/1
2 W9 N Q8 s0 Q/ G switchport trunk encapsulation dot1q
+ E6 ?9 V( Y0 r" ?8 C+ | switchport mode trunk# _% G& b7 A8 ?' D$ {4 t7 k
duplex auto: T* ?2 F: k, C- B S5 J* m
channel-group 1 mode on
9 ]. [; R3 Q* b B9 d2 s$ H!
8 i. z/ ?8 B( i3 Ointerface Ethernet1/21 j# A, }3 H4 ~! k9 H) ?. y! c9 T
switchport trunk encapsulation dot1q
8 p" [9 A! W7 s1 F# Z8 c$ I switchport mode trunk! W, U* k) X$ L/ y/ v8 r
duplex auto! U0 |% E* K) O, t
channel-group 1 mode on
; K# L0 \2 F0 ]* q5 r!+ n$ ~) A; p; J, |; i3 S2 z" |
interface Ethernet1/3
# E! K+ Q( Z! m1 O* _2 D2 b duplex auto4 v0 t1 g" Z. s4 m% M4 S) T
!# }, x0 s8 L0 H9 ?
interface Ethernet2/09 Y3 s( f% K0 ?! J9 e' F
no switchport' o" n4 ~. Y6 L# S' e5 R
ip address 192.168.20.2 255.255.255.252
5 Q) y5 e1 d4 }5 y0 D+ B2 T# H2 Y duplex auto
+ c' ^- m7 Q0 V/ J& [!; E5 b0 p7 U2 o# m( o, L
interface Ethernet2/1
" N# f' }% b: @, @ no switchport
! P* e" J6 a. F ip address 192.168.10.6 255.255.255.252
. P4 e' n, H7 N duplex auto
! P U8 h W( U* @1 A: F: z!% q4 ]2 e; o. }1 Y& n. Y
!
% V2 a \# C7 P/ u7 ninterface Vlan2
: H h! T- E* @" Q( r( q! | ip address 192.168.2.254 255.255.255.09 m# y) h: ]4 W: H/ D
!0 z" R9 P9 N- K! r- T Q
interface Vlan4: K9 C& P3 E1 l) k1 F) ^
ip address 192.168.4.254 255.255.255.0" p. c3 P$ J2 `0 c! m; S* `
!
( f2 N& |. ~( z, X, j, H8 grouter ospf 1
1 U8 }0 w) Q6 M4 Y" {# l2 a9 F d network 192.168.2.254 0.0.0.0 area 0
1 i4 O; x' R! O network 192.168.4.254 0.0.0.0 area 0% i5 X4 z- p/ M# k1 f
network 192.168.10.6 0.0.0.0 area 0' D/ s" I* Q. r8 S" Z7 ?' C" e
network 192.168.20.2 0.0.0.0 area 0. b' d$ O- J6 y' N- e6 U6 Z
! |