no service pad
, h6 a* V: O6 e! z: L# A \% oservice timestamps debug datetime msec localtime show-timezone
! A2 a/ q" @" B+ }# u- `service timestamps log datetime localtime show-timezone
" y' a* W2 f& o7 ?1 C4 Mno service password-encryption
* x* n# I2 W0 S1 g!
0 `5 L7 T d8 H/ g* Khostname MY_SWITCH [[[ Set switch hostname ]]]) g4 T, R& d; m9 T4 K
!9 j% N: j. C( m0 e% P
username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0* S* e$ h. ]! E& U1 o0 @
enable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1
& K& j/ a9 Y9 b!
- @: [0 H% m' M, t2 E% `3 Rclock timezone HKT 8 [[[ Set Hong Kong Time Zone ]]]
& | N4 A" Z Z!& S/ }1 u( v" @3 ^# C
vtp mode transparent [[[ VTP = Vlan trunking protocol ]]]' B* ^% V; d0 d# j2 @) _! B
!
5 T0 D) u& A9 P8 {; ^& T* D. r uspanning-tree mode pvst
7 B# ?. T" m9 N0 Z0 x: W' } nno spanning-tree optimize bpdu transmission
) s: D: U( U4 i9 \" ?: z1 Kspanning-tree extend system-id
u5 x8 F% _9 e2 x3 X" r!
1 w) m& m. B( {( O5 ^* k* Linterface FastEthernet0/1 [[[ Set access port in certain ports to allow certain Vlan ]]]
7 ]3 ]& h+ P- f' o9 K- S6 D, D switchport mode access* O& L& j0 t, J# I* r) _1 n$ s
switchport access vlan 2
6 N- r) |3 H! _' S!+ w/ B$ C" i% ]% S* N# Z) h
interface FastEthernet0/2! }' j6 c# f9 q- [8 o+ J
switchport mode access
n1 R/ h' y8 |' m) F0 f switchport access vlan 2; q: U X5 A) k: N: a, ]5 F
!* f, T$ l: x! L) X
interface FastEthernet0/3
% _% @, c# \, m0 q C4 Y- iswitchport mode access
& _* p U$ e- W, ?) C switchport access vlan 3; x+ E9 E8 a' L3 ?; u i
!
' _$ l4 d! d) R9 \* [* ~interface FastEthernet0/4
# s2 m. @# F8 c [switchport mode access
* a, `; e* |7 p! e4 \) i" y switchport access vlan 3
, d! T4 `9 p: t9 W+ X" r- B9 `: n!
O( K) @4 q9 n( f. \interface FastEthernet0/59 k* S* ^9 V3 X- N0 V# j
switchport mode access
7 n/ N6 T: f3 P- T+ Q switchport access vlan 2" M) G5 A% p; W, j- b6 a: `
!7 ^+ w$ H$ \6 f# g$ e
interface FastEthernet0/6( n6 q) B; A- S
switchport mode access
/ P- G& ^8 C7 g- @& I( j5 T switchport access vlan 2
; {. i* u9 h" I. H!6 b4 u! G$ _' h1 k
interface FastEthernet0/7. w6 {: O! B7 K8 \: ~" x
switchport mode access8 P: b& V- R% T; A6 x* g
switchport access vlan 30 O/ ?. v D5 U% W
!8 d$ L) W" ^ r
interface FastEthernet0/89 F5 U* i _ a
no ip address
7 z# z$ z0 M" c! t( o( h!- m4 e, H* R8 w* s" S w f) o
interface FastEthernet0/97 M, z" U2 L" h. C D
no ip address% d! S+ y; L, e/ ~
!/ K* P- H0 b5 n" O) |1 G& z4 q+ h
interface FastEthernet0/10. c" z& J: P3 m
no ip address0 {! d) z" [+ Q
!
( K% i# g/ D' l+ ~interface FastEthernet0/11; G x( ]" I) D! K6 }& D
switchport mode access. O" G# A/ m- |
switchport access vlan 3+ W. V" K# }8 R0 o
!% y% E/ R+ t2 k- y4 ^3 D
interface FastEthernet0/12" E& R- w: K& N% }, B
switchport mode access" d* l$ d% `: | K( H8 y8 }# ~4 \; W
switchport access vlan 2( F) y0 ~8 \8 M6 C0 d/ ^- {5 b
!8 k" ^; @0 X8 L& H
interface FastEthernet0/13
. n# M6 j* ^7 c K$ l2 T; z6 q1 |% jswitchport mode access" Z N! g+ v' m% E7 K
switchport access vlan 3
& q7 a# u1 `+ d4 ?!0 T5 b8 R, E* r5 A V3 M
interface FastEthernet0/14) l$ d8 L5 G* A; }
no ip address- l+ h7 y3 L7 a+ j9 D& x
!
, {* F. P" ^" ]! @ h: iinterface FastEthernet0/15
2 o. Q) c$ j# O& q4 {9 h. C7 r no ip address% u/ C7 o7 `! s& S
!
% N! K( t& u1 z0 v# D; D {: Y1 G% Jinterface FastEthernet0/16: x" _2 L7 e/ `# ~* a) t/ V
no ip address
, z7 o+ K; ^. g2 Z4 f8 `& I8 ~!
: y$ O/ o4 `7 |, jinterface FastEthernet0/17 G$ e9 N7 M6 i
no ip address7 F7 Q% c) z) d h
!
: A3 L+ C7 _' l* l, \interface FastEthernet0/18
: ^* a/ g I3 \' ? no ip address
& I8 e! v& n& e. w; ~!7 K1 W. e/ n' Y9 b0 S
interface FastEthernet0/19
5 t- I& [2 J$ x1 \) P2 h no ip address
8 R* d D+ l- ^: N& p: d1 ^9 L0 A!* S+ r& ^, I: ^9 D
interface FastEthernet0/20
: g9 \( U8 M) Y$ g: O! r1 X8 L no ip address
( A4 q# p4 E: D!
$ b# [/ c: ?; l/ ^5 q+ P8 P9 X, Winterface FastEthernet0/21- _- q3 J- F9 _- J8 {! t# N7 X
no ip address
. F/ {8 i8 D6 I0 v. r! ~# R!( o9 \' p) }* l
interface FastEthernet0/226 e9 {3 a2 I4 }) a, U
no ip address
; A& A' E) w, s9 `!
9 J. x# o" H8 i. F( x' Winterface FastEthernet0/23
, V0 Y, T) R: q, Y% x8 s8 m no ip address
7 J8 H0 `; y2 m!9 R, L2 X3 G$ {7 u
interface FastEthernet0/24
. A* @$ d9 W% g: Q0 W7 s% u no ip address
" @* q+ Q: K! s! |!, P: |+ |/ g+ H$ n( U0 Y
interface GigabitEthernet0/1 [[[ Set trunk mode in uplink ports ]]]
2 G! ^6 D B/ g switchport mode trunk
( D0 L" p3 u# P8 |' }( ]!
/ z) h% ?0 `% |! Iinterface GigabitEthernet0/2' ]( c. _3 B* k: h; Q1 s
switchport mode trunk
* Z9 e3 e! q: \* e& G!7 ^ P8 Y1 z9 q3 `) w* {
interface Vlan1 [[[ Vlan 1 = native Vlan ]]]
9 b5 \* h, c( L" g1 B ip address 172.18.25.203 255.255.255.0
! c( e" P2 k1 Z' R!" z7 ~& l: Y; B8 ?' Z k1 U" T9 a
interface Vlan23 I! K5 q8 O3 v3 B. y. F- o
ip address 172.18.25.203 255.255.255.0
5 w& X$ ?7 Y, f3 G* v% c!8 M ?3 m9 V- X; I5 U
interface Vlan3
2 E4 u' B! k$ N# j% e- W, ` ip address 172.18.25.203 255.255.255.0
# N, ], b& b" V- R, a. I!
@8 p/ o9 K$ zip default-gateway 172.18.25.44 [[[ Set gateway IP address ]]]]
' d+ t7 b7 }) ^% _!
5 p( _4 _" S f) \snmp-server community admin1234 RO8 A9 N3 H" S. e I1 l: x& M
logging 172.18.25.37 [[[ Set log server IP address ]]]& B& H( G6 \( p' ?1 V3 i
!. x9 X/ E8 @( A6 w- m( s; Z7 V5 \
line con 0
5 k: ?" `! O5 F5 z" R password XXXXX
6 c. l1 O& U3 K" j. _+ s" Vline vty 0 4, F8 ^7 @0 u1 p: L3 m+ V4 p$ g
line vty 5 15' l! b2 P- H4 a
!: l+ A# Y: `+ [9 i" b9 I. |- W& x( h
ntp clock-period 17179912 [[[ NTP = network time protocol ]]]
, m' P& x: F, }/ c, f/ zntp server 172.38.225.218& E6 I) _$ X( Q' F9 r, U4 i
end |