no service pad8 g; N+ Y; j, t+ Y, C! L8 k
service timestamps debug datetime msec localtime show-timezone+ I4 P; V. A( ~. ^3 }% z: Y& F
service timestamps log datetime localtime show-timezone% }( F6 Z0 r2 c5 R4 K! g
no service password-encryption6 L1 ]' b# b B1 j# E) I' c
!
8 T7 T* n, k' ehostname MY_SWITCH [[[ Set switch hostname ]]]
: S( P# ^/ M6 B0 Y5 ^6 a!
" g+ B$ t ~1 I; B3 [username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
- N% ]0 k9 |) O# Y# V" B7 Venable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ15 i/ b! K) D# P
!
/ c" _0 I9 w3 _/ m, l+ eclock timezone HKT 8 [[[ Set Hong Kong Time Zone ]]]
' k" E. I# G t!
) J3 Z" ^8 F# `! Pvtp mode transparent [[[ VTP = Vlan trunking protocol ]]], ?- e: f5 X4 s9 I$ m4 l8 K
!
0 r" p$ L! n: Hspanning-tree mode pvst& ~$ e1 [8 R. H& q
no spanning-tree optimize bpdu transmission
$ g1 k/ `2 n+ ^# N. pspanning-tree extend system-id8 P6 R1 T2 m. B# ?
!; ^2 |0 P+ h/ p# `& i# ^- r
interface FastEthernet0/1 [[[ Set access port in certain ports to allow certain Vlan ]]]0 R6 e2 A2 V: C% Z+ M) {) x. B
switchport mode access" C/ P5 ?, t: V; L* V6 H! i5 @
switchport access vlan 2
8 y* [# P3 O5 R2 ?2 k8 B!
8 Q3 p! C+ O6 O( a2 Cinterface FastEthernet0/2
4 m& n w- z" h6 H; V, c4 oswitchport mode access
O `3 {1 U9 l. W% h6 p8 v D switchport access vlan 2$ Z; d% X G9 |
!
( z7 d J) z& D& W3 Uinterface FastEthernet0/3
8 {7 Y; K6 k. H/ jswitchport mode access- k0 w2 F8 Y& E$ G( B a, a
switchport access vlan 3- g; m; G* L' N7 m0 f
! O2 G5 \9 h, ~
interface FastEthernet0/41 b5 _9 Y) d8 n: T( c- n
switchport mode access M( g* E1 F1 u6 t- o, \$ G
switchport access vlan 3/ _& Z9 O' z* r4 z% R
!
4 w& X/ q0 I- e6 u8 n( _* v% {* Pinterface FastEthernet0/5- ?) ^+ j& E s$ R. [
switchport mode access" g5 a4 s) Z3 q6 \1 [7 O
switchport access vlan 2
2 S' M l2 \7 H O! D6 E5 ]1 U!7 g2 }7 M G2 p# I8 w
interface FastEthernet0/6
- ^+ H6 E) k8 f7 O, u/ \1 iswitchport mode access( U* Y! O/ f6 `5 n7 C0 u, Y9 y$ @
switchport access vlan 2
) |$ t P7 g2 k( x6 C/ v!5 G' z* d1 D' s# A) [
interface FastEthernet0/7
, G& H w" @: y; V$ Jswitchport mode access
% f5 ^- E& j/ o& p H! D/ L5 o switchport access vlan 3' }! ]* b3 O1 C
!
: J( ?; J5 O( [5 H, H6 finterface FastEthernet0/83 q4 y: K: [6 A1 _2 e1 |
no ip address2 h$ M9 C3 e. o) o! m
!0 G# S# z& h1 r2 @# Y
interface FastEthernet0/9
' g) v- u+ x& {" _3 a, T3 L no ip address
- t [& ]4 ?; y!3 w3 }$ f3 N3 y) X/ x# F
interface FastEthernet0/10# c1 Y+ A/ H% T# R& c: V) K1 e6 ]
no ip address
, v: V; a4 J: h% ], ?!
& A7 U; L; H( j) S% Ainterface FastEthernet0/11
( i; G' ?6 n6 Rswitchport mode access
5 Y8 @. M# D1 n4 J/ W8 M$ r switchport access vlan 3
2 g+ u- W5 t. M4 B- d3 S!9 b2 |$ T& r& Y
interface FastEthernet0/12
& \6 t' A0 {' V5 v/ F4 i5 jswitchport mode access
: a W4 k% Z) Z7 w( O+ R switchport access vlan 2
" m6 j8 i! k& \. j2 V8 ?!
" W% d- k( r* L' N& z& n- C# d' |8 einterface FastEthernet0/13
! k, q. Q5 R- Z/ f4 ]% u5 Qswitchport mode access
! o. m# t7 V* Q3 o( Z switchport access vlan 3
9 d/ ~& k! S- e S" Y3 X!+ n' x, a3 H' n8 Q& i
interface FastEthernet0/14
, v- {* m: U, V no ip address4 u) |# Y* ?1 j! {: O; F
!/ w; B" v; F+ V" k; ~2 I
interface FastEthernet0/152 P, ^1 s6 x. h3 C
no ip address
% w8 n. v. Y1 B8 @!
( J$ k; ~$ c1 v* H! Rinterface FastEthernet0/16$ D, {/ U( C" [, t
no ip address
; X% p" j2 k0 Q* Q!
5 N& ?1 m5 U- ?interface FastEthernet0/17
/ s9 Z) d% @: z no ip address
' z0 G$ K: ?% I2 S/ y, a% A!
x+ g; A( J \) d# u+ rinterface FastEthernet0/187 l2 I) e* B: }3 j* y0 o M
no ip address- |/ H: O9 y5 S
!
1 n D- m# [3 binterface FastEthernet0/19" `* V" w# `5 U% m6 M" P: D0 G
no ip address! ^- d9 ?* \/ C7 B2 _5 [$ ~
!
* v( {2 }" K- }+ l1 M9 einterface FastEthernet0/20# i/ S# M! n9 V, U
no ip address" ^6 p/ i. A8 @( o8 U1 x
!
" n `4 D5 U5 ?* O6 B; P- H/ {interface FastEthernet0/213 u8 X0 ]1 h' s, p; X
no ip address
9 X7 ?8 `( z- x! f! |!
$ A) e k' D2 t5 M4 z6 k- q1 Ginterface FastEthernet0/22
3 S5 ?5 U2 C, p no ip address
o3 G, T' v+ g4 @6 v: ~' n) G!" n% [9 A- R8 j1 f+ Z; i1 _
interface FastEthernet0/23
' m3 a% c# g: Y) f$ `$ ~ no ip address0 G# S A: U, W! \
!- h h/ Y; G+ \( |0 \
interface FastEthernet0/24
2 V- T) _5 R# t6 H* H no ip address
. C, F& I; Z; }7 o5 [" x, o! f!
% i% _1 q6 V+ y( j6 n! Kinterface GigabitEthernet0/1 [[[ Set trunk mode in uplink ports ]]]
! X, x0 b `& f2 F7 A! L# h$ ] switchport mode trunk# l3 C6 L8 w3 t! D
!
5 E9 u9 c7 a- D+ u# ainterface GigabitEthernet0/2
8 U9 k. U' R, v0 V1 O switchport mode trunk& C# ?; ^: f7 [: A
!
; F% d7 h" r$ cinterface Vlan1 [[[ Vlan 1 = native Vlan ]]]6 h4 G- ?: a" z3 f' l
ip address 172.18.25.203 255.255.255.08 t# G6 }8 s7 V# c' K! E
!' v1 d* q+ s& s' u$ I" v: q
interface Vlan2( S6 B& X& R1 D, h! K
ip address 172.18.25.203 255.255.255.0$ T0 W2 a* l+ m3 k; L
!7 x, G) Y+ p' d# m8 ?/ j
interface Vlan3+ i, U: F" ?1 m4 f- P
ip address 172.18.25.203 255.255.255.0
/ \) `" z/ `1 }, ?; U9 B% @: N!' o8 u- n$ i e; H4 e4 p
ip default-gateway 172.18.25.44 [[[ Set gateway IP address ]]]]
* {6 p- q; s6 l% T5 o!
# J7 ^0 V# X1 T' d4 G! o; p# tsnmp-server community admin1234 RO
% E5 R w* M7 ^/ J5 f& Ulogging 172.18.25.37 [[[ Set log server IP address ]]]
9 u' Q9 p2 O" B/ H% J!1 M, {: s2 N/ b4 e" a: A+ ^
line con 0
2 `- t# x6 ?, o, ~3 B5 W( y password XXXXX
) V; A$ i$ q4 {: G5 N' Pline vty 0 4
, v3 S5 s6 S2 }0 [* l+ x5 fline vty 5 15
/ D: B8 T9 R @, e!* W* I& O8 K) M
ntp clock-period 17179912 [[[ NTP = network time protocol ]]]5 s' O/ G8 p, e
ntp server 172.38.225.218$ R3 Y4 u/ B% @5 G) Z! O
end |