返回列表 發帖

Cisco 2960 設定示範

no service pad% Q, p8 A  h5 v: P1 A4 @* K! ^
service timestamps debug datetime msec localtime show-timezone1 m0 m3 M, b7 [3 s! X4 F* i
service timestamps log datetime localtime show-timezone
0 _; `  S6 X; r4 Nno service password-encryption& W$ P3 ^* r: m
!  q2 H5 J0 C6 W( F4 ]2 H
hostname MY_SWITCH      [[[ Set switch hostname ]]]
; i" N+ `4 Q$ Z4 A( Q!
* C- K2 k" |3 u. _) z- Rusername XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0: u9 e7 b& s2 h2 s
enable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1. e: h3 X! l4 @8 p, N, k. v
!
  K. ?4 `& S2 n1 W( B7 Y  H. n) Nclock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]
' Z# W) M( F+ w!/ B7 q" e- ^2 a; `
vtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]7 I# k! s5 `1 M0 v' Q
!
9 V7 y6 j- ]# q0 `spanning-tree mode pvst; v/ w6 B: B. w4 y1 z3 o! k
no spanning-tree optimize bpdu transmission; S; R5 h+ Q1 n
spanning-tree extend system-id
( r5 C- k2 I- K( ~- P. J!
4 K3 P% }  k9 h0 Finterface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]
/ `6 _) [( i2 P; Q8 m switchport mode access
% R7 z  b6 m; \. [/ ]7 h' M7 G! d; Y6 y. { switchport access vlan 2
* r2 j: ?3 r( q) O, Z!
5 |: M; `6 c/ G% e" {interface FastEthernet0/2
; F( q7 A! O$ n- N2 Y% r# Sswitchport mode access3 N$ @; z2 x  S+ X/ n, W. E
switchport access vlan 2
. e! _8 Q: x) o4 P" V!) R9 d+ {' O% Q/ r7 }
interface FastEthernet0/3
# O% K. Y1 N) I( }; lswitchport mode access2 S4 p: h& x( T
switchport access vlan 3+ L0 V5 x! ~/ d' d
!
. P( K: p6 b. ?6 J, L6 x  |" ~1 cinterface FastEthernet0/4
5 c( @+ b2 G/ F* H4 g3 y2 Tswitchport mode access
7 w* [" n. d' o9 D+ A, { switchport access vlan 3, y' l: ?; r1 @# n
!
% k) r+ ~( y" D% }* j; C  linterface FastEthernet0/5
  v; p+ T  l2 W3 `8 ]1 ~& p4 Zswitchport mode access
1 B5 ]) L$ z! U" A+ x switchport access vlan 2
5 a# ^2 n4 A0 |0 j7 x!, x- f0 Y3 [* Y* E  z  N
interface FastEthernet0/6
8 E0 J5 R/ Z3 C7 d& h$ ]" Hswitchport mode access
  \( n3 W1 S. u4 y switchport access vlan 2
* I7 U7 n  c' m* \6 G!
9 z# d  [' K! a; Uinterface FastEthernet0/7
& w# [# X- Y' g+ [; xswitchport mode access1 q7 s2 u, b* \5 ~' o# ^) S
switchport access vlan 3, l* y- N7 Y8 n' i
!
, u. r/ ^) l0 V4 E7 l5 K7 ^interface FastEthernet0/8
! S1 K' C" D" C& _2 { no ip address
# z, r+ n. x$ d!8 s2 D1 @% x) i# g# Y, u3 I
interface FastEthernet0/9: I2 d9 B) Q* x
no ip address
, m" X  N' k: T& r!3 w  Y. R& o) w4 d  V$ ^' v
interface FastEthernet0/10
8 V# X% a4 y$ N8 F/ D2 ?9 `0 |9 B no ip address
2 @) u# G5 }9 w$ y5 K; R/ c) G% _/ Y!0 S0 V2 W3 K. }& x; z8 e: H
interface FastEthernet0/11
1 R9 e; c) R6 j8 p0 M4 Qswitchport mode access# c6 a& j- g4 o! n: b
switchport access vlan 3
% ?1 [7 D( \; j4 E" Y; c- J!
7 H) s: v" M2 {6 Y" L( P! N( Vinterface FastEthernet0/129 h3 K) u3 O5 u; M8 j% s* U3 `
switchport mode access1 I, f' K' i  i) Q$ |) }
switchport access vlan 26 ^: P1 V+ V* Z% z( ~; Q
!
% D0 L0 S' s8 ~+ I* ?interface FastEthernet0/132 K6 d; x# o$ B3 |3 |& X: _
switchport mode access
5 o6 \: Q. o$ ~2 ]" s( o* B switchport access vlan 35 ?8 }# L$ N) |% D4 ~9 e( m% y
!# H6 S$ j- h7 j5 q6 \- k& `
interface FastEthernet0/14. f; L" M# f& r8 w
no ip address4 M+ ^' D& u! v+ ?1 t* J
!. l7 u# S3 c5 i1 |6 s, c
interface FastEthernet0/15
% P8 [7 t1 ?% k no ip address1 W, x: p* |8 J' G) @
!& g0 E1 J& H5 Y$ v; ^+ n% W
interface FastEthernet0/16
  y/ x, E1 O+ K no ip address$ g, T) K1 B4 t
!) k1 y3 C6 |( ]  r0 {/ Q5 m9 x
interface FastEthernet0/17
! X5 c& ^4 y( z3 O3 i  l no ip address& b. a( z: i' c, V1 _
!& G* @# o" g7 j2 M
interface FastEthernet0/18
& o4 h1 x. ~+ t  Q1 [ no ip address0 g$ o1 i3 w5 k& y" |# `
!- ~- y5 H& H* ?9 K: }. q( Y
interface FastEthernet0/19
( j7 H- d- X0 H8 k0 b) z: R no ip address
& @4 E/ }! Y& N" [: r!
! k+ \# |7 g0 E  T) Pinterface FastEthernet0/20
, h- V# v4 W4 a8 Q# Z( W" F no ip address  @/ t4 V7 D: [$ {6 o
!
9 [( Y9 a+ Z: U9 T+ C9 Ainterface FastEthernet0/216 M& ^7 m% m. V' |7 }. |9 S
no ip address
7 a6 t, ^( G* s4 T1 ?3 ?* U7 G!
/ j, i! K" H% L+ [interface FastEthernet0/224 y! q* f& S  h6 D
no ip address
4 b1 d/ e6 f0 i8 R!
* L1 v5 _, Q2 L* p% ^, Minterface FastEthernet0/23
) }+ Z& M- D) ~  e+ B9 e no ip address2 G, k  f/ }9 M4 x
!+ l7 @" f! S! @8 }6 Q
interface FastEthernet0/24( w4 q  |+ B1 w# h- Y7 ~2 n3 _
no ip address
  r& @& y- i8 w5 A7 J!" {; ]9 b* b$ H4 `8 z1 ^0 S
interface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]
- `, @! M9 ?4 K2 L switchport mode trunk  S, p7 E, P1 \8 j) ?9 ?3 X( C
!4 l) ~  b" }+ T
interface GigabitEthernet0/28 [8 T8 j8 T, |# m5 l; C) {) ^
switchport mode trunk% i8 J4 ]5 c3 f. y0 D) W# d: F" R  d; E9 b
!
8 A5 _$ G( J8 J8 f$ U! k9 binterface Vlan1             [[[ Vlan 1 = native Vlan ]]]3 Z$ ?% s( D+ w. a% d* W  [
ip address 172.18.25.203 255.255.255.0
, J) u' C8 Q; L. r!
% L. g* u9 J( d8 X' ginterface Vlan2
% a' \1 j1 g( R( Z ip address 172.18.25.203 255.255.255.0
$ K6 n: D5 E, t( |9 ]# w( ^!# Z0 Q4 E) b! g& x  `
interface Vlan3
1 S% K5 T: ?  o4 } ip address 172.18.25.203 255.255.255.0" G( `9 e* ]3 c2 l1 z
!
# |, Q( y8 B' G" oip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]
" b* Z$ s" `' i% v; W7 U; _  r!5 F: |+ l/ W* Q6 V: Q& \
snmp-server community admin1234 RO+ S# ^  C1 y0 Q4 ?; g& R# ~
logging 172.18.25.37     [[[ Set log server IP address ]]]
3 f# \( P; D6 M* w& g6 ]!. C( w$ C: g  i) P: \: t
line con 0) E" e' \: j/ u- H6 G
password XXXXX; @# O4 m% f. I3 [
line vty 0 4
# P) J# a9 J# j) \, D  q9 \; Vline vty 5 15
2 X& u8 O% i9 q3 o5 y: X!: U' Q, [# D+ P! N; v2 \8 F
ntp clock-period 17179912             [[[ NTP = network time protocol ]]]2 b) m' {. ?3 G. b" ]5 H9 F
ntp server 172.38.225.218
* h- I4 {3 t$ C+ R1 t4 _0 Fend
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表