返回列表 發帖

Cisco 2960 設定示範

no service pad
& y2 p6 I$ G. E# ]" ?service timestamps debug datetime msec localtime show-timezone0 \3 Y% M( |  |+ G
service timestamps log datetime localtime show-timezone% p* x' n1 Q% }. v+ T6 |
no service password-encryption
) f4 ~0 B( j' f8 ^: ~- c!
2 W6 S! o# _; U& ?) \1 Q) M* T3 Hhostname MY_SWITCH      [[[ Set switch hostname ]]]! s: G$ h2 C, K% y7 L
!
7 n. G; U/ [2 X: k* d* l/ A/ a- _username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
! |" \# F$ U. D8 U+ {$ _2 x( benable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1% Y- x4 X% d- \/ G! c
!4 r0 g4 m4 @, ]$ \. }6 n3 t+ r
clock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]2 P  i  S. k. N4 O# d/ _. h
!( @/ G* C: t# C$ t6 S1 v' y+ V) j: h# V
vtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]% `% p0 a) t( A& K
!
9 `6 t/ }4 J! }+ g, L+ ospanning-tree mode pvst
  o  ~. r5 y  Zno spanning-tree optimize bpdu transmission
# {3 a% }9 e) Z9 c- w- W# y& Ispanning-tree extend system-id
7 L# n  @& J; r8 g) C!
; o/ _; ?% ?+ R1 x' f" Z) k, yinterface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]3 Y2 q+ c2 U. ^4 F6 v
switchport mode access
% n- M! N$ C$ s9 p' @ switchport access vlan 2$ s" E8 O7 c1 K1 r! g4 d
!
1 H! m1 k9 g! L  g+ ointerface FastEthernet0/2% V: q, q- D% c+ k- P. G
switchport mode access
+ }$ }% K# C9 a& U switchport access vlan 2
; p; U( d& ?2 T; p% z" Y6 i+ ?+ p!. u7 X- p1 {) x: M9 n9 f
interface FastEthernet0/35 B2 Q' `. E! I# W+ g2 N( D
switchport mode access
  W% x5 k. \3 W: V9 M switchport access vlan 3
0 x5 e3 Q# W8 G+ b' h!
7 H3 N. O! h& m5 V& t9 `interface FastEthernet0/43 [" J/ d( _; ]( U/ r
switchport mode access; f2 ?- H4 n8 n  x' @3 W; s
switchport access vlan 3
# J5 B- L  f# K. Z0 h2 d!
/ P; {( a; M' u" sinterface FastEthernet0/5+ M: W/ G1 q& \& |" s
switchport mode access7 z+ b& a% e+ Z% n. _, z
switchport access vlan 2
) _% G+ Z1 b0 u2 r!
, h. Y4 _5 ^, U9 v: p- ]interface FastEthernet0/6
, P; g% j' V7 Y* v; P  K# c% }" j( [switchport mode access% S- [- v& p  ~; D
switchport access vlan 2
" k( A' p4 k5 N6 U# A  _!5 A" g# ]7 t- e- R' L
interface FastEthernet0/78 L6 N$ e; P  m0 l; X0 F0 T
switchport mode access. w3 [9 }" ^' S* M+ q
switchport access vlan 3- L0 J7 K+ G- j
!
. a/ O; G% r( O4 ?5 _5 o% Rinterface FastEthernet0/88 V6 o5 @5 a. `7 |. m# v7 Y" D
no ip address
( g$ d" |& f  J!. W: V, k: h  X) B9 o' c+ y% u  `
interface FastEthernet0/9
6 K% [4 G" c* @( ^ no ip address, F& H! x7 Y5 x3 y$ D( @
!
, d& ~0 X( d- Q  i1 [0 _* xinterface FastEthernet0/10
0 V$ h# T  e! M; C- t9 q+ K no ip address' f& _/ W+ V+ j' ^6 e
!/ i  A4 w- @' g& _+ w* P/ G
interface FastEthernet0/11
7 N# h5 |! h  u& Rswitchport mode access5 N. E$ d3 R8 X  @. M% p
switchport access vlan 3" I( c5 C/ F% u* f/ S6 j8 q0 j
!
8 e1 z! d7 ^5 E/ K% ainterface FastEthernet0/128 [( H2 b- Q' {: v- m7 o# [
switchport mode access
8 Z% g0 U- y, Y$ R switchport access vlan 20 o; j- F6 p% b1 |0 ~% S9 x
!
( \- I" K+ I6 y/ U6 {" xinterface FastEthernet0/132 D2 z/ z) `' b1 G3 K( Q
switchport mode access5 A* }3 s2 ~. C: d- L% Z$ }+ h
switchport access vlan 3- S# R# {7 g* @
!
  Y& J# d3 R. }' B- c6 X6 @interface FastEthernet0/14
9 Q/ s9 o8 X& W: ~* p no ip address- f! V8 J& a$ ?- c$ A
!* s. P- z# W6 i7 C9 @
interface FastEthernet0/15
. U4 v3 w! k/ z! Y no ip address8 w' U8 t/ f. K! k7 H: g
!
1 {" O' S" x1 ?interface FastEthernet0/16
6 s5 P* N  J8 Q/ i& i no ip address
' y4 M( Q5 y1 x  _  }5 R!+ `; b  A9 J0 i: o- B
interface FastEthernet0/17+ u' ]+ c! {9 s: R
no ip address
1 F; o, K0 ]. |" `1 e!
' s$ G1 E7 q  t' k+ Kinterface FastEthernet0/189 P5 m! u6 X- T1 t2 f( |! T
no ip address
  i5 `/ S9 O) ~9 i7 ~. C1 V!, ^6 C# @( U  T' {5 P
interface FastEthernet0/19% W' g- q3 W6 ?8 q
no ip address
4 k0 l" |+ g4 [% _1 p( W0 [!
! n( ?0 r0 d/ `( C4 Vinterface FastEthernet0/209 @: y1 }! ^: L6 C4 ~8 Y
no ip address' ^* R9 N2 D- p, p' G
!! {6 `- e" m! o2 ?1 x1 Q1 \/ n( |
interface FastEthernet0/21
. r9 a8 A- P" b2 R  r* H no ip address
6 R% c9 G7 ~# L) o!
9 S+ y; \7 m6 r  `; w* M2 Z+ iinterface FastEthernet0/220 _' h5 {- W9 |2 l0 I
no ip address# Z. z& O0 i! a4 g" H. V
!
' {6 y3 K/ C8 u3 Z8 d$ o1 g+ ^1 m+ binterface FastEthernet0/232 j$ g$ H/ F0 ^
no ip address& _" a( h. H; w. q# Y
!
! Z, U/ i! P  q+ B. [5 w8 Ninterface FastEthernet0/24
5 G  P2 k8 j0 s& q# I$ p" S no ip address
% G5 |& A# t: A" g# ]!+ Y. _" [6 L$ j, s  w9 a
interface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]
3 a- o  N3 q4 y4 _7 c+ x& C switchport mode trunk0 j8 A, o6 Z# q& P
!8 n4 f4 d. u1 g
interface GigabitEthernet0/2
4 }9 c3 c5 F, W$ o switchport mode trunk
7 x! ~, G2 K6 I* `3 H$ H! B, J2 h!, [' o3 d( g" w: Z2 C6 L
interface Vlan1             [[[ Vlan 1 = native Vlan ]]]
/ ^$ R+ x* j! c( M0 \ ip address 172.18.25.203 255.255.255.0" E9 K. I) }/ t: }( `
!
; F. t7 w' @/ z4 _6 F) dinterface Vlan2# h$ B9 @7 M# X8 T5 {: ~/ H  |: `& ~
ip address 172.18.25.203 255.255.255.0& l3 I$ v( Z! S8 V
!
) x6 L9 X9 j1 V+ D# s; ]& l  {4 Tinterface Vlan38 E2 H% u4 f' k  @& f
ip address 172.18.25.203 255.255.255.0
' |) ~0 t+ v$ A. T( r" i$ M5 [!
. ~1 w/ I, Z3 D# n: s8 w# U4 e* Oip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]
) \$ Z; w8 {- J; {% ^6 w!
9 Z5 _1 ]9 Y  V8 |snmp-server community admin1234 RO" @7 X( J, u: N! s
logging 172.18.25.37     [[[ Set log server IP address ]]]
& `8 R/ K; U1 [9 V, o$ p!
6 B7 ^4 x4 r9 E4 N( `line con 0
2 s. }3 Y# K1 [8 C' v password XXXXX" ~8 k2 K; Y. }1 L# B" L) ?6 T
line vty 0 4
1 Y( h: U' i9 r$ Hline vty 5 15
9 p  A% S! U: h; g+ B!
; r1 O: m1 u& vntp clock-period 17179912             [[[ NTP = network time protocol ]]]0 D3 J" l  n# G0 W1 }' a1 {
ntp server 172.38.225.218- m* t! G4 Z) |( ?: `! r
end
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表