no service pad
: ]( r+ Q3 E+ Bservice timestamps debug datetime msec localtime show-timezone) R: x$ X( m% ^. t* e' S0 I
service timestamps log datetime localtime show-timezone
3 ^( ~2 q- w; x9 _no service password-encryption
8 Z6 H0 O& M6 H. |% D# Z2 P!0 k8 F9 _% x9 m2 V$ j/ E% {. L
hostname MY_SWITCH [[[ Set switch hostname ]]]& F" ~ T7 O: v: _; B7 ~5 Y( ^
!7 z- H) A6 Y0 K/ F
username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
8 a+ J! ]$ V$ v5 a5 e8 Yenable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1& o4 E- g l5 [1 q7 j; F
!) k) a4 I; B4 D8 s9 E# ?/ A2 _
clock timezone HKT 8 [[[ Set Hong Kong Time Zone ]]]% Z0 x/ h2 C( [ Y3 s; b6 v: ]
!
+ E/ `( J" R+ a5 ?vtp mode transparent [[[ VTP = Vlan trunking protocol ]]]
- U. f L- v8 i6 ]& Q2 I% \!) }4 _/ x5 C6 v& V
spanning-tree mode pvst
4 T5 N4 x" x. j6 B a% Qno spanning-tree optimize bpdu transmission, i( G8 t. M/ ?" |4 a
spanning-tree extend system-id
0 o+ b0 [9 t/ C8 y* f1 `!
- n9 C0 c; Q" G# g, Ninterface FastEthernet0/1 [[[ Set access port in certain ports to allow certain Vlan ]]]
$ I$ f5 q; A# } switchport mode access
* [0 l% b" l% @/ L switchport access vlan 2
# L- `/ d) ^3 ~!
& D+ W: Q! y# C' Linterface FastEthernet0/2
5 p5 J2 G/ G1 ?- p# Z' @5 pswitchport mode access
J$ B2 A, C, H- Y# S" N switchport access vlan 26 h2 I' Z8 ~/ O3 R K
!
! c8 a/ j7 r5 jinterface FastEthernet0/35 F' k& L: `2 K/ ^
switchport mode access1 p; O, S$ a V+ R; q1 T2 T
switchport access vlan 3
' [: U, W) B8 S5 h3 }!: E" @$ ] k+ D6 v- |7 }
interface FastEthernet0/4* f% {. ]4 s8 u. }9 Z; m! P8 a
switchport mode access
' E, b* \: d5 b switchport access vlan 3
: h/ c, u- |# t9 U9 x' B3 i!
2 G+ W+ Z# R8 Uinterface FastEthernet0/5# E/ W) J9 X& H2 r" m
switchport mode access
# i/ |; t* O3 g5 D9 h switchport access vlan 2
6 Q) k) ^2 c* I: S, ]!
. H( q$ K! q# K! h) \interface FastEthernet0/6
* K: o- i E0 b$ G2 }, _& a2 W1 fswitchport mode access
% N9 K6 Y& `/ U+ K& ?7 K a switchport access vlan 2
2 U" b; B" c+ J% }$ ?3 p9 v3 \4 _!
$ l0 Q2 S5 ]) V- I& R- @interface FastEthernet0/7 P9 a; R; r& k/ `. P% \; b$ H
switchport mode access5 p6 Y: m# `# T' ^, c
switchport access vlan 3- g3 c0 T; t. ~/ c
!
- w8 e8 E. [0 y4 p. Vinterface FastEthernet0/8% k3 T$ q v6 q5 A$ Z7 n2 ?0 Q
no ip address
* u% I/ O' F& s1 ?' G/ _- ^( g+ Z!
6 L! F; |: w/ z4 D* U Binterface FastEthernet0/9
: j! @! ?; w9 U! f no ip address6 S0 o- r& W+ q$ Q3 P
!
) h) `5 R% [1 o: z ~* q$ Einterface FastEthernet0/10
% h: X- }9 E J no ip address* j# B0 u% V1 P. }; E, {
!1 a% g: P8 z/ o3 M
interface FastEthernet0/11
# H+ j5 A0 `& ] ~) q; Lswitchport mode access
A0 g. {" h3 t: D switchport access vlan 3
t9 H. t f$ @, J!% i+ U- T- r! Z1 ]/ f- @
interface FastEthernet0/122 e8 i+ Q9 p* X5 ~
switchport mode access
$ _/ H) N" {* ]. a* H' \ switchport access vlan 2
( `/ V+ N# G1 A7 f. H!
* s+ e- \- _) G6 j x& _0 uinterface FastEthernet0/13
2 C& v2 l3 f3 D1 R( B- ^5 wswitchport mode access
+ T1 T, g6 p0 f0 u0 O switchport access vlan 3! [7 n3 L1 f, F4 a: v; |" ]( j
!
1 i3 v- g+ U, W$ T! K" ~interface FastEthernet0/14
' f: f6 L, R$ u2 l/ M+ k no ip address5 B8 S. i$ s1 e3 s- Y8 ]
!
! m" s) N+ Y9 `interface FastEthernet0/15
5 Y) ]2 {4 r2 L5 q9 c+ A no ip address
~6 j3 c" r7 p' e5 `!* g0 n0 E. x* c4 C. i: H. k
interface FastEthernet0/16
# ~+ g5 C8 Q! S no ip address
- R C9 i: Z! U# E- Z# V. V!9 s3 l" t: \$ e
interface FastEthernet0/17
' e. m5 c& C5 q% Z- I no ip address
h: _: w8 l2 V7 |' l/ V!# L1 M- V' [% _: f
interface FastEthernet0/18) E1 ^( b9 a$ d7 A5 k
no ip address
* ^7 b1 o8 T9 W0 \6 p7 t0 l$ e!6 r0 o( _. x) T6 l+ b
interface FastEthernet0/19( _5 {# F% m* M! V
no ip address
" q/ |: M( z( L5 K3 s. C+ j& O$ z+ O!* c6 v) j& Z1 E5 m
interface FastEthernet0/20# P+ Z+ o0 J8 J* r
no ip address: k+ j2 S4 O$ Q; {
!
8 ^& W e$ k: Dinterface FastEthernet0/21, H5 _/ q! @; P( G* F
no ip address
2 r m/ A/ d; H+ i# Y" y!
, \$ O# a! h$ k* ^3 Ginterface FastEthernet0/228 m" p7 l3 i/ y C0 \ D$ ~
no ip address3 C. U; C6 C8 N0 V6 H: N5 `
!6 J% [+ c0 ]+ O$ x) {! N
interface FastEthernet0/23
' v0 a$ ^4 P6 ^; P- o% f: S4 Z no ip address7 ]% E2 q1 _( ]* r2 @4 z
!* e/ t5 c: t9 z2 A3 j0 Q
interface FastEthernet0/247 I5 }3 J( g" ^4 U: t
no ip address G* l$ ~! s$ L9 F! j
! M: i$ G! L$ y: v
interface GigabitEthernet0/1 [[[ Set trunk mode in uplink ports ]]]
3 d0 ]# T7 a7 X0 v3 e$ E& I switchport mode trunk
( U1 \; j' W" G* s$ t!' M# e, F$ P: ^8 I) T& N
interface GigabitEthernet0/23 I7 \' _( b `/ u8 H
switchport mode trunk) k- k- H$ J) ]6 _: k: m$ o$ F
!3 e' x9 h5 f6 t/ K/ r& H" N
interface Vlan1 [[[ Vlan 1 = native Vlan ]]], `6 r: Y3 g' `! _% O2 Z- V
ip address 172.18.25.203 255.255.255.0+ t$ S& L4 w9 x, x, a
!
; Z* I( M+ z* j: k* linterface Vlan2' z5 p4 K& o: A
ip address 172.18.25.203 255.255.255.0
; i2 t; X+ \5 H, G3 h2 z!1 d# a& U+ U% m# m
interface Vlan3* A/ e2 W( |0 X* g
ip address 172.18.25.203 255.255.255.01 V x2 _! T: {" {
!) J- \- e7 Q L" |& y) k" w8 C T
ip default-gateway 172.18.25.44 [[[ Set gateway IP address ]]]]8 D2 H0 y0 l' c9 A r
!9 s1 R1 n/ e Z# p8 u
snmp-server community admin1234 RO
+ ]% C3 z- h1 X0 [, Vlogging 172.18.25.37 [[[ Set log server IP address ]]]
3 _% {9 R. l9 h5 U0 u2 E!/ P$ s1 `* j9 i1 S I" A% X
line con 0
_ t' E3 E& R. Q F/ ]/ ~! D password XXXXX+ P$ K$ Q) i- L
line vty 0 4# m) ~3 m% h) I4 g' M9 |/ d
line vty 5 15
, g+ [" S9 `! E* {, |, D!
$ y# S+ W3 C6 E2 E V& tntp clock-period 17179912 [[[ NTP = network time protocol ]]]6 E2 N8 s! d- P+ V
ntp server 172.38.225.218
8 F9 H9 a: d+ o0 l& i4 uend |