no service pad2 | O0 U. V i! m( m( R- E
service timestamps debug datetime msec localtime show-timezone
U0 |8 A* {. E8 l' }% Gservice timestamps log datetime localtime show-timezone6 t. a* H5 s+ g4 v" s- S; E- ?% f6 L; l
no service password-encryption
& E4 q# M) L4 u/ v7 {9 ]!
2 s7 ]- F4 y+ c$ M! ihostname MY_SWITCH [[[ Set switch hostname ]]]
4 K. r0 S7 N2 G3 G!
% |7 u+ |' f' t) l% E$ Z' Pusername XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw08 m! l, j( ?8 E% B
enable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1
) I3 ?+ c4 ]% e n!
3 O/ v! [- I4 h! rclock timezone HKT 8 [[[ Set Hong Kong Time Zone ]]]
: C- O7 @5 e2 S' I: T!0 @: C9 _- X7 f9 F
vtp mode transparent [[[ VTP = Vlan trunking protocol ]]]! Z' g) k& r; `5 T5 f
!* e) R V; u2 j% q$ p- G @
spanning-tree mode pvst
- }" f0 m' n9 z/ hno spanning-tree optimize bpdu transmission1 w4 ?9 u8 A- c5 Y# A0 G/ O
spanning-tree extend system-id# |) ~2 |( p8 h7 L* G. D1 k
!
8 o/ k! Q+ o* @: a8 Y3 Q9 e1 j' Yinterface FastEthernet0/1 [[[ Set access port in certain ports to allow certain Vlan ]]]
2 j: q; n2 i) k9 z+ Q& s switchport mode access
9 b, }. @! e# N7 ?* W switchport access vlan 2( W1 w; t6 C3 m& T; u2 u9 s! N- G5 q
!& s% P6 S A' ]( k; ^, Y
interface FastEthernet0/2' t3 g1 S9 `. X2 C8 D
switchport mode access1 w- j: Q: p( y% g6 G
switchport access vlan 2& y) i% t2 C( ]( p3 g4 W& \
!
0 f. b8 G1 G9 F) V8 N E! xinterface FastEthernet0/3
# v7 ?* T2 R& q# w# ~( H; F3 tswitchport mode access
- Q9 G9 I7 ]2 O: K0 A5 ^ switchport access vlan 3
+ K$ ?0 C! }' G; L) g3 I1 j' R- D!1 P' j: e! L3 b
interface FastEthernet0/47 L/ t: B: U: Y3 [
switchport mode access
+ g" h# z4 r/ Y$ i$ K switchport access vlan 3; S# u0 @- Q0 U+ w: J% C
!6 R& H3 i+ ^0 k8 d( `# ]
interface FastEthernet0/5
/ \; X8 P: f0 [9 Q! I. {switchport mode access
+ I2 \& d# w5 t5 I Q' K+ j switchport access vlan 2
( i$ P0 k' W% U6 c1 O' `' r/ Y!- u( u, ?8 ~3 }# }. ?
interface FastEthernet0/6
7 o, {! h" P+ ]9 zswitchport mode access
) ]) I2 `* j$ S6 W- \2 ^& a switchport access vlan 20 q: u+ Z$ v% T
!
& I) O* O) @$ M L6 L- ^interface FastEthernet0/7- ]9 Y5 E4 b+ l7 E* T
switchport mode access. `' f: ~, L/ W3 f: ~9 Q
switchport access vlan 3# |8 l6 A3 a. q( H1 y8 U0 k( s/ \
!
1 {* Q% R3 N8 }3 d( ?: {6 zinterface FastEthernet0/82 o7 q2 ~; O9 F$ g1 \
no ip address
0 k) r' ?$ c0 U: }!" w! u7 I/ I, A& e% B j) u+ W/ Y
interface FastEthernet0/9
/ Q# R8 l/ @, {" R1 o& q no ip address2 @3 Z* W3 h( f; [
!5 L9 ?9 r% k6 R" N5 w8 ~* A
interface FastEthernet0/10$ h. O1 @4 E2 O4 s( ^- p
no ip address4 `, r* d/ x7 r5 y
!
E* T6 p! H& z7 d8 C3 u4 F7 Binterface FastEthernet0/11" s; `/ u2 R8 R8 l3 @3 \3 T4 `3 f
switchport mode access0 W# j# }6 l, E- R2 a( i7 e. I }
switchport access vlan 3
7 P; v f2 d' `3 f# D' a' A* m3 [!
& [9 f. ^) e& Kinterface FastEthernet0/12) ~; j4 d/ E$ {! V- N
switchport mode access! S* a+ D/ r# S& u5 x& K6 ?/ C
switchport access vlan 2) Q% W. ]! J5 i. g9 s
!
" h! a& w' H& M, Einterface FastEthernet0/13
+ i1 Z, r$ p! J2 t2 e1 d5 {switchport mode access9 \, f) _+ b2 W( c+ y2 Q! m5 \
switchport access vlan 3* {6 A3 F: Z2 ~) x4 M9 f5 g8 N
!$ F. G8 F5 j9 K0 b) [$ s$ k7 _
interface FastEthernet0/14' H# n+ F' m( t
no ip address
; E6 j7 \& I: D T' H!# q: P/ S# W5 m4 ]: H1 w: j
interface FastEthernet0/15
V' L2 L) D2 l5 Q no ip address
$ j5 Y8 A& [, d5 H C' p; u8 B, L!3 D1 o- {( k, d* h
interface FastEthernet0/161 ~0 c2 m$ P% b% L: t0 o# {
no ip address
' B( }- x `6 k4 x r& Y% i0 ]7 P: O!1 l4 r/ M- q4 y9 w- F0 D4 U
interface FastEthernet0/17
1 ^3 n6 a7 s" ^5 N no ip address2 }1 u k6 d, ]) O8 J
!8 q, L( I' V; i
interface FastEthernet0/187 m% F# a4 N+ J
no ip address
2 f2 ]+ r; f: k' ~+ ~! z8 t!
7 e p+ `$ i/ B3 C$ Zinterface FastEthernet0/19
% R$ Y0 H+ T+ V no ip address8 F! A$ L, d* Y% i3 w- V
!
. b3 |* \* B; ?5 A7 V: iinterface FastEthernet0/20
6 d0 \9 B! y6 ?0 ~ no ip address
" q, [' L+ ^, M' t2 Z% Z' o2 T5 p& i6 I!
" k0 P* _0 p( C/ Hinterface FastEthernet0/21
0 [3 U. ~$ r7 E( R7 r) s no ip address
4 J# b+ R% T, C p# e!
6 e9 H; O* r( Z6 g) B2 Ninterface FastEthernet0/222 ], i3 E$ r- Y2 y+ T
no ip address
x' x. C( L4 k) t!
/ P8 `4 M! H5 T5 u8 ginterface FastEthernet0/23' G. n# L% u* F7 C
no ip address
8 W5 @3 s( l$ j( A5 s9 M6 ^ p!
" X3 }" P! v3 z$ V- k5 D& n; h4 Pinterface FastEthernet0/24
! ~. J0 Z) N! D: ^8 l2 d& W/ X C6 @ no ip address
E1 G7 D o; C$ F* F0 H9 Q6 A- B) g!; [( R& m; E2 i; x, U
interface GigabitEthernet0/1 [[[ Set trunk mode in uplink ports ]]]- u4 V! p, F; M# n- q
switchport mode trunk( Q8 o7 _9 R2 _8 u$ X( \% t* \
!
: h# a: w. J* U. f: ]# vinterface GigabitEthernet0/2
: l5 U! _' r* |. B$ l* S2 S8 r switchport mode trunk
" v7 Q9 l( R0 T) D!& a$ s. y; M9 d; Q/ v, T4 f6 o: ^
interface Vlan1 [[[ Vlan 1 = native Vlan ]]]9 c) C) K' x( v8 i0 I
ip address 172.18.25.203 255.255.255.0. {0 F9 i4 b, V* H7 a# E; N- \
!
z) i4 ^# G+ B' w7 U2 [interface Vlan2
, A" n* K" T& w( R$ M3 s9 o ip address 172.18.25.203 255.255.255.0
/ n9 F; \; a: h, X/ Y8 L!
3 y% n! G4 }% Q8 einterface Vlan36 p$ T7 h N# `8 H! K9 m
ip address 172.18.25.203 255.255.255.0( E) {4 D; [5 i
!
5 @, ]. \; ~0 b- }( Wip default-gateway 172.18.25.44 [[[ Set gateway IP address ]]]]4 ]4 n; ?5 k! s4 o+ @
!* A& U+ W* [& p2 D/ F3 t
snmp-server community admin1234 RO: t u. L7 o* D) m, u, \$ k1 L- G
logging 172.18.25.37 [[[ Set log server IP address ]]]* h0 t8 }( X4 N$ s& P* t' t
!) h+ S; L: ^0 h, ]: h: }
line con 0- k, M9 I# ^/ Y, U! Q5 F
password XXXXX
6 G% A2 Z2 T9 }1 z2 Z4 R" Zline vty 0 4' H% L8 h- a& L% W+ @
line vty 5 15
- t3 W C# o8 l!/ V/ B1 U) |2 a1 h9 ?; ~
ntp clock-period 17179912 [[[ NTP = network time protocol ]]]* e" q% R+ d, r9 f; a" ?. u
ntp server 172.38.225.2184 W+ H+ h; D+ n+ W. N
end |