no service pad
% E! T: Q A/ _. mservice timestamps debug datetime msec localtime show-timezone
/ s9 E# e z5 T( F/ Bservice timestamps log datetime localtime show-timezone
5 b' w: Q3 ?2 `8 S* i& c/ tno service password-encryption2 S1 u3 H+ e3 C' z
!8 M8 \( `) T1 F, C+ N# W" A7 O( t
hostname MY_SWITCH [[[ Set switch hostname ]]]
! [% a. z$ G$ R% x7 F# s) ~!* Y) i C% j' E% U, S. _+ z
username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
% _- D+ A3 ?, v0 B+ henable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1. H- v$ B2 I5 S! l, F; o' C8 v
!$ J) O9 x7 e) A( A/ U4 {. V& n
clock timezone HKT 8 [[[ Set Hong Kong Time Zone ]]]
1 Y$ M, B1 V" k6 ~6 z5 @!: v9 @' f: e6 ~
vtp mode transparent [[[ VTP = Vlan trunking protocol ]]]
3 f+ G; w7 j3 b" U; B!
& J; @, Q, |$ Q' w+ \spanning-tree mode pvst
" v$ K. N) a" C1 y: Z4 nno spanning-tree optimize bpdu transmission
& h# i) Q" E/ ` k% ~8 Ispanning-tree extend system-id
9 `) O( w( C! v" I!
7 m. H$ ~1 e# d) x minterface FastEthernet0/1 [[[ Set access port in certain ports to allow certain Vlan ]]]
$ L, r- W0 Q) k9 F$ Z switchport mode access
5 O- N5 a! j5 c* t6 I' @: e switchport access vlan 2
% p6 ]+ C. J5 n1 ~& `!
. p# ?2 B5 e1 e! [2 l0 o" Minterface FastEthernet0/2! e6 t7 C8 M" Y3 }
switchport mode access# k/ Y3 k0 g, d, \- H0 d, q0 T
switchport access vlan 2
8 R+ l" v. l/ |$ o' ~. g; A!) S ?8 Z! y5 C& \7 e+ g
interface FastEthernet0/37 F, X8 V: S; u, p6 e, R$ j
switchport mode access
. ^7 G3 {1 {" @% h# j switchport access vlan 3
. J/ u5 s" S# J5 A4 I; q: K!8 m2 G' o9 z; }4 [
interface FastEthernet0/4
* Z" m( _& Q* Iswitchport mode access7 h- L2 i, p1 ?8 X5 n+ G1 Z
switchport access vlan 3 |, L/ R8 F4 M+ E2 y
!
) N8 C; f7 ]! k- k, b- finterface FastEthernet0/5
J" V5 \: Q1 F4 F& o+ r7 gswitchport mode access
' u' @5 v/ z: t# Y% B) Q switchport access vlan 2, ~8 }1 l8 a9 M2 t& j8 X7 x
!* A( K9 I3 ~; W1 z2 N/ Y( r
interface FastEthernet0/6: \0 C$ u' N& }
switchport mode access% N6 M# ]) v7 v' Z9 X! S8 P6 M
switchport access vlan 2$ |0 J) j; d2 s7 \9 G! H
!# C% ~8 X0 S) t# N" U. j; r9 r& I
interface FastEthernet0/7" X- d1 C2 f/ I7 }9 D/ A! L
switchport mode access
" K6 B6 g# @/ `6 \ switchport access vlan 38 L) [! i8 e- S, e
!& j" g, l1 ]. M7 e: T, B
interface FastEthernet0/85 P: w$ a: H/ u1 }
no ip address
T2 t n W) V!
5 \9 P7 n' J- S. V5 Z$ Rinterface FastEthernet0/9
. v* j7 ]- Q* |* m# e: _4 U' V# g! C' } no ip address% `5 X0 G& H. c, ~- v3 @" V
!
9 L8 A" i. J6 u! i# ninterface FastEthernet0/10
+ W: u' c* I3 J no ip address
! N! u5 `; I: e3 O% S!
3 B+ y9 q0 S! _7 ~interface FastEthernet0/11
& a% H3 a; d( i3 r) t/ X/ jswitchport mode access
9 g" n! F3 j8 A9 D$ M2 {5 v switchport access vlan 3; \' q5 T: F. C5 K+ ?5 l
!
3 h* ?' t8 q( U6 y" o: ~6 Vinterface FastEthernet0/12
T& E* W) @* L# w5 z9 bswitchport mode access
: P8 B: r& e8 F4 n; U& \/ C( F switchport access vlan 2
4 |' |9 M& y, R6 p# `" T% r, C; i!5 s8 ^2 E9 }9 N; o
interface FastEthernet0/13! d, j3 I6 h* @4 p, y
switchport mode access6 M6 I$ O, Q' B/ T
switchport access vlan 3+ |! o! h' f) z g% _+ T5 r
!
! y* M a: m5 X. j! K* Y8 m! M( L+ Rinterface FastEthernet0/14% a: u: P1 i1 k! [9 d6 h# M
no ip address
. w0 V! `9 a2 b8 ~!
1 g7 K2 p- B1 x9 s. N, f( Q, Z7 \interface FastEthernet0/158 q p2 p- O% l
no ip address
, V' N- T' }! t; R4 k9 E5 A; f!
1 P% |5 d' `: w' |! u$ kinterface FastEthernet0/16
+ O+ }! c% b3 X1 z no ip address
$ J7 ~, a+ J0 `!2 F `& w3 Y% A" @2 \
interface FastEthernet0/17: n& J/ ^+ A+ `. S
no ip address
5 d6 }" F u ?9 P; ]+ a!! H0 j- }6 Q0 {$ q- V K+ O" S$ u
interface FastEthernet0/18
4 u6 z j/ J; A; f0 @ no ip address' h) ~' `+ F' Z2 z+ P
!$ N( K2 H7 S2 E& j" r( z
interface FastEthernet0/196 P0 U1 f1 G! }& n+ S
no ip address
8 o- W/ N3 T% ~2 |! I: g! y!$ B8 u6 X" H5 A$ R
interface FastEthernet0/20& s" x: q% L/ g6 g
no ip address9 q! c* b7 l0 Y4 r) m
!; w% T+ S2 n2 J4 `) @2 v! n4 I; Q
interface FastEthernet0/21
$ }, g& m" _) J6 H# ^5 z0 v no ip address
( l3 q& m1 m$ r: {!5 S7 u3 k w/ Q0 K. O
interface FastEthernet0/222 z+ T, r$ k8 Q* d3 U
no ip address
5 F; Q1 M- Q+ L$ Q1 D!, G( @4 ^- p, Q3 U
interface FastEthernet0/23
: e9 n) u9 U! T no ip address
0 R. ^- o. d' v1 b2 \- `& g!
( X7 G1 e/ ~5 y6 k: Q2 J9 Dinterface FastEthernet0/24
5 h0 S5 w/ F6 V: X: l/ N no ip address+ C: Q3 D6 [. h U0 D4 X
!
n: D" m ^: s' `& cinterface GigabitEthernet0/1 [[[ Set trunk mode in uplink ports ]]]( U$ [: N% ~4 `3 ?
switchport mode trunk/ d( S8 g, @9 _/ [. A* l* h
!
: H: n, {/ O$ H' Iinterface GigabitEthernet0/28 t- D$ y) h1 T9 Y
switchport mode trunk
7 O4 v" b6 V+ i!
: K) f0 J0 m+ y& T6 Finterface Vlan1 [[[ Vlan 1 = native Vlan ]]]5 ~4 ?/ H, @' r$ g* S" g
ip address 172.18.25.203 255.255.255.0
2 S @+ |$ g% o9 E! r$ ]5 V b!
' k2 j* C2 ^0 Pinterface Vlan2
& K, e; `: X7 S ip address 172.18.25.203 255.255.255.0% Q3 k# [! P U5 X
!0 R8 s- [) G* |( e
interface Vlan3
' @4 y+ U6 G9 J3 |# `4 m4 c$ K' p) p ip address 172.18.25.203 255.255.255.0
: f% v( c7 F3 K2 {$ A* J!2 K& ^, m2 Z4 n: x
ip default-gateway 172.18.25.44 [[[ Set gateway IP address ]]]]7 g- k% [+ f" s8 `0 f* |. z5 C8 E! F6 w
!4 g% J5 L( l- e+ Q
snmp-server community admin1234 RO' I: h0 P. a: k* x! t7 r9 N$ @3 [
logging 172.18.25.37 [[[ Set log server IP address ]]]
* e4 K& l9 Z* D" N- x9 K2 c!
) e; _$ Z8 h9 [% S' B/ ^' x- }# Qline con 0: D9 P, f& p3 u
password XXXXX& T% l' k8 ]$ `0 d
line vty 0 4( ~! l$ r F2 b! O! D0 b8 Z
line vty 5 15- }' m, r8 N& _, F0 x i
!0 l; U V" t7 ?3 r$ W; q- z
ntp clock-period 17179912 [[[ NTP = network time protocol ]]]
6 _5 [8 J; x, ~" jntp server 172.38.225.218
9 C- x { N% x3 e9 t' \/ _/ ^6 I9 dend |