no service pad
+ k& V+ R7 l' X* _8 qservice timestamps debug datetime msec localtime show-timezone' {& K' G* |/ ]6 W
service timestamps log datetime localtime show-timezone$ g0 c# t u" p' I: s
no service password-encryption
+ [+ i- r, [, b- X6 _8 J!" l" |- R8 \+ a: f
hostname MY_SWITCH [[[ Set switch hostname ]]]) o& d3 x2 ~& [; N
!* d# {7 h- A2 b( B
username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0- N- e6 s U, { V* {5 T
enable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ13 o" l5 F/ t4 N4 b y& [4 w7 q1 d
!
' o5 s. m/ X+ tclock timezone HKT 8 [[[ Set Hong Kong Time Zone ]]]
8 I5 \" s H0 G9 B: \' f!2 D6 Q. m2 E1 J0 P
vtp mode transparent [[[ VTP = Vlan trunking protocol ]]]' E. P4 [& q0 j" q! v
!# J* @6 c8 P6 Q& f! b
spanning-tree mode pvst
$ k7 O: v" a- A7 lno spanning-tree optimize bpdu transmission; u0 C1 A/ k) Q, U3 H: \ `0 y0 I
spanning-tree extend system-id( R9 n X- v) E/ J9 O' b
!# Q' D) Y8 _8 @% U
interface FastEthernet0/1 [[[ Set access port in certain ports to allow certain Vlan ]]]
2 I7 e) G) ?0 {8 ]4 R switchport mode access. G4 q1 X# h, u. y9 \
switchport access vlan 2
0 L; r( }" y& p/ P( r; @* ?4 ]!
4 l: H& l+ G) K0 ^( f0 rinterface FastEthernet0/2
7 b/ P) P/ A' B: Wswitchport mode access5 n; N; ]% R. a0 O( M) @3 D
switchport access vlan 2
5 o3 C. l2 C/ k!, g" Y2 Z0 P3 A9 ]( l0 S
interface FastEthernet0/3
( P+ m5 q- G. t* \) j6 q6 xswitchport mode access
" w' J; N# [/ S7 ~/ c6 c c' @0 ~' v+ c switchport access vlan 38 y( g4 ~7 e8 A
!7 `7 u. U) u% j4 \* v5 I
interface FastEthernet0/4
# N) y+ c0 @8 k9 u8 W: ]9 aswitchport mode access
/ L S% g" k) T: E% l7 S+ M# g( A7 C, d switchport access vlan 3
2 p V9 F! B( J/ _3 H/ S!
5 C+ ]6 n+ L; `) n7 b: Yinterface FastEthernet0/5
+ k/ K7 \' w, U5 Y \' J. bswitchport mode access
0 K: U; o: k0 P. a$ Y# J switchport access vlan 2( L, o" ?. h5 v* u
!
4 I- l2 a/ Q5 u H P, dinterface FastEthernet0/6
' [. c3 Q+ L5 M# h( ?4 T5 Uswitchport mode access {' A2 Y& y" C+ o
switchport access vlan 2- I6 p# v1 Z( S' e: ^( v) Z1 W
!) [7 \7 V. o; B) Q9 t
interface FastEthernet0/7( S ~7 u3 T9 j- q/ [4 c h8 b
switchport mode access# @" H% W. {3 J+ r2 q9 j, C
switchport access vlan 3
& G; g: \) n n, W3 R!: G7 {' T3 P; {& e
interface FastEthernet0/8
$ @+ _# y/ R* g5 ]5 a7 Z. @9 m no ip address& R! y/ N4 W) N7 }* H0 v j
!
( N% ~. W7 ~1 f" ?interface FastEthernet0/9# b: @* q) O8 ], \$ B2 }. u, ^) _" O
no ip address3 b4 f- @, N, q/ l2 \9 B6 \
!, W3 R7 p9 b9 g+ h
interface FastEthernet0/10
) }4 d" r4 u7 W) o# ^: I no ip address& d+ \2 x# s' x, u
!
9 y# G; J" B/ i& l% ?interface FastEthernet0/11: r3 _6 I ^: U. E+ |
switchport mode access
6 d; ~+ P* C4 @6 s switchport access vlan 3
2 N0 K* w8 R }, ?0 ~4 M8 a# s0 V!$ J2 c& j+ e0 F' G2 I/ ?& ^% m1 G
interface FastEthernet0/12
& m2 z; w2 P( K$ s# bswitchport mode access
0 r( G4 r5 ~! p2 l switchport access vlan 2
. A) R0 W3 ]/ Q* k) K2 w" e!2 t4 j% I" @, |7 \- h
interface FastEthernet0/13
$ ^- G: I; j4 W \3 _, b* K; e* [- Cswitchport mode access
6 Z7 H1 G" ]. f5 J/ |" s4 }- ~ switchport access vlan 3# P% S+ L @: o$ `3 P, K
!8 \, c0 D0 c7 J/ `$ a3 U
interface FastEthernet0/14' V( M% V6 R6 C% w% Y
no ip address
4 H& V [; j! R! r. V!% R: V5 Y+ K- W- Z( }
interface FastEthernet0/15# F/ \3 L, {" G' l$ g
no ip address
8 B4 ^- t4 ^% I4 `!
|0 D: l( n8 c1 k: w" Y4 _interface FastEthernet0/16& `" Y y. [4 q
no ip address
. s2 L1 C. Z- w5 u9 a, g!
" h( O( ]# d9 Linterface FastEthernet0/17
1 S% `3 @: R$ R& ~5 a- u no ip address
* V# S6 t; A! J, s0 {!7 ~6 U! z; H' P6 F* p
interface FastEthernet0/18
$ q; G$ G) z6 ]; g" `7 h* \. U7 Q no ip address
' P% ~- ~: P1 x2 f( U- ^!
- k/ p8 E* z, ?: b3 ^9 Q* Ginterface FastEthernet0/19
- `. \* p3 L- g# F: v4 H no ip address5 ^5 \3 x5 S3 Z Z" n4 F
!" |; C' h8 z- J& n
interface FastEthernet0/20. Y6 j% o, d% q6 s3 m
no ip address/ H3 j+ F" h. q- i$ u! A1 q5 y5 k
!3 ~/ A7 ~/ b% z( Q: \- r& h8 z
interface FastEthernet0/21
- Y) W6 O R1 u# p9 J no ip address
. r7 Z* Q8 R9 t: D!& M6 E2 o6 m9 ?% S: N( I0 V8 V
interface FastEthernet0/22
1 v5 O8 h8 K4 E7 v no ip address
0 Z& h. @" b- Y1 S3 R- U8 c!
9 a1 {8 S. C8 |% C: @6 J6 _) D7 w7 Rinterface FastEthernet0/23
" M! O6 }9 y( I7 Z( \8 }% M$ A no ip address" q2 l( a# \$ w6 @& a; W
!3 S- G8 f3 q5 c4 c# w v
interface FastEthernet0/249 z/ K9 G: q9 }2 B* x
no ip address
9 s$ q4 V1 q; ~, n U& C7 \/ R2 {1 S!! y2 s+ g! m0 L+ K
interface GigabitEthernet0/1 [[[ Set trunk mode in uplink ports ]]]& D9 `$ e8 q: P0 O6 Y2 `
switchport mode trunk
* k: m& l9 g6 a' [# `: \% u!
. t/ Q) ]/ D" q8 `( A: h; G) Zinterface GigabitEthernet0/29 ~* {1 Y! J& T2 M# j: B2 |& O/ h
switchport mode trunk, o& V4 j, ^, B" G+ K) B
!4 N7 I8 S; o' k: Y# g
interface Vlan1 [[[ Vlan 1 = native Vlan ]]]
2 D5 p( f; M( w [; a ip address 172.18.25.203 255.255.255.06 W# p2 \; |; i+ L
!
0 `! o* k, R: U. z# c7 c# ninterface Vlan20 y0 L1 n9 E- T& c0 q4 R
ip address 172.18.25.203 255.255.255.0! J; L2 Q3 b9 n9 g2 D
!& U/ J, k' j3 L
interface Vlan3
- C( L! y* [% Y2 F ip address 172.18.25.203 255.255.255.0
# h6 {4 ]/ b$ l. K!. u3 T" M5 v) j( y( V4 m; ?
ip default-gateway 172.18.25.44 [[[ Set gateway IP address ]]]]
3 U* j8 m+ V% T! g9 k; Q!
, @5 \5 ^% ]. p: ^snmp-server community admin1234 RO
: b- O* N( _# Blogging 172.18.25.37 [[[ Set log server IP address ]]]* v/ m! D! ?+ A D( H6 ~
!+ Z4 y" j4 D' o) R: m2 i4 f* A
line con 0
2 ^" @" f3 o( Z* C3 E password XXXXX) b+ Z. o( ? P. H4 d6 V/ x7 m8 q
line vty 0 4
" ^- h/ C, u6 }line vty 5 157 u# X, n0 p) L
!" a" j$ Z1 J( b2 o4 `$ r
ntp clock-period 17179912 [[[ NTP = network time protocol ]]]
& V) {! w/ V2 _( N. P' Untp server 172.38.225.218/ X+ ]& y+ Z8 E" ^
end |