返回列表 發帖

Cisco 2960 設定示範

no service pad: q4 J, X" y% s
service timestamps debug datetime msec localtime show-timezone
% ?! |0 G! \: W; S2 H5 t. @% k. Hservice timestamps log datetime localtime show-timezone
" w2 M9 j$ v, K' B. j1 bno service password-encryption8 Y5 \' W: o1 ?0 n8 |1 ^; y
!
! A3 x: k! a0 Y! C: @% D, {9 ]hostname MY_SWITCH      [[[ Set switch hostname ]]]
8 K9 E8 D, E' C. ?% [; e!
! |+ l  X6 n, X5 T) tusername XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
/ T2 u) x3 B: D: k  A; E) F' O( g  `6 fenable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1
6 Z3 \4 \! F3 j  {!0 I+ _* N# X: p6 P. h! \
clock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]8 W" o9 b* Q" e
!
' `. H) K: c% l8 G* Kvtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]- G3 {% K0 X* b6 L7 E0 `
!
0 K3 z0 m# q* O6 d  ?6 K" Gspanning-tree mode pvst, w; e6 C. o/ V5 U8 J7 b% u
no spanning-tree optimize bpdu transmission0 p$ P% k+ i, R6 m5 E
spanning-tree extend system-id' h4 r& U% T0 L/ D, c
!
& |" A: _9 j0 t# Y+ X) \: j; ?interface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]
9 t. C% H( @" S0 f/ n& p switchport mode access" t( f7 g9 P( z: g/ w
switchport access vlan 2
. {) ^6 q9 h7 \7 G!
* t6 X/ A/ y: K* T$ K# T( Dinterface FastEthernet0/2
+ t) G' H1 ]& w! Q; gswitchport mode access
9 h2 Z9 a8 J$ Y' a, i switchport access vlan 22 `3 f, ^4 L7 U7 Y& @+ P
!
/ O/ }  {) `# x8 M8 Ninterface FastEthernet0/3* N4 v+ y& S- A: r5 H
switchport mode access# c* f* g6 d- [  c
switchport access vlan 3
. L, l2 v6 N; r" }# A!5 ]& X2 W6 z' Z$ {. }3 o
interface FastEthernet0/4: D: R" N) g' E9 ^! v3 E
switchport mode access$ a* t( Y' Y1 E- C
switchport access vlan 3: F! S9 D+ ^8 \, X- h( D' N1 |1 p
!
! b7 d) v4 U" p& ^$ Jinterface FastEthernet0/5
* Z0 E; [. k6 w2 ^. f. I$ Gswitchport mode access1 ]5 X% F& f8 S5 O# \+ s0 \
switchport access vlan 2$ y! q+ m9 |& _0 m4 V9 `9 c0 {
!
1 @+ T) r! e( N6 ninterface FastEthernet0/6
4 t* t1 D" x: Oswitchport mode access
3 r. [/ R, H+ `, }/ e1 C switchport access vlan 26 b; E; k  M. m: g' i( W1 j3 W, D
!
' {+ u+ \" d/ c/ `interface FastEthernet0/7$ }% a6 W! n9 c; t
switchport mode access
% u; x( T8 O, |* p2 x switchport access vlan 34 M8 O/ v5 \, Y" x4 U6 q5 l/ ?
!. O: m' ~# F( t8 h$ ~! H
interface FastEthernet0/80 w& [$ [1 c/ k/ b0 c6 c! ^  W
no ip address
/ t+ _1 c  d% g/ ?  ^!
; [, H! U( P- Ninterface FastEthernet0/9# H( U" u8 B, J; z" X2 i6 U
no ip address2 z8 |5 I2 s; T5 H
!' r7 j4 W1 k8 j/ m
interface FastEthernet0/10
! m4 e0 C  C; X# k, u1 u& ` no ip address6 `" s! c6 S. |4 d. L
!
' M( f1 O; i: X6 Z" l8 pinterface FastEthernet0/11
; s! A6 _  i. |: xswitchport mode access1 D! O8 w% x# z
switchport access vlan 33 ~* S* I; I1 Z3 K
!- U0 i* ^4 K: S/ K0 T6 `( B
interface FastEthernet0/12
" i6 J6 K% i8 l9 L& `: z) C7 ?: [switchport mode access
3 O- M- k; P: Q: j5 e( } switchport access vlan 2' K7 g& y! m6 G; p3 C9 q; w
!+ Z1 _/ j5 d& Z. u
interface FastEthernet0/13
9 \5 \1 d1 |  t2 q* N4 Uswitchport mode access
2 Z2 i% w" b- m, Z4 p switchport access vlan 3
3 D  ]! O9 C* v5 l& n!
8 I$ j: }! h4 a& Jinterface FastEthernet0/14! @2 j& K1 n8 E) D- |
no ip address2 c' \2 k2 P: v
!
9 v* }3 P0 ?; iinterface FastEthernet0/157 J/ @) b  t/ |' a
no ip address
7 @! r- N- I: c. \6 i6 a!
3 y8 E  B# d0 V% d- M$ T" ~) ainterface FastEthernet0/16% b4 _, c, d% k" ~2 t! ~0 a
no ip address
4 M7 Q  ~) ~$ \!
3 Q+ q& s( T9 binterface FastEthernet0/17
* y4 ]) x/ w8 e: ~ no ip address
9 I" U6 _7 O+ _" S* n!( b" e" j( ?4 i" t+ Q6 r, `
interface FastEthernet0/18
; d* g$ _& Y% d* m- r- h- N no ip address
2 K' ~9 {1 D0 Q' R6 T, S!
0 f# O4 D* d9 `* w1 x4 y9 winterface FastEthernet0/19
. G  `) A. X- F7 U, f no ip address
  G0 b/ o: B$ u; i2 z( d!$ [2 o# O- e# @8 j/ S
interface FastEthernet0/205 T% V" t& k& I* I
no ip address
( q0 B% t( k4 Q6 o6 d. Z2 S!4 e2 C& h$ ]' M1 f
interface FastEthernet0/21$ l  K! r+ N4 x9 n' G" ?9 n
no ip address
% q& m6 [& y6 [+ f% ~6 \  G8 r!" a0 o9 G! N1 P% j
interface FastEthernet0/22
2 Y: I: r/ \. O no ip address
& d+ S' l: y, |8 t!/ ^+ }2 r% P4 Y* u
interface FastEthernet0/23
! E" [- p/ O8 \ no ip address
& O- o5 Y- c$ n7 D& u!5 C1 X6 D' Y  @
interface FastEthernet0/240 G. x( U4 `( A* G+ j/ {8 W
no ip address/ T* S( O9 R! x- o
!/ S" v. s1 J" d3 M7 e: D3 E
interface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]
/ l5 o: Q6 d" ^" K switchport mode trunk
7 B- d4 a+ r+ R* }. n8 S!4 G9 b. f# c0 R1 N- d
interface GigabitEthernet0/2
. a# s) m  u$ L switchport mode trunk
) R2 Q* D: ?& I* }; T# z* x!
! R4 y- M2 F; ]) einterface Vlan1             [[[ Vlan 1 = native Vlan ]]]; f* m+ r/ y' S5 L( u
ip address 172.18.25.203 255.255.255.0, ^- S/ X+ w, x: M8 \4 w
!
/ R/ h* e! A; o7 b' O. o# tinterface Vlan2
4 o# a% {5 c1 m# C# b ip address 172.18.25.203 255.255.255.0
5 R8 c0 R# g. ^  b: z& R% H!
! S' {  q2 C, W8 E/ V* @interface Vlan3
# E" w, f3 k' [" h ip address 172.18.25.203 255.255.255.09 n: N  V* n$ [) g5 M3 A
!
8 p% c. Q6 @9 `5 Y5 h  N% eip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]: I" ?2 q& f5 m4 S1 q7 G- O" @2 {" ]+ |
!
0 T/ `0 E" U3 osnmp-server community admin1234 RO
) c& C7 a- G7 o& slogging 172.18.25.37     [[[ Set log server IP address ]]]4 ]! i1 g9 M- [6 Q
!, C3 T" N# ?) ^& R6 [
line con 0
" W: y. F( j# E' J3 C password XXXXX
0 K  ?4 i- G1 G& o5 p$ S( Kline vty 0 47 b* d1 A  K1 k+ y. J
line vty 5 15% o7 U2 `2 o" A) O
!
! ^- q. Q) C! G& d% v1 s( ]ntp clock-period 17179912             [[[ NTP = network time protocol ]]]
/ m% m3 K. l, R  w8 _ntp server 172.38.225.218
& d" n: }- B( f1 z9 g/ Cend
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表