返回列表 發帖

Cisco 2960 設定示範

no service pad8 e' P2 e5 ~2 ^1 M6 K: X/ Q5 _
service timestamps debug datetime msec localtime show-timezone/ Y' E+ n5 E+ y! i
service timestamps log datetime localtime show-timezone& X1 i) v7 e) Y1 ]
no service password-encryption
, Y5 V$ p8 {( Q$ |!
: y  x9 b* [5 m& ]' Ehostname MY_SWITCH      [[[ Set switch hostname ]]]# @' d, U7 J1 i/ ^/ h
!8 g9 B8 m6 d4 P5 \, U* a
username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
7 |3 m+ h. c; w2 e" W3 Qenable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1
* Y1 |- u) }9 w8 s( O" \!) t4 v# y/ q0 t( v2 |
clock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]' B) M9 s3 x" [# k7 Q
!0 O( v5 {, v9 C! j# Y1 N: \6 y
vtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]
: E0 d7 y0 T. G; E7 ^# Z!
0 S0 ]3 r: a7 E7 \spanning-tree mode pvst
( Z. N! R5 w  _no spanning-tree optimize bpdu transmission( S  c) f- S% \9 n' h
spanning-tree extend system-id% t( [$ d/ Z! T# k0 O0 a+ V
!
: V- O$ d' r% F4 binterface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]
, V( y; O7 @# l- O3 x: _% s switchport mode access. C  {. Z8 @8 b* D
switchport access vlan 2+ i1 b0 o3 |+ [% n  z2 m8 E1 O
!9 e: n1 \* Z( _; W& U7 B; o6 A
interface FastEthernet0/2& l$ Q7 W6 P, I
switchport mode access$ L3 R( p8 K+ b0 [3 {1 A5 c
switchport access vlan 2
$ |+ R) Y2 V5 ^% i# N& A!
, z+ T5 a& F) l/ Dinterface FastEthernet0/3) t  s# D' \6 z) v6 b/ _9 p8 N! V
switchport mode access
! E7 w' L9 J8 l$ _ switchport access vlan 3* a! d( [, O. |
!
4 u. G+ D9 Q2 I8 l+ b: Ginterface FastEthernet0/4( L! r8 b; I% L/ Z8 b4 f8 y
switchport mode access
6 L' M  g+ j7 T% ^8 G switchport access vlan 3! ~$ Z  r0 f$ ~& z4 }+ ], J
!
2 f0 W5 R- f1 ^4 Minterface FastEthernet0/5
; m& x( q* }) |8 y$ Wswitchport mode access
  w5 t* c& ^# E* R7 i switchport access vlan 20 z% }& e6 N/ z. T4 Q6 @$ E
!% K& @; A' c. l
interface FastEthernet0/65 U* w! [  q: ]1 I
switchport mode access
, r: ]7 @' _7 r: b& i switchport access vlan 2
$ g2 A: y9 n& i2 _5 l5 r!6 U( F, S9 q9 q, s( v) y
interface FastEthernet0/7
' Y& f1 U  T6 x/ k. z0 [switchport mode access
$ V( |5 d: n+ e/ O+ I. f switchport access vlan 3
5 D# C: m4 t  I% I- e/ ]!# I7 j) [8 g: {" r. `1 l* A- W' N5 l( D
interface FastEthernet0/86 ~! J- C: T+ M$ E8 \
no ip address
9 v' |8 ~) z3 X!- V! P* n3 t  N' j  x7 Y
interface FastEthernet0/9
: {& X( K) W* Z5 i) { no ip address% g/ r: Y0 Q* \3 g! r& k
!
* k) l' O5 s5 T+ s. }. }interface FastEthernet0/10( E$ R2 F2 A% r' y7 x9 n4 t& u8 ?
no ip address
/ w8 o: q& S  O! T6 h!
5 q1 C7 S- N; j5 A8 [interface FastEthernet0/11
( m# g1 U  K2 |; kswitchport mode access0 ~: h3 R/ O# R
switchport access vlan 3  m8 U( ~3 ^! a1 ~+ g
!8 m$ O! N7 K7 Z
interface FastEthernet0/12
3 k. T" [/ e1 W! p0 bswitchport mode access
, F; y1 ^! E5 o' A& R switchport access vlan 2( ?% E) K/ [, F* F
!
0 B! E, I' L! \! P8 Z4 Xinterface FastEthernet0/13+ D. a  z) K7 X3 q' {' N' J9 E: O0 M
switchport mode access
0 O# A1 Y, f+ f. Q; l. b switchport access vlan 37 K+ K# K/ W/ P3 J; L4 v% \
!! o4 @  |3 V; ~$ h7 e3 }& y
interface FastEthernet0/14
2 d2 o4 k9 x$ d$ b: _3 Z3 }( d/ A no ip address
' ^( p- d" u# w6 @7 \( G!4 }! S6 [8 h3 A7 b+ A
interface FastEthernet0/15
5 a, U  l. T+ n0 s- A: b7 } no ip address8 k# z( p3 |# }* V2 r, Z# d3 ]
!% W0 s) S' @9 b' V- D. R4 |$ q
interface FastEthernet0/165 y+ E9 X, s; P/ |+ Y' C6 C6 _
no ip address
) b: j6 R. c! @* I7 M! G7 r!; E1 R  q5 d5 ?
interface FastEthernet0/17
% [) ~& c- T/ C no ip address1 J% m) M8 W- y( ?2 o8 q6 R
!2 t8 C4 d, s9 @1 C- J3 `6 ~" R
interface FastEthernet0/18
6 Z* Y3 e* X+ ^+ T no ip address2 J$ q) x1 W$ N$ M1 R8 p
!$ l; L+ k% H" n" D5 V: k
interface FastEthernet0/19
; Y# Y7 [) l) t/ i- f no ip address( B* s1 |2 Z4 G; \: a8 r- O
!% l; [) C% p6 }6 N6 T, K
interface FastEthernet0/20
1 ?' i7 j( V6 `5 ~9 ~& p1 a% ` no ip address
, L% O4 V# M: y1 r!9 b' N# `( b& u
interface FastEthernet0/21
! F! j+ _0 w2 ?' H. J no ip address! h9 _& d( `1 G. l/ e9 U
!
* Z# {$ V# c) ?5 Q1 H; Sinterface FastEthernet0/22
, ~, |, l3 d/ E6 s no ip address
) N- ~5 }- [2 w!2 P; V* B8 T  q4 E7 U5 o% t' C1 J
interface FastEthernet0/23
8 E% {) h+ l, e- z+ H8 M* a no ip address4 K4 {. Z: d8 a) X7 W1 P0 Q
!) r  r5 @2 H/ u, W
interface FastEthernet0/244 r- {0 Q- Y6 h- W# z- P) o; o& N
no ip address1 S: @( j9 l" _& e
!+ {1 n4 |8 L  t$ [' [4 i# T. z
interface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]
- [3 @( ?0 W2 d6 \8 T5 F switchport mode trunk1 U0 c7 S; S! d2 ~. n3 p: S
!
; {6 o, `: B' O: ?8 S+ F/ finterface GigabitEthernet0/24 C6 `7 X, U. {. X  j
switchport mode trunk/ I! D9 F. U! e  X6 D
!
8 d% T! y- y- C( l; t- Uinterface Vlan1             [[[ Vlan 1 = native Vlan ]]]5 j; t- v3 O- t9 W& `
ip address 172.18.25.203 255.255.255.0: J4 f6 p! T1 W" i- V$ y# h7 H
!
+ Z5 R7 @; ^4 P) Hinterface Vlan2  S  R: q+ _. @7 ?$ o% o) K
ip address 172.18.25.203 255.255.255.0
8 [, V$ r  g- N0 F, D; q!' j6 j7 F! y4 O
interface Vlan3. q- E) J# m' O9 I) o5 v
ip address 172.18.25.203 255.255.255.0  K+ U" T& R% B, @" ~
!
% ?- W: G9 e7 i. ]5 `: G7 f! a9 Cip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]
( ^# U0 m3 B, @; {/ x. A!
) w& i+ ]5 [3 }" a, |/ Vsnmp-server community admin1234 RO% p: J: \3 Q' _2 K" `
logging 172.18.25.37     [[[ Set log server IP address ]]]
+ U" o; W8 p- w$ b; l8 c+ L, v2 g" d!& w( e$ `3 ~% C7 A3 p5 ?: t
line con 0
) Z" j* y- j0 h password XXXXX' L$ O) L; a$ w# k
line vty 0 4
7 k3 R( r  W# u1 s# jline vty 5 15
9 E; M7 P' D5 S8 a9 P6 g; t!# M3 L, m! L* W8 j0 ?3 W' X+ i6 g
ntp clock-period 17179912             [[[ NTP = network time protocol ]]]5 j5 `% E& _0 F7 Y
ntp server 172.38.225.218
0 }" \9 c; q" z0 v( X: z0 vend
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表