no service pad( Z: e2 Q: R6 a
service timestamps debug datetime msec localtime show-timezone. `% e) s, Q/ R4 p3 F2 o
service timestamps log datetime localtime show-timezone H6 h+ K* x; E* Q" ~
no service password-encryption
o) t- ]6 o* @2 _& X5 }!1 I! O" d Y9 T e' G: W
hostname MY_SWITCH [[[ Set switch hostname ]]]0 W0 z4 V9 k! U2 ]' _
!8 a( r% }- \. [$ r% {
username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0) v. C- E7 S& c
enable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ13 q' N2 P4 {) o! E
!' {$ G, O' ~+ x3 s* S
clock timezone HKT 8 [[[ Set Hong Kong Time Zone ]]]
1 }$ F& b( e6 Z9 |4 e!
4 Y- W5 s Q; I# a: qvtp mode transparent [[[ VTP = Vlan trunking protocol ]]]: P3 k0 V9 _/ W
!) ]) T5 j- y# V( B6 V
spanning-tree mode pvst
3 I, Z/ {9 a7 y/ C" mno spanning-tree optimize bpdu transmission
- f v% G& a# |spanning-tree extend system-id
0 f0 ^* S6 B2 O8 J7 S( T. y!
/ b+ \4 @/ \1 \2 l" P; Sinterface FastEthernet0/1 [[[ Set access port in certain ports to allow certain Vlan ]]]2 q, K; X5 A) U% i2 j( e: f8 s; T9 d
switchport mode access
4 m# L1 H7 z7 z+ {* j% `* P switchport access vlan 2$ e3 k# f4 m0 N
!1 g) ^' h" {5 f2 Y( E5 m
interface FastEthernet0/2
8 C" w/ d* o$ L" Vswitchport mode access
; n4 N0 S4 c6 R' F* P! U5 l& \. \ switchport access vlan 20 d5 o* z1 Y8 E$ A, {$ N
!- S m/ z6 X- k; ]% n& p
interface FastEthernet0/3% Z3 C( s; X+ B; P
switchport mode access
4 s' ^# c5 ~7 N5 k2 X switchport access vlan 3
% U4 w' ]4 ~/ G5 ?!% h" n3 t. `- K0 \ [
interface FastEthernet0/4& G6 x/ R1 H( b* X( w+ Z6 E3 z& D
switchport mode access
* Z$ \- d) {7 s- o0 C! | switchport access vlan 3
, Q7 {/ p r$ N$ T!) n; v% w- U# S5 D
interface FastEthernet0/5
7 A: v7 w$ }7 W# I9 Jswitchport mode access' O- G/ x0 u2 N/ E; k4 D6 N
switchport access vlan 27 m5 i8 C, Y+ C a% N0 M
!
7 V3 W; G$ n4 x5 Binterface FastEthernet0/6' d- \ V+ T8 g% |
switchport mode access
" | R* p$ G0 v$ y! c) G* B switchport access vlan 2
; l! M# @" ~5 j+ f9 V!
+ Q4 R \% u* i" Yinterface FastEthernet0/7
' j- {: ^9 }3 R! x( S Lswitchport mode access+ H: y( r. d. @: Y: x* B7 ~6 I
switchport access vlan 33 o7 ^! Q, o" ]2 T
!7 j, d% H( V r' Y8 S( Y! @& a
interface FastEthernet0/86 A7 J& g% V8 f; E" _! \
no ip address7 l8 P2 | q6 W$ u
!9 y9 H+ i( ~8 Y" Z2 v
interface FastEthernet0/9
1 T6 ]: [; t+ p0 | no ip address* \. M. S! n w0 r
!$ m9 x# C. c! Y" O. _0 P
interface FastEthernet0/10
4 J$ R1 e: h/ t4 ? no ip address
# J! G8 {4 I$ H" o! S5 |!
& {3 {7 d; z M% x' v: q3 Cinterface FastEthernet0/11) w6 J/ f5 K0 f/ U7 z! v
switchport mode access
* i, C( Z& H9 h! k$ j! I switchport access vlan 3) r( L) j1 Z2 m/ l# ^- @8 D
!
( j- z# |" x, B4 |4 r& H. rinterface FastEthernet0/12) l% q8 D, ?, B' a
switchport mode access
3 G$ c4 b7 D3 }) c switchport access vlan 2 h, w. Y& U7 ^5 @& I
!( B: X, ^+ Q5 ?& Y/ C
interface FastEthernet0/13
# h% Z- e- O' I7 f @) S) yswitchport mode access, L. ]+ i8 q @
switchport access vlan 36 v4 z4 S% p' U7 I: Z/ P3 s6 \
!& { E/ ?& c1 i; g% U
interface FastEthernet0/14
6 k6 w) e6 ]' ]. c9 h+ } no ip address( C- v. P- {3 j; a" }
!
7 N& q! w$ R% jinterface FastEthernet0/15 h8 r" r" p0 N
no ip address
8 B% }8 |6 g6 S2 f- y B- M!, U$ V; \3 v* U
interface FastEthernet0/16. } l: ~8 k# @
no ip address
% }/ T* l/ J, f! A! p* Z, ?5 J!
- a e" ]( ?( G; |interface FastEthernet0/17
8 Q# y7 g& y# X: E no ip address
0 @: o) A9 [1 k$ d& C$ ~/ R!( y. K D \2 V# Y
interface FastEthernet0/18# x: ~* C) v! Z0 N9 f, f6 ?% |- ]. j
no ip address
& b& c' J, s+ G6 ^5 a0 X!
( O: q2 P H' v& F+ Ointerface FastEthernet0/19
; I& C4 J) a: }8 K no ip address3 P {8 M9 d- ]0 ^
!4 Z0 ?+ p3 ^0 J6 \" L. Q. g% y
interface FastEthernet0/20: S( K5 x# q! Z/ v' Q* ^
no ip address
( ~- R4 w: N5 @: ]; k+ C!
" N0 g$ }7 L8 L* E& S8 n+ xinterface FastEthernet0/21% n4 W/ L6 o4 H0 j* t" _6 y
no ip address
" }% ]6 Y3 u9 y% m!/ ~' p7 W: w7 a3 S
interface FastEthernet0/224 a2 [* }/ u# Q
no ip address
8 f" G7 }, c1 W, F1 S( x, T* p!; ?' E2 V3 ^# C' ~
interface FastEthernet0/23
$ p: t l- R8 I no ip address
$ H& x* h- h( o9 H!4 j* {& g5 h% }; H F
interface FastEthernet0/249 p4 T- E+ K5 G8 u6 C4 j6 U% t
no ip address/ ]: J7 D/ q( k7 f* r) M5 x) f
!
+ O( H/ T+ w6 Yinterface GigabitEthernet0/1 [[[ Set trunk mode in uplink ports ]]]
0 R" V( |* _9 Y) v switchport mode trunk. r- K# \& r X; J, \9 d9 D% Z
!' `. I- u4 q+ p# @
interface GigabitEthernet0/2( s: _: p7 c/ `6 a
switchport mode trunk4 d. E( @) u& C( R" Y, [) I0 Z; E
!
* A) `0 Z: u4 G6 d Winterface Vlan1 [[[ Vlan 1 = native Vlan ]]]9 f# n/ E( K8 N; @
ip address 172.18.25.203 255.255.255.0, w1 D# Y$ [1 m; T8 J: J* C8 k
!$ Q+ G# |, @5 \
interface Vlan2
k4 A4 I& H6 D( g ip address 172.18.25.203 255.255.255.01 {% t2 O$ t3 i1 \: J
!
0 J3 X: x3 C/ l1 D: }( V9 u- xinterface Vlan39 a5 j7 U1 R7 C7 S; A9 h
ip address 172.18.25.203 255.255.255.0
/ f- u+ c. E3 C!
. ?8 H. Z/ g9 ~5 w' W. [/ Uip default-gateway 172.18.25.44 [[[ Set gateway IP address ]]]]
# K: ^& w0 E' z& K9 h4 ~!3 {4 l$ M E/ k) p' ^' ~
snmp-server community admin1234 RO
# b9 V9 U. B0 u+ |2 ^logging 172.18.25.37 [[[ Set log server IP address ]]]" v# @4 r( x6 K4 w+ T
!" a3 T; p6 ~ J; {& F: o
line con 02 R( o# N" i! P+ G; b+ v2 D
password XXXXX: X2 `7 b. X5 k0 P# C8 u. z
line vty 0 4
1 g0 f) i/ [- J& V3 cline vty 5 15. g! o( q/ L5 s/ L7 B8 K* r
!/ U, t9 s0 V" g2 {5 }
ntp clock-period 17179912 [[[ NTP = network time protocol ]]], B$ F0 H7 C+ B2 y3 ~
ntp server 172.38.225.218
' z3 j& O, d8 t0 B9 } p% aend |