返回列表 發帖

Cisco 2960 設定示範

no service pad
8 x4 H- N7 g3 F* }- Z/ F1 Kservice timestamps debug datetime msec localtime show-timezone
! r% {- c9 v+ Q3 wservice timestamps log datetime localtime show-timezone: k3 K, h" B0 S6 E/ w# Q$ }& z$ p
no service password-encryption( _" v' n$ S' k2 w8 K
!" X5 Q6 v' H* p9 T- n
hostname MY_SWITCH      [[[ Set switch hostname ]]]
, u1 H/ O! l; _( C9 I/ c" @4 R6 l!# p5 W& T  D) ?
username XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
( V% U* T1 Q  [, x  ^enable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1
1 R6 N; `" B( M1 g) _& }5 x, R!
- {% O9 E" N3 {' r, o& R. M: Uclock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]7 p; \' k4 _9 ~
!+ I/ [4 }6 A$ ^) [8 s9 N3 K) O
vtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]" R1 h& R3 [7 c7 m
!
3 [: a1 D9 V8 J- |% o$ p$ @spanning-tree mode pvst
4 C2 d, a7 h9 T8 ]no spanning-tree optimize bpdu transmission
8 k' r; b- f7 k8 R! l. o5 mspanning-tree extend system-id
& G5 O) K* J) F2 z!% z% X# q. Y% r
interface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]
2 s' }5 o2 b& q3 j9 s) e( H switchport mode access+ X; ?& C$ s, W6 I/ `
switchport access vlan 2
: B" C; m: \  F! y  h% Q3 m* Z!
9 U( Q1 f& b9 \! b# ~$ S; Cinterface FastEthernet0/2* T# t0 I! i, `& {. R" V8 R
switchport mode access% @- p* s8 N7 W. G; [* k
switchport access vlan 2( H& V0 F' q$ n7 V
!
  ~( y( i+ y: E# I4 Uinterface FastEthernet0/3  c  m1 h& B8 O) ~1 ]
switchport mode access- L( W: B2 l! H( ~! R' k: I# O
switchport access vlan 3$ S6 F# S( Z- Q: i: H3 i
!6 w4 B2 e; ?7 }# N+ D; O
interface FastEthernet0/47 p/ r. k8 ~: |" ]1 u0 A5 L/ h- A, J
switchport mode access1 H& ^: b# z% ?6 m* e! P, h
switchport access vlan 3/ a* |4 F( F7 q0 g+ f( x  ]. z, h
!% T& x7 w" u) P2 j. _9 t
interface FastEthernet0/5
+ h! q9 o1 r9 j$ W- r) \9 @. P% ]switchport mode access2 I5 z- o- v4 u9 R5 U/ S
switchport access vlan 2* \7 J# A1 Z& V/ v
!
5 a, ]2 o0 p- |3 ninterface FastEthernet0/6
5 j0 Q, X  ?. S5 r! _switchport mode access
9 P. T7 {8 f( q+ h1 Z# ~# c switchport access vlan 2
. s, r6 h! T' g5 l) I!
3 `( c" e+ ]9 z" I2 M3 J. q  dinterface FastEthernet0/7
+ Q3 O! P: u6 v; M' p& dswitchport mode access
4 l; e$ p  X* B( Y" a switchport access vlan 3& u! e3 F1 Q$ w
!% [& ]5 U6 ^  |: `  f
interface FastEthernet0/8
. C" b: ^4 e" N* i no ip address5 x1 \* q; J- _
!. a6 R% `' K1 O4 R
interface FastEthernet0/9
; G" p9 @2 F1 [3 V3 X* O/ P no ip address
, i9 S. Y8 {- u5 g' R6 ]!
3 W  F3 c$ M! G' I5 J' zinterface FastEthernet0/10
- E$ D. L: c3 Q( @, O0 F6 [ no ip address
5 ~' S# }+ z: O!$ k8 j9 k$ T% w  G: a- h1 w
interface FastEthernet0/11
, E* ]  a4 M6 ]1 Pswitchport mode access
. h9 q: v# m' r( O! c9 S+ X4 x! f$ [ switchport access vlan 34 w+ f$ f7 q8 l
!
0 W: f4 \, ]8 Y& @interface FastEthernet0/121 s, m" c+ _3 q% J2 y
switchport mode access
0 h9 A# |) y7 I switchport access vlan 2
6 t$ B0 L0 a: H& v: x2 s!
- k3 a7 S: {9 _. W7 t7 yinterface FastEthernet0/132 U. d, {9 X# D+ j1 o) _  ?
switchport mode access" V: M& a) ^' t8 y3 t7 h. I
switchport access vlan 36 T. v7 i6 R; `# g/ N$ J6 x$ Q
!' f$ T' a6 @. U& v8 V
interface FastEthernet0/144 ], p* j7 L5 G7 d
no ip address8 O% [- p% ?. Q1 P; a, v9 `
!# O. D! f& |' f" a7 q( p
interface FastEthernet0/15
7 k# h- u4 Q' Q no ip address  l/ k( y4 D& x; u8 V5 j) D
!' y( Y2 U1 f- {  n" `
interface FastEthernet0/165 b7 S! n: T* B" j) ^, z$ N
no ip address
$ Z1 J" G% k4 y( X2 y4 A: I( j!
. P$ k$ N% f" z. q8 |: O/ P0 h. N+ uinterface FastEthernet0/17
! y7 k2 ?9 ]! Y+ d  ~ no ip address
4 ]% Y' d2 R/ }8 v1 C!
- @& X" {" [( ointerface FastEthernet0/18* i1 U0 _( c6 r  l, J
no ip address
* y% N5 a% J6 P!
" p  p: B( y. J- p( Y) Xinterface FastEthernet0/19
  K  n8 }/ ]% ~ no ip address
6 n; K, g. j9 X9 V, y0 f!9 K9 o- i, S7 j. }5 O
interface FastEthernet0/20
9 r* i4 s3 j- i- G- t4 P no ip address
' Y: E, }" S8 S  y" O!
. p& {- X; r2 ^1 Tinterface FastEthernet0/21
( {. t( j, O# X no ip address( s2 a. W! [  A5 m- x3 p5 g
!
: Q' f7 i7 h/ Ninterface FastEthernet0/226 {6 a( X0 V' R
no ip address
7 ~# M! t, Y! V, {9 _/ ~( j3 ]) F!7 s# n4 \# L# F% c( |$ t
interface FastEthernet0/23
  \  ^; X+ j, ]: Y+ F no ip address8 R! a1 R  I! ]: W
!: b. {) v- {; p
interface FastEthernet0/24
! n8 u- Z/ G; Z" f! d- R* a1 z no ip address
( z$ |1 O- v0 e!, I% I; k7 @+ h- I0 u
interface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]1 k" l, g6 ^  [
switchport mode trunk' C4 L9 w7 f/ g2 D
!: `. m& f0 d; d7 J6 U  S
interface GigabitEthernet0/20 W7 d* v; o5 t) L  J& a& H6 c
switchport mode trunk
  m( \) a5 c5 ]  k! ?% i8 u!/ D6 M: R1 A% v6 }! G
interface Vlan1             [[[ Vlan 1 = native Vlan ]]]
+ f0 ]- }; c, i* r; |1 ~# U. ~$ s ip address 172.18.25.203 255.255.255.00 S0 a1 Z" h8 `: M2 E! g
!3 l3 N5 `( S* K( v# C. m' i5 }% d
interface Vlan2, C+ u. ~& a0 ^# h+ m! @; c
ip address 172.18.25.203 255.255.255.07 n6 G; W9 J! h0 t" w: w  f
!
' G% W+ Z" b; y: D* Kinterface Vlan3
3 H! d' {6 T) a7 ^' K0 h ip address 172.18.25.203 255.255.255.03 i6 K" d% m! l9 ]- M! i( ?' Y
!, \; `  E$ B0 x& ?
ip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]0 u6 c. @! p, X  q" _. n
!
& B+ ~' j: b( d$ dsnmp-server community admin1234 RO
; v# j* I# F: @& Klogging 172.18.25.37     [[[ Set log server IP address ]]]
1 A. I& y; q& U+ ]# S) F1 u!
0 o; Q, W! O- H1 Wline con 0* O5 ]1 J  @- g3 I; z
password XXXXX
  d# y% V( _6 a0 nline vty 0 4
7 l1 N9 {% J  W0 E. m: qline vty 5 150 C" P$ \; @" Q5 o7 [% ]! g
!
" |8 `2 \6 Y  K0 |/ Rntp clock-period 17179912             [[[ NTP = network time protocol ]]]
0 C! n2 y6 [9 M' j" entp server 172.38.225.218
) u' c& E4 S) X. `7 T5 D" P  J$ i# \( tend
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表