no service pad
5 Q3 v% m" I* Y+ z5 V' A) ?* Jservice timestamps debug datetime msec localtime show-timezone- L: U& ]4 Y6 E; a
service timestamps log datetime localtime show-timezone8 Q; m- L' n( u4 f
no service password-encryption" w Z; p5 T' U) ~
!# W4 ~( b8 {# h$ s0 T4 f& k: n
hostname MY_SWITCH [[[ Set switch hostname ]]] S) @3 |9 x) Q
!
" y0 _' X: u% {( Y, ausername XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0: Y; z! N9 ]; A1 N: h6 X$ @4 T2 y
enable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ16 p4 x9 b: X" g; u' e+ p3 b$ ]
!
. ^* P/ Z6 L- v. F1 e2 eclock timezone HKT 8 [[[ Set Hong Kong Time Zone ]]]
2 @2 P7 `2 J! p" D$ S' ^6 P2 z!( b6 E6 D1 o/ O+ @; ~
vtp mode transparent [[[ VTP = Vlan trunking protocol ]]]
. ]5 p. t& p8 s0 q4 s' N3 U!' u p" }% G4 l! N/ G
spanning-tree mode pvst# ^2 j/ C7 d# ?! A- z
no spanning-tree optimize bpdu transmission& {: n7 Q0 [8 ~1 K; U
spanning-tree extend system-id
& l2 H% l+ |/ L% z& j. t: M# @!0 F4 m$ {8 V8 k/ Y
interface FastEthernet0/1 [[[ Set access port in certain ports to allow certain Vlan ]]]
* a9 a% e2 ?/ a/ s2 }5 s switchport mode access+ G# T/ S6 s' F* j& ~
switchport access vlan 2 `1 v1 R. h, a& C) X, j _# W
!- J' l; t( C9 |
interface FastEthernet0/2* R8 K `; E) w8 ~8 x0 Q v6 o
switchport mode access, Y- |( o8 _; R" b8 I) ^# O$ q6 W! A
switchport access vlan 2, z0 m& f; a) k" }9 O
!% k! i4 F, W2 C$ S, ^
interface FastEthernet0/33 M6 I. v) ~* ~0 O5 G; @
switchport mode access2 l) p, U: d3 k+ V1 Z
switchport access vlan 31 v: L. w \' P& i2 y- }
!+ K* S' `. U2 J" N. W! V
interface FastEthernet0/4
$ C: C0 e7 U2 u A# vswitchport mode access
2 z l1 G* D- L; t+ t% Q switchport access vlan 3
/ K0 _8 E# Y; o/ ^' F% M* H!0 \9 [" z' e6 u! {$ O
interface FastEthernet0/5* u) h6 t. J) o
switchport mode access$ l. ]1 w8 [0 J
switchport access vlan 22 R* t U; L6 u
!
& `6 [& T; V2 J* i, u9 dinterface FastEthernet0/64 x; N2 R. k- k3 g
switchport mode access
1 P t a. v( h- l% P; j5 t switchport access vlan 2) @6 C- P1 ^- w" V
!
3 F+ ^+ B* Y8 cinterface FastEthernet0/7
+ D0 {& {. K: \( yswitchport mode access! e) w! a- Q* ~' m; Z5 u
switchport access vlan 3
" U# i* y' J" t! I# `!
" `1 g+ x j. Z1 X" ginterface FastEthernet0/8
/ n: F! ? @. X) }6 E+ g9 C no ip address
- ]8 g( h6 V S; t6 f' {+ u, |/ l9 \4 F!
( l$ L0 U7 L+ m6 hinterface FastEthernet0/9
0 D5 E% t' O! ~, p no ip address# L' d- c2 W2 M
!
6 l0 e% X3 b5 a: e6 Yinterface FastEthernet0/10
5 d( k% S% D l6 N: Q no ip address0 l" }. b) Z8 N( W
!) G; v* h, K6 I8 ~& s
interface FastEthernet0/11
# M* x8 z* ~( w% a' j4 a; bswitchport mode access6 B$ f O* C0 \: Y7 W2 Z0 k
switchport access vlan 3
6 i( `$ L4 ]9 ^8 Q" z- v!/ M% D. \# k5 ?3 x( y1 n; p
interface FastEthernet0/12
+ m2 \* B) ~5 P# `0 Hswitchport mode access; n0 q, K% K, S' `4 h
switchport access vlan 2
9 B" A& E$ @: ]8 {: I p- {; j9 k!( f' ]5 n( P' e5 G+ n+ V1 D
interface FastEthernet0/13
t! r# ?* M1 D+ pswitchport mode access; E& [5 X2 `! F
switchport access vlan 3& k* I4 i- _5 c+ j" U, T: H
!
- p) i; E5 I& x% J1 e9 Ainterface FastEthernet0/14
( `% T! B# L& I$ u. j no ip address
, q4 z6 r+ i" c' N!
1 ]" f! i8 T2 t. }9 s; \interface FastEthernet0/15
- p/ E1 Z$ a% i7 r5 X no ip address
8 ^- [9 N; ? [' J# h!& k* G0 J5 G5 f, H
interface FastEthernet0/161 ~" Q" t% ?& B$ g8 X7 v' j
no ip address
& y# E5 m& k# P* [5 U!1 P; Z: W# J o: H, j" X1 Z
interface FastEthernet0/17- i5 l& [3 z ?+ R9 ?3 w4 `, Q, ?7 }
no ip address
" P* _/ J4 V7 p+ U# m. a5 j% Q!9 m/ ~" d, w# O1 ~0 X
interface FastEthernet0/18' t7 ]+ C$ Z/ j& r) m5 O
no ip address
2 ] i1 e$ W) @* E, R!
# f" O- G) G- y# A7 cinterface FastEthernet0/19
; Z- {6 m% u1 v7 m( K# g) ` no ip address
0 U6 L; l$ G; R* L& U!3 Y5 R7 W% g: P- _ z' L/ t/ S
interface FastEthernet0/203 z9 v$ f2 w1 v" R( u
no ip address$ Z: D5 j) h+ f2 X
!
+ G/ C2 T) g5 G/ [" a) ointerface FastEthernet0/21
b- G9 C9 \. u) { no ip address; w4 E2 Y) c8 J2 Q& Y$ Y* h' w
!' I) P$ W: {. R# r# E
interface FastEthernet0/22
. x. B& K: T( K. ]7 N6 ^ no ip address& C& ~, {& T: @' Z6 V9 w: d
!
4 |# D8 Y$ u) h. N/ pinterface FastEthernet0/23/ ^# F) X6 s( O- X5 @
no ip address' ~+ x. V1 z% s6 y9 R9 m# ]
!* N9 D0 K" ~3 s3 L/ q
interface FastEthernet0/24
" M+ {, ~0 V! h X no ip address& p' M+ ]; m. W2 X$ g9 Z( C! ^4 ?7 \
!
+ A S, T' E7 f0 f- C' winterface GigabitEthernet0/1 [[[ Set trunk mode in uplink ports ]]]
! {% T9 n$ O) K switchport mode trunk7 |( I' ^! @' L/ e6 u" \
!' i Q; |: l. b4 L* a5 e# n) |
interface GigabitEthernet0/2
/ B Y2 p# P6 y/ y& k2 a" L" b switchport mode trunk8 h% i! |/ M2 m/ ?/ Z
!
1 D/ R- U: L: M# Finterface Vlan1 [[[ Vlan 1 = native Vlan ]]]
1 W; T* ^" p3 v3 X9 R$ C# K& E ip address 172.18.25.203 255.255.255.05 }* j. x' Y7 c$ v$ _1 ~* M
!& }* _ ?9 v; z( ~5 b8 ` E+ B, g7 J3 z
interface Vlan2
' `. r9 m3 r% G1 F! v9 b9 i ip address 172.18.25.203 255.255.255.0
( }9 M2 p' q+ s% {. w/ @- Z' P, Y!
4 i7 e$ ]6 m3 N' F3 K" v$ p4 Q" Yinterface Vlan3
" d% H* O4 e" J5 L$ N; K1 O ip address 172.18.25.203 255.255.255.0; c# @7 z# S; J
!
7 {# t& j' D) `! N# Y) l; sip default-gateway 172.18.25.44 [[[ Set gateway IP address ]]]]" x# }5 b P$ ~3 _( l/ P
!5 M3 p! D2 \1 R9 ?( _$ ^
snmp-server community admin1234 RO" S; [+ J2 n+ q7 N8 e, ]2 i9 q4 N
logging 172.18.25.37 [[[ Set log server IP address ]]]
! ?7 m+ P0 j% q: T; Q' u- X!* W, z0 H7 o7 R: Q/ Q1 Q9 g( v
line con 07 }; ]( M2 D3 _: x2 o e# s
password XXXXX
: h9 H' h6 W) l% v" Z1 oline vty 0 4
! A% r! |! I7 J0 ? Z; eline vty 5 15
7 v- h9 S5 o$ ^ \6 B6 y!
* P1 K& x: Z( h2 ~( h% e8 C$ jntp clock-period 17179912 [[[ NTP = network time protocol ]]]
* }6 L( m+ U4 V, r& Kntp server 172.38.225.218- B0 u8 Q! `1 q7 H3 @9 Z# _
end |