返回列表 發帖

Cisco 2960 設定示範

no service pad
8 P4 @. g& o7 M) X' pservice timestamps debug datetime msec localtime show-timezone
% p: Y& a# T, k1 h* f! w9 T# ~service timestamps log datetime localtime show-timezone
% [( R6 D! [9 z; t9 |! f2 Y1 }no service password-encryption8 {0 \, J- _; N* Z0 W5 M
!8 ~: |* m& y1 p" M* R9 o
hostname MY_SWITCH      [[[ Set switch hostname ]]]' J$ `0 @. y8 i4 C1 G& J; R
!7 O, J) H( x- y
username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
9 {0 R' w5 O- @2 Benable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ17 n6 a; C7 f7 d4 |% ~+ ?) u
!5 w  v2 F1 i% T5 A
clock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]
1 {9 ]6 V, H8 y+ w$ @+ ]!
) Y% q9 Z4 Y5 _1 [" |$ Y' S$ v8 u2 k2 [vtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]
2 y! g5 w; X" r* ~: X!! ]- G, r" T1 T) G- _- S9 J
spanning-tree mode pvst5 `6 b9 `! A) w
no spanning-tree optimize bpdu transmission
. E8 n7 p1 H9 ~: y/ Z# qspanning-tree extend system-id- B" X0 v, J' L) c3 a9 u
!0 q. q* h7 \% |
interface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]
+ A" P- ?5 T# N# r4 X4 |" v: r switchport mode access
/ q2 H! @+ v/ O4 x4 D  L- @* o switchport access vlan 2% F% @+ ]) ?2 O/ i
!3 ^/ `) x, [* _
interface FastEthernet0/2( ~9 ?/ V0 U, [5 D
switchport mode access$ y% s6 X) I, b) O( n0 R! z
switchport access vlan 2
( {' X8 x% V; w1 ^!$ ^/ {6 s: |  K2 [
interface FastEthernet0/30 F% n0 d8 e2 s2 H' q6 S. |
switchport mode access& h2 y8 W+ L+ e1 l. ^, J4 {) ~
switchport access vlan 3) `1 m+ n+ T" w3 ]6 T
!. `1 g3 k! N' C. z( `% I
interface FastEthernet0/4& o# Q/ a8 V- Y- F" M9 f  l9 C
switchport mode access
& h0 z- ^: ^* b; [$ I switchport access vlan 35 \* j/ f& @; r
!- z+ q( `4 J0 D9 R
interface FastEthernet0/58 L# d2 I  F" j" W/ T8 R5 B' j
switchport mode access  r& }! u3 v- B( N$ W5 m7 }
switchport access vlan 2
$ t: I1 U8 s  t* e4 `( B!/ m9 [. c& M* x# s# M9 U# O/ B
interface FastEthernet0/6
+ H$ ~; l, d! _9 F; R4 Vswitchport mode access
1 o: w: ^! a  N switchport access vlan 2
, j9 p6 t0 v' ^!" P$ v, O! N9 h- k% R1 W/ m
interface FastEthernet0/7% i* a) q( F" ~, y# R+ n
switchport mode access
3 T, x/ H! F$ P6 [  T+ V switchport access vlan 3! z9 K% ^0 L5 {: \
!
$ ]! R# O6 b' ^! g: T! q$ G. X7 d, xinterface FastEthernet0/83 j; X+ c- O9 D2 F  j
no ip address
2 c. y/ t. i9 c- T!
; q3 k: |7 k. |/ Sinterface FastEthernet0/9
1 c" G8 @6 `8 h+ `7 v no ip address
, ^9 p8 E2 ?( }- `3 C6 W; C0 Z0 z!" z. I5 l3 V: u
interface FastEthernet0/10# K( J9 v- A8 }. \3 F4 I0 v! K
no ip address
, M6 ]# p2 b/ c2 E3 b/ F* I3 T5 a!/ R" z9 ^6 C$ c3 P
interface FastEthernet0/11
$ a# P4 z% s' V* d9 W% }switchport mode access
& A' [& L; f3 }0 ?& C: r switchport access vlan 36 h. H* b4 ]' C- v' ^
!+ \- D, A* N$ h1 b0 E3 y
interface FastEthernet0/12: ^  a) j9 V. M' c; A3 `
switchport mode access! _5 h% k1 Z/ Z$ t! k4 o8 s
switchport access vlan 2
( l% ?8 i+ ^$ V- E1 Y!
$ `  ?( v0 m' P, j4 }' e3 Ninterface FastEthernet0/132 P  s/ _) H" j* S* E
switchport mode access! E# M/ }3 o+ Z2 f. T' k3 C
switchport access vlan 3* z0 u5 z7 F" q1 x2 N" g5 S
!) j  r) z+ @/ c" Z& h6 Y
interface FastEthernet0/14& x; l6 l  u$ K! e! L
no ip address4 t4 v( i, t- X' n/ ^
!$ L. `% y7 q/ ?0 M4 N# X
interface FastEthernet0/15
( I; o8 h4 |8 x/ C. v8 q8 g. S no ip address
/ D8 ?! F( L& ]- p+ t$ o!
: b" ]7 ^. T, q: B) Qinterface FastEthernet0/16
( _" y# m7 x; {  `2 { no ip address0 Z4 J1 @/ I' B1 U
!& g5 w0 E1 o. V# \8 ?: Y
interface FastEthernet0/179 v' I" i( D+ N9 m4 f
no ip address
1 C$ S7 Q7 [8 L8 x: z3 Y* }!
  |0 I. G+ R. A. b9 X4 w$ rinterface FastEthernet0/188 C: H) I4 R& U+ G4 h8 v) O
no ip address
+ D0 w) }' p# f: M!
# |# ~7 d4 k( U; k/ H9 B. winterface FastEthernet0/193 A) h. C% ?* A
no ip address
4 e% \8 G+ ^) L, h- W!
3 s: i! q8 I0 {! u/ jinterface FastEthernet0/207 ]/ ?+ b+ y" X0 @" H! j
no ip address% [' E8 H5 j; u  ~8 U  n5 f
!; O/ F/ P, p) q. {  I8 ^
interface FastEthernet0/21
4 U2 V5 E* y* S  f5 y3 k1 c. g! @ no ip address
+ A/ r! P; ]# [, |6 Z!# T8 _& F: v9 [2 n& ]4 G+ j
interface FastEthernet0/22' S7 V6 ?- O4 F$ Q1 b% R
no ip address
8 R6 ^, H7 e! y7 m% y, s4 g) m!
2 Z; n( z7 I- l$ m; s1 b6 [$ ]interface FastEthernet0/239 }( m$ k- T. |6 m: L
no ip address0 I$ s# v2 g; s( Y3 d3 V2 B1 z
!
1 L. h& O6 m1 t# ~( {interface FastEthernet0/24! k" ?3 B% _& j# i9 c$ s- Y/ g9 e
no ip address. h( B6 Y. Y- K, f, T
!
6 }7 m0 G$ |6 ]) J* H7 j4 Sinterface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]9 @8 R+ M3 C: n$ b' B" h
switchport mode trunk: P. T% n: H! Z
!
! g1 W- d2 r, W$ cinterface GigabitEthernet0/2
3 T4 g) x1 y2 m4 {$ [ switchport mode trunk4 g' p; O$ t4 X) \1 W
!
2 U2 r1 T" N) ]# T* t  jinterface Vlan1             [[[ Vlan 1 = native Vlan ]]]
% T  x, N! L9 U( Z. \8 [+ I/ l; d+ b ip address 172.18.25.203 255.255.255.00 Q* s7 B3 f1 r) [) j  O: Q: G- j  E
!
" v$ I/ N: u3 @# M% binterface Vlan2
/ {, q0 O* f/ ]8 B ip address 172.18.25.203 255.255.255.0
3 Y& @1 Y  l; p# P7 q!4 u+ N' \& e1 f, @- m
interface Vlan3* J2 B; a6 ]" d  c" T
ip address 172.18.25.203 255.255.255.0( j( C! w* P6 l0 q, v' w- m
!- i# i2 S# P0 k' |; Y4 g$ E) U
ip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]" p% H# n  F/ R2 [+ [4 {
!6 E! L0 @3 M/ \
snmp-server community admin1234 RO
& w& x) R& Y1 `  N* R) ?logging 172.18.25.37     [[[ Set log server IP address ]]]/ G! p8 I! Y2 t  q6 v4 _
!  n+ [1 R3 _6 W' b
line con 0* Z9 V" T% ~! V! c' Q0 v
password XXXXX
( N: X$ ~1 n# Xline vty 0 4+ K5 d8 k; V9 w. T$ O; i
line vty 5 15' b( M# d' a1 R( q5 m5 H+ ^
!
: P  _# \. K! I0 V: rntp clock-period 17179912             [[[ NTP = network time protocol ]]]% {; [& X$ q) p7 ?1 q: R3 \
ntp server 172.38.225.218
) q3 x+ n$ }! @6 U8 U9 q' C2 N3 D( xend
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表