返回列表 發帖

Cisco 2960 設定示範

no service pad
, f- O0 I* a% {5 e+ c5 e* Jservice timestamps debug datetime msec localtime show-timezone
9 x* ]4 J# F9 M$ b9 yservice timestamps log datetime localtime show-timezone
# W+ s& N+ G/ y* w9 F, }: |1 g  vno service password-encryption
( V2 M4 d, {% i6 n5 b6 P; ?( ~4 u  _!
/ y5 Q- n+ A$ _* g* _( o3 D) }hostname MY_SWITCH      [[[ Set switch hostname ]]]
& A2 P, z! N7 d  ?( W" ^1 B! k!9 G/ J6 J8 ~# ?& i6 ?9 D+ G4 m8 ~
username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
1 z: n! ^* u) v- henable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1
" k9 Z) b  D8 c$ @!
1 y' s9 r( r# D# U3 m, ?clock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]9 R) u2 d- b: ~3 g: y& I' `
!
$ J0 D8 q4 W% B. ^1 s0 tvtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]
0 p3 V1 x. G+ M' Q7 r!7 U2 G' ~' u7 Y* N% }* z7 ?
spanning-tree mode pvst
5 C) ?$ j9 D* T: H1 V" r3 Y4 Pno spanning-tree optimize bpdu transmission0 d* D4 L( ?8 T8 u% j7 O" R  ~$ P, n
spanning-tree extend system-id2 E7 B  T6 h- G( ?" u4 ?2 Y! g
!
  [( M+ f8 S. ?  ^! Qinterface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]% A( c6 v( m( W0 B+ c4 j  [: F
switchport mode access1 y8 ?/ D& Q( i5 `5 j2 L9 H
switchport access vlan 2
, n, a& Z4 r' w9 ?$ {7 S( `( w" n!& T  w0 F% O1 Y% E' s# h
interface FastEthernet0/28 a2 h1 |) v* p5 h2 h# u
switchport mode access
& U2 w/ o2 I% H& Z! S. V, Z% V switchport access vlan 2
0 P8 I( o* \1 l  i+ U!
+ ?4 e( N6 A& x: R$ Hinterface FastEthernet0/3/ |5 ]3 p  J2 v9 h: w
switchport mode access& E) Z0 ^. t' N7 O% H
switchport access vlan 39 M0 E1 o$ l; l( @* I8 \
!
* g. j' i1 E; G! n7 S7 h6 `6 finterface FastEthernet0/4
% n! M$ {1 f% d$ H; Tswitchport mode access5 A/ a/ Q) ]4 X! s4 l
switchport access vlan 3' I. U0 r% B9 J  K% s6 j
!" `% F4 N. H8 w1 a
interface FastEthernet0/5* d0 z/ ~8 y: r1 h5 R0 K
switchport mode access! |) k$ `, |* O9 ]
switchport access vlan 22 M) Q6 @* V: M5 R5 I. O
!- q# [( v/ [/ a5 X! Z
interface FastEthernet0/6
7 H* M9 Y* D3 r  }1 ~" f/ I& i: xswitchport mode access
6 W1 w' Q9 m- K0 }+ f switchport access vlan 2% R$ `) p* R" X# N0 X9 y+ G
!
1 V4 U) j" E2 [) ^  ~% _interface FastEthernet0/7
$ `; `- ~+ r2 u$ X2 C& H" q7 qswitchport mode access; A6 @& Y9 a- m
switchport access vlan 35 Y$ f* r  q' [  I5 v
!
7 J" O8 |: F& }$ P6 l8 [1 \1 qinterface FastEthernet0/8; z' a' a/ h& b& u3 d5 i
no ip address; [- R% i  U  ]
!
: U1 W( H0 O6 N/ S0 yinterface FastEthernet0/98 {- d+ H) O" s& z0 `
no ip address9 q7 s+ e( W! ~  H/ ?
!
$ k) n  z! z) d2 v) vinterface FastEthernet0/106 i& `) c: L& }  t$ c
no ip address
9 F1 F  [! q$ k# }, `* y5 \% d. i!
: ?5 |4 K! o0 @  P* s7 ]2 y' Iinterface FastEthernet0/11
) @$ W$ |) J" H# x. j/ Uswitchport mode access& [  `. F% L" \
switchport access vlan 3* N7 ?+ O; y5 m" Z" H& x" g
!
+ a: }) w5 i9 l7 g8 minterface FastEthernet0/12# Q3 A- W# C1 T$ ]# ^9 B2 e* l4 X
switchport mode access5 Z* `: o# S5 T
switchport access vlan 2
& |  r8 y# j, n; G  [!. X0 S0 V  N# Z! l6 x
interface FastEthernet0/13
, [- s& p7 K* O7 G" M! W+ Aswitchport mode access+ F3 b  c: @! Y! ?* i. R9 E2 X9 l* ^
switchport access vlan 3; J  t: d4 m/ J3 s/ a' I
!
5 g( M5 C. s# }" Rinterface FastEthernet0/14
& E! q' L  |7 O% U* q1 b' {0 H' \ no ip address
' W! Z9 R8 i7 m1 l: g!7 Q6 J0 n1 g# r, {8 z4 |' S# {3 i
interface FastEthernet0/15
& _7 ~. [6 |2 q8 ` no ip address5 Y) V4 I: n7 c. C* H9 A: v
!0 r# Y+ J0 v0 c! x& h( h- ?: h* E
interface FastEthernet0/16
3 i1 v" P3 U6 `! i! H$ }* o# O no ip address0 o* {( m- S: F' Z0 k$ `! T; C( C% S
!
- n7 F, Z4 ^$ e: w/ ~interface FastEthernet0/17
6 |$ w8 b& e3 {% \6 E no ip address
6 r7 G! ^2 Y9 I4 Z! Y  i!- T6 x( ^8 a8 g. l3 H' y
interface FastEthernet0/187 B6 g- T; G# g: \+ ]
no ip address
" L% _' [: O# m' o  X; C3 d% [: _!
; B: y# Z+ s+ Q6 E+ L, q( f3 Z9 Iinterface FastEthernet0/19# U# g' d9 D2 l3 G% C
no ip address. p+ k+ o  I. ]+ M# H7 U
!
$ ~! x! l; A+ A3 Z; K7 G( sinterface FastEthernet0/20
( L1 k6 ~3 J7 k; k& z no ip address6 f$ b: k" G! j& \: f
!' b5 A8 K; R% b- d. t$ J
interface FastEthernet0/21
" S( G! t, ^7 o, p4 ?9 |8 F9 i# t no ip address) [; u8 M3 ]! g
!2 p( a) A- R. B7 N# W: N! o1 r
interface FastEthernet0/228 o; r: B- t4 F9 W: B; w
no ip address/ w9 T$ L$ J4 D5 W- i- k
!3 D1 U; h4 H* b8 y
interface FastEthernet0/23
4 @" X' W4 Q' B# y no ip address6 P( O3 e% Z% \! p
!1 P& a6 N5 [3 U% G: m# R2 w* M
interface FastEthernet0/24
) _# |& \+ L( Q) q no ip address# T* l$ D  P5 H7 I, \% g+ r
!& U3 w! {" p, T0 Z
interface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]) I; V5 C) C7 X. n; X/ d
switchport mode trunk3 f5 W% _& L, L% P/ [' \; B
!5 K# Z8 P" n8 l4 }* g0 w2 i
interface GigabitEthernet0/2! o& S& q2 K7 G$ i# h/ P
switchport mode trunk
7 R( b9 @# A. a!) z9 x  g$ w  p' t! n
interface Vlan1             [[[ Vlan 1 = native Vlan ]]]& |# x! X. o" a6 U4 `& U
ip address 172.18.25.203 255.255.255.0
$ t( Y; J2 v" X1 O0 l; g!
0 M" L7 h; i) x2 minterface Vlan2% s) U9 P$ ?3 ]
ip address 172.18.25.203 255.255.255.0
3 z; ~6 T) E. a3 C* n% ]!
, T8 J9 t! Y6 j1 X( p& Xinterface Vlan32 j! c! D; @7 v  a- P
ip address 172.18.25.203 255.255.255.0' @7 a+ a* u% Z( y8 G& w1 @
!) I7 k* j& t* z. O$ d$ y
ip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]
- S" O$ M1 v) H# o6 C, p8 v!
! u" {. Y) y0 H/ v! @snmp-server community admin1234 RO
, d  U3 f4 r, |+ O: Vlogging 172.18.25.37     [[[ Set log server IP address ]]]4 t2 t- P8 {# ^
!
: I( h7 r" s, b$ j: yline con 0
" o6 H( [0 U8 Z: U3 c password XXXXX9 O; a: m. E( c( \$ M0 S* D9 a
line vty 0 4
0 `6 [+ w' N3 `" K5 k* [' fline vty 5 15
$ ~0 z' v* W+ J* o. c  j0 M+ J5 Z!
( ]7 V+ Y, ?) S( bntp clock-period 17179912             [[[ NTP = network time protocol ]]]6 D) j  d4 y0 {3 _; f! X6 V8 I
ntp server 172.38.225.218+ G& k! k2 c. t3 \. R2 W9 F( ~
end
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表