no service pad
: W% z0 F; E0 d) `7 U/ F, S8 eservice timestamps debug datetime msec localtime show-timezone- X0 b' M( P% o0 Z" S0 ^8 G- X
service timestamps log datetime localtime show-timezone
( V) i( `1 I- |4 s0 M% Y6 u7 Sno service password-encryption
* r6 x2 y2 J) }2 `!
0 A6 u0 K( L% q( F+ h& ?! M* @* ghostname MY_SWITCH [[[ Set switch hostname ]]]
% @, f* `7 j! I* [- U/ m!
+ R. g3 ~! q9 I& tusername XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
- j# r; d$ |! k8 }6 tenable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1/ o4 j$ S! O( E
!) B/ Q$ q: T$ c% U- Y/ a4 ^) s
clock timezone HKT 8 [[[ Set Hong Kong Time Zone ]]]# h+ n% \' b) \& i: o
!: G% M- P' Y1 s. G- Q% V
vtp mode transparent [[[ VTP = Vlan trunking protocol ]]]3 ]7 P; F6 c! g3 Z3 j3 _
!( J0 R7 W' e- n, w
spanning-tree mode pvst
J& a: b) I6 u/ ]0 yno spanning-tree optimize bpdu transmission
2 [# k& K8 f, a# F. ?: a8 Kspanning-tree extend system-id
7 e1 n' f& ?& `; x b p8 }!% l- w& g/ a* V, m9 g% L
interface FastEthernet0/1 [[[ Set access port in certain ports to allow certain Vlan ]]]
6 q% H$ J( P* u7 X switchport mode access
+ g) C. V/ S" y) t switchport access vlan 2
9 j7 s. I% ~/ s4 z d6 v- Q3 r!, S5 ?2 I5 Y# J V V1 x
interface FastEthernet0/2
3 @3 G; x2 A: A2 P0 qswitchport mode access2 i0 p5 H8 Y: K% ]5 P! [
switchport access vlan 2
0 |2 w) l/ [( f$ s! V!
7 q( D% w% s) K X7 }8 Pinterface FastEthernet0/36 H9 V$ s1 n2 G/ S0 u8 I
switchport mode access
5 |7 b' G0 `; p2 z2 ~' Q) y switchport access vlan 3& |. o( Y6 j. \' g7 o( U
!
0 o j- ]' S8 d# |- @interface FastEthernet0/4
& V: E- x% T Y" R# z( a0 Kswitchport mode access
3 ~1 A8 ]' G/ p+ e; Z7 z: p switchport access vlan 3% b9 d* D0 M9 Q7 Y. f7 Q
!# H5 U4 Y5 t4 i- m, {3 R
interface FastEthernet0/5
/ p4 G! l+ b# D0 P) o+ H b; B/ ]switchport mode access
2 P" V0 y0 Y7 q. ?$ Q" p switchport access vlan 2* @& Q6 K" D* i( j
!
9 t4 C) M: {+ D: Pinterface FastEthernet0/6# h6 \+ ]9 C. ~' w( j) h: h
switchport mode access
6 B8 @/ T! `$ a switchport access vlan 2
3 ]1 b o: S- t" u) W" {& ~!( N: d" ~+ W7 C+ I( D* A% ?+ X
interface FastEthernet0/72 [- {& Y* d3 A0 w5 ~
switchport mode access
7 a7 \$ X3 P. @" V8 { E- Y switchport access vlan 3 H! j8 j. e( }" {
!" ^ G @6 |% l: v: X2 y
interface FastEthernet0/8
) a2 G* O& Z$ h0 {/ Z8 I: y W no ip address) ~5 D& h4 o% O; P3 O
!% X: J) Y8 }. v' m, J
interface FastEthernet0/91 B* r" |& Z; T3 h/ o
no ip address
; j# m+ U2 i# d5 f; \+ e!
: D) a1 @* e; |7 T1 f: Xinterface FastEthernet0/10
! N' D- ?- u7 \2 w7 P1 c no ip address
% D$ b) {( L2 j2 n$ h!
3 x( k) t6 _$ l6 O9 l% vinterface FastEthernet0/110 C0 e) e+ ?1 I
switchport mode access
: C1 v4 k6 d+ V5 @( a switchport access vlan 3
! w6 ~9 Y8 X/ K0 P/ z P( ^!
5 }9 I: P9 \" b+ ^; sinterface FastEthernet0/12
" e! O3 b, E9 L. A8 W" ]: Y# F( \( W5 Yswitchport mode access
. x$ h7 B" I6 k; I9 R K switchport access vlan 2# H' P3 M. K! v. q D
!2 a6 o$ r q, \5 ~+ r% W/ E* W# |7 A
interface FastEthernet0/13
+ o( l! L S% Hswitchport mode access! \0 e% T* U) j: k
switchport access vlan 3
8 j3 S5 e8 T" K4 |/ T5 d' r1 P!
! P( \6 G. p F" |1 A! Xinterface FastEthernet0/14
, `& a' {: i; }; @6 a# w, f! c no ip address! _" g: J, s) P/ [+ c2 [
!
6 |( d p; L4 q2 T5 X& Y+ {/ `3 k& uinterface FastEthernet0/15
. _( s4 Q: Y$ Y& O! M! T8 } j no ip address
, B/ I" e/ D4 j7 y) {6 ?; _ U& K!
- F% s9 f. R' r2 V) ~! e7 w* }interface FastEthernet0/166 D1 |* y0 F1 m' c0 Q; z1 m) r
no ip address m+ ^9 E- @: p/ B
!4 j3 f: N% ?) @. {8 ?( n
interface FastEthernet0/17
* O# t2 e3 y+ a# R+ v7 z5 h/ w* A z no ip address
1 V6 q v1 P/ G" Z- }3 j' A!) s4 ~/ K# L% l" X
interface FastEthernet0/18
$ s! `$ X, c3 v0 P/ @! j3 j% | no ip address
" ]1 b' B7 Z+ y" S!" s! S0 `- p, o& [
interface FastEthernet0/19: W" d8 ^- ~' L1 H' K7 [5 s7 }7 F
no ip address+ t& e' S; F$ D0 E2 b* {0 f6 p
!: P+ C/ h! N) q' r* f k
interface FastEthernet0/20! Y. N- h7 Y0 A% ]2 k" J) F$ o8 o
no ip address/ d( l2 e& a" v) p6 Z( i
!6 `; P* ?( ?5 q' U2 \. t! z! Q
interface FastEthernet0/21) b3 L" f, x5 u7 A9 K# k
no ip address) R3 K; O( c) t$ Q7 ^8 z
!
" q6 o) E/ q! w2 d% m; P v& u' L4 Binterface FastEthernet0/22; Z$ i# ]9 N- M( @
no ip address9 h+ Z( F7 u, k Y4 b
!0 U6 Z! `9 ], q
interface FastEthernet0/23$ @) S9 Y6 @/ _
no ip address
7 j9 E7 Z* I) \- ~( M- J6 D) M!, d; R0 w# i5 Y+ f* H/ L3 w7 q
interface FastEthernet0/240 G# M) L2 Z9 |6 ~
no ip address
: n' H: X7 f4 t7 e, b9 F5 r# K!$ p) M G- K2 ^, y1 k
interface GigabitEthernet0/1 [[[ Set trunk mode in uplink ports ]]]
6 r) ^& \7 [" [' y! D8 r switchport mode trunk/ J/ g# ]8 }0 G: \# u; M
!# b) w5 i) m% T# @% [' y
interface GigabitEthernet0/2
) z: S- j8 J9 m switchport mode trunk/ Z- m( y7 S, R
!" ]0 x, H: S; o. K/ B4 m: |, {
interface Vlan1 [[[ Vlan 1 = native Vlan ]]]7 o% H) ~% Y$ J- A6 ^! i
ip address 172.18.25.203 255.255.255.0
" x9 p$ Q4 Q! e( D. z, z; i5 D!+ E e+ U6 k) K* Y+ e8 ~5 Y6 O
interface Vlan2
$ T; {# f; J1 l ip address 172.18.25.203 255.255.255.0
5 c7 m- e2 p: \' B- U) J5 w- \!( Z2 ]% |% R4 X1 Z A
interface Vlan3% `% g( ]/ t1 {
ip address 172.18.25.203 255.255.255.0
( G( H" I9 D2 E!
# U. D& z' ^5 kip default-gateway 172.18.25.44 [[[ Set gateway IP address ]]]]
+ c2 z' V1 x/ o/ P2 _1 u. J!
' i8 b7 }. z5 w' a& m0 z+ Osnmp-server community admin1234 RO8 r5 t( N+ f R2 `8 u
logging 172.18.25.37 [[[ Set log server IP address ]]]* R9 N! B% |4 H; Q
!! ^' l8 E, q9 w; o
line con 0
) m/ X& O, W, `. h password XXXXX3 c4 n# S1 J7 y
line vty 0 4
( |+ _8 t9 W: tline vty 5 15
# d: `+ u( A) _: V6 b, q!) ?! s; d0 U: w& i0 C0 D6 `1 S
ntp clock-period 17179912 [[[ NTP = network time protocol ]]]
3 b( _8 s5 D4 e* |8 c. F* {ntp server 172.38.225.2185 N! ?9 j! {8 o( f
end |