返回列表 發帖

Cisco 2960 設定示範

no service pad# G$ y9 h' x4 M# U
service timestamps debug datetime msec localtime show-timezone
! a. k' N- o, ^' ?+ D, D0 E, Xservice timestamps log datetime localtime show-timezone2 C; H6 F- m8 J( b1 x3 K
no service password-encryption
  V. d. Y" ~$ p$ ?& b8 k  u% ^!6 f& x. U9 G0 x5 T! r
hostname MY_SWITCH      [[[ Set switch hostname ]]]
6 b" E$ V9 p+ O. e!
3 H3 C% q% n6 M& S. P7 musername XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
/ J* {+ {/ g* U8 M0 y( K& Penable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1
) s% g7 Q/ D' i9 p!
0 z) B3 K9 r9 f- _+ W! K1 P% I- Yclock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]
4 Q! c5 }- G2 L8 z  {6 M. ]!  W( ^' n/ f8 I3 Z8 t
vtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]8 D9 b2 }  ~0 q1 O& F9 d. I# i
!3 _, l4 t8 \( K+ o; K
spanning-tree mode pvst
6 v/ P! e( r) \' v. U" n" Fno spanning-tree optimize bpdu transmission4 q) H3 C6 ]5 e, _. F! p3 ^
spanning-tree extend system-id5 t: O1 ~1 h! p9 v; L( K9 H  L9 A: D
!
  m$ b" O2 X! c' \0 binterface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]* t/ G( a' D, s3 N' x2 ]
switchport mode access2 t6 ^+ R/ H6 r
switchport access vlan 2
$ q! d+ N+ `) e( Y!
5 X+ V& O% S( x! E  [interface FastEthernet0/2
6 b) e0 p; u+ @6 gswitchport mode access
4 X' {0 P1 t* }3 v% f) S" n5 R switchport access vlan 2
8 q3 }" W( J" P' e  ]0 M!
2 J- b4 i# v$ {* finterface FastEthernet0/3
$ J3 a. ^0 Z! qswitchport mode access
: V( \6 S" B$ H% G$ D switchport access vlan 3
; E) ^; w1 n- I, C8 A0 ]! c9 _/ W% I!6 A& C- {2 l( d; b; Q: o' ]# P
interface FastEthernet0/49 S: }2 g2 _; c' w
switchport mode access
* p' n% h: z; X9 q* g( s switchport access vlan 3$ N6 i- i; h' b/ ?5 @+ @
!
. R! ^& R* S) W9 m. f# N$ ginterface FastEthernet0/5
" l, J/ y2 B1 f$ o5 b6 yswitchport mode access
& r8 b7 ^) w% a; u7 t, ~ switchport access vlan 2
3 A9 W/ o+ X: v- p!+ o' u( M& h+ s# \
interface FastEthernet0/6" M' N- c4 Q; h+ J2 M
switchport mode access5 g3 q9 k6 y7 {
switchport access vlan 2! Q/ `0 w, i9 M$ \' s& x
!3 f1 W( `' O5 G- L+ [
interface FastEthernet0/72 j: V# i& U; `  A8 m9 I
switchport mode access8 |( L  g' V" c/ Z/ {* X# m7 r
switchport access vlan 3  a5 Z; H6 M0 Z8 q3 g0 V
!
& I6 f/ d% N2 tinterface FastEthernet0/80 M' U5 x8 n) T5 n0 v1 D
no ip address
8 Z: Z( q* v7 o0 R; O+ J/ u! h!
3 q; L# U- J; T2 pinterface FastEthernet0/9) g* V/ Q5 t, G- Q6 U9 ?" n# I
no ip address
# R% p; n6 |$ r$ M! M!
1 h+ t, v, c" h4 binterface FastEthernet0/10
" Y: O- d" _9 S4 y! N no ip address
( ?1 S* a) L' |3 [!1 m* i2 k! x/ G6 O& X- b5 l  e1 x
interface FastEthernet0/11
; b& `. q- t4 g' O; {* _6 \" ~! lswitchport mode access! O* D7 ^! k/ U1 I
switchport access vlan 38 f$ O; m8 r- ^  w7 P$ U0 s0 c" U
!
( |$ K/ n% N$ L% y2 n8 Finterface FastEthernet0/12
) |! g$ D% Q# [switchport mode access
) W- U# k1 |( l0 g! l8 `* K switchport access vlan 2
8 z6 o" X8 w* v. ]8 ], B' \!% m9 [+ l# \& C. z( [
interface FastEthernet0/13
0 Z8 @3 p# B, Cswitchport mode access' B0 x" C% y) A( M. _( l
switchport access vlan 3
% e* W+ c; F+ s# {- y4 N) L: R+ H# e!8 U( F" g1 H; f, y* m6 n
interface FastEthernet0/146 G, K' V/ B3 i; p- O1 f9 d
no ip address
9 F5 d8 e. b( ?% I!
: s! J8 l% {# }  v$ f7 o6 p1 Qinterface FastEthernet0/15: l" c% W  s/ `" a" w
no ip address
9 G# w# ]1 A: b; _( I; s!
0 P( C1 s5 N1 p: W  K. ]+ m+ A  Iinterface FastEthernet0/16
/ B0 [" h: c9 x0 }% z no ip address
, \/ q7 v+ P! j& D; {!
: l" c* Y0 c8 K1 b! f' Dinterface FastEthernet0/174 {1 d) }. U/ T( X
no ip address
! [& ^) A% ~- l' x( I& O  {' j7 Z!! r- X0 c# D, [+ r
interface FastEthernet0/18
" e2 Q( K& Z3 |/ T5 J no ip address
3 W5 B( w& w: W# t0 M% {  x6 s7 L!
5 f: l) F8 V# S8 T' |0 i( @interface FastEthernet0/19
) i% O( x# x3 E9 I/ l; Q0 k5 P no ip address
6 a  {  M' R4 Y9 [3 e!. N3 z! E# W9 o2 D% e. N( s
interface FastEthernet0/20
3 i% U) q& _3 y- z& x$ f5 ~ no ip address/ D, d/ \6 k/ @- c
!
; O2 g0 Z' b3 P$ @0 {$ S3 m1 o/ p! einterface FastEthernet0/218 b6 ~, g3 Q, a7 u: R& z* f+ Y0 \
no ip address' K. o' s  v. W* r
!
* N7 u2 x4 r  w+ Yinterface FastEthernet0/22& A9 ?' n, u& U5 g) M4 }2 ^+ ]
no ip address$ j7 `2 X( E+ J' S) E9 x9 ?) j
!
6 z9 E" k; I* a3 u6 h' `4 y6 Cinterface FastEthernet0/23
( }. j7 ~( d- J. k1 r9 \/ ~ no ip address
  h, z( U( `; t( U1 x% l" M" E7 Q!
9 v% e& h7 |* j* t# G) W% x6 ~interface FastEthernet0/24
" v; f1 c, n' T  K no ip address
6 T/ d, l, s  W. |* ^/ g3 D# H!
$ v  J5 ~+ E8 `- ?$ ?interface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]
: S1 l1 f' Y1 H" }; u2 n' g( l9 W switchport mode trunk+ f- O2 G2 ?% l8 g6 o  C
!1 {: c/ x$ r1 ~2 L
interface GigabitEthernet0/2# B) N2 @! f( n1 h
switchport mode trunk2 l2 D) x5 C1 I5 {0 O3 }
!
# _. a3 i9 h+ g( Binterface Vlan1             [[[ Vlan 1 = native Vlan ]]]- c: d4 Q. K- y
ip address 172.18.25.203 255.255.255.00 Z, |/ n/ M' N0 h2 I
!3 g( T2 E9 c1 B
interface Vlan24 r& Y# w& t, ^- S4 e. z- A) }  T
ip address 172.18.25.203 255.255.255.0; p, E% H/ s0 T3 `% N3 k
!9 t9 L0 L9 n4 p1 W
interface Vlan3
+ ]/ C8 K" ]+ e ip address 172.18.25.203 255.255.255.0
$ |$ \6 Z, O9 c1 |( f, o!
5 m$ v5 C4 b% t5 O: D, Wip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]8 g7 i- H7 ~7 P2 ~" {% H/ z# `& j
!& _2 d) ]3 t9 ~8 n7 R! j
snmp-server community admin1234 RO. q- n/ i- p0 W
logging 172.18.25.37     [[[ Set log server IP address ]]]7 ?! p6 l  v  `. z& i6 c
!* p8 h4 z% l7 _4 v- j+ u- W
line con 0
' t: |* i" e' P7 W! M password XXXXX: [  x$ L& y; I4 e- I
line vty 0 4
3 l$ V" x7 {; U: e; |6 Tline vty 5 150 T" r; t. l  k5 i. d: R. o
!- ~1 q. E7 s3 c, h& H( D$ B( B
ntp clock-period 17179912             [[[ NTP = network time protocol ]]]- M( X; q' a# r; e
ntp server 172.38.225.218
- P0 T$ B0 r$ F# [* }% ]) J  K' w4 Zend
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表