返回列表 發帖

Cisco 2960 設定示範

no service pad( o9 n: h7 r. i
service timestamps debug datetime msec localtime show-timezone
- {8 z0 E0 j. X! [1 X: Zservice timestamps log datetime localtime show-timezone
. L! z+ j/ p5 Z0 `: M9 F0 l- c7 Zno service password-encryption
; O5 B  q$ m2 P) a9 ]0 e!. S& W9 `, k# z! L* C
hostname MY_SWITCH      [[[ Set switch hostname ]]]
4 d6 [$ c6 _0 s( Y6 f!
' @6 E( x% k, W9 c1 I% i  X, Tusername XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw06 G) k  m5 x% N6 f" O  J' K
enable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1. m6 ?3 ]3 |) O" X/ C! k$ [
!. i) a1 r6 Y) @- t
clock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]
. `  e& g/ w" i! ~; K9 T!
- @. g. r- n7 b  Q$ ?. cvtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]( y; _' x+ k* ~$ P" Q* ^
!
8 K7 q6 U8 ^- tspanning-tree mode pvst2 f2 ^: C. m- V; ~+ J2 S4 \
no spanning-tree optimize bpdu transmission
( Z- ~6 i; D$ v" U3 `spanning-tree extend system-id; f. C$ `# x8 f7 q. w! I  M
!+ b% P9 i: o5 g3 u, n
interface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]
! e" M  F7 S: c! c8 \ switchport mode access* U8 t/ d$ k" Y% `
switchport access vlan 2
" t1 |6 c& t0 g- M% u# N3 g. c!
0 f) B* ?8 G; k6 f& T" ?' @* v- l& ~interface FastEthernet0/2
: n$ q, n, k& }switchport mode access! K* y- Q9 F5 J# n
switchport access vlan 2
; L  w$ Y  J) }( q!$ F: j8 f  k" W4 w: J
interface FastEthernet0/3$ I' \) {, D1 J% ~* R  F0 k: k  V
switchport mode access
4 U2 R6 W1 L. U; | switchport access vlan 39 {- l; Y& j8 K* k7 h
!- d* s& T: ]9 U8 ]
interface FastEthernet0/4/ c/ V! ~8 q0 V0 N5 {
switchport mode access
5 \% O- V+ i# a: {5 c( s switchport access vlan 3
+ t# l! _6 |8 x7 J- d* `: ?!
# ]! k; b& |& Winterface FastEthernet0/5
8 O+ ]. I9 i6 {4 ^5 Y! sswitchport mode access
0 E" A7 E% c  P( Y switchport access vlan 2- A2 h8 a0 c' q
!
6 G! ~+ C) U6 o  r' ?) Dinterface FastEthernet0/6
+ d- R1 Q+ g' X4 t- q% kswitchport mode access
& o* {+ _% R; e2 Q& b) q switchport access vlan 2
& t8 f6 q, z- t- ~- y' i9 ~!
0 e% ?  T. ~7 V$ Kinterface FastEthernet0/7
7 F; W/ `2 l: m7 p8 v% ?* R4 gswitchport mode access& ~* C% w, K) O9 t4 ~- f% j
switchport access vlan 3
8 D" S9 Z& W& B) @2 y5 @" W!& c+ d- p8 L) b( g/ e5 T( g, x. d
interface FastEthernet0/8: X( s& B7 \4 [' R2 }
no ip address3 q) R+ f  F* m' U/ _
!! \2 L. a) i, y$ r& T
interface FastEthernet0/9) O- F$ Z  [: s0 R
no ip address
' w8 W0 f7 J1 c) o!
% k5 D) j( r9 ~4 V( h) J# e% Finterface FastEthernet0/10
% G9 T  g- X" n2 i" G: Z no ip address) a4 @" G8 ?) ~9 x. U& w
!2 \6 t; B, ^9 `9 S4 }% p# g+ r* y
interface FastEthernet0/11
0 h# P9 W6 T, s3 c  x# P$ f% cswitchport mode access. G: e+ ~' K, m! T. d9 V) S  |4 [
switchport access vlan 3
( l/ @( i7 P0 U! N& d3 g# g. U( A  O!
) a* c% U+ }* t& Vinterface FastEthernet0/12# [' c  f+ A7 L) H& h) @5 v
switchport mode access7 U7 w- N0 m4 w: U$ D1 j. @
switchport access vlan 2
& p  u$ F7 V5 N- \!
6 m* j/ T& M, A. Winterface FastEthernet0/13
( I) X# Y* i8 }4 V9 I7 Z3 R: hswitchport mode access
: K! L8 k. w5 i# w" d& s switchport access vlan 3
' @2 R# F' I3 c/ Y8 R!
; ^' s# O. ^( T# U" R0 d' Rinterface FastEthernet0/14. a1 ]* z9 C9 Z
no ip address
( C( a0 f' ?' M5 D: u9 O!3 M7 w. X8 m  |
interface FastEthernet0/15
. Z6 Y, A1 L3 ?  v9 w no ip address5 b2 ]* c, s0 A2 l7 s2 C! i
!% s& r/ }+ T2 V# x
interface FastEthernet0/16& ^5 B/ ^; F9 s* m0 T. ]7 i
no ip address4 w* l: j0 U* x- k. W. X
!
7 M. g$ Q1 _7 Z3 J& i! ^+ jinterface FastEthernet0/17, O7 V0 g* p. R
no ip address
' {4 K+ z7 I* k, I; X, [* X!
/ S! n' z1 z( \" R2 \* I, h# xinterface FastEthernet0/187 @# D) X8 Z% n+ ~
no ip address  O/ U* c+ O$ I9 @9 Q
!5 @7 Y1 x7 B/ @. ]: Q& a
interface FastEthernet0/19, ~; O& e( M9 v
no ip address
( P* Z& x% ]. Q  ?5 i- f+ ]!
9 _& S3 r: u$ {* _7 ginterface FastEthernet0/20
7 S) f+ D* t2 b no ip address
! u! ~6 I7 F$ D!( P# y- Q( D4 i# i- c6 r/ l% i  `; l
interface FastEthernet0/21+ U2 V) _  P" ?% c
no ip address
/ G; h' `7 Z; [- W7 z  t!
8 H3 B! X/ g" o5 w/ O9 l8 i, `interface FastEthernet0/22! B$ k2 Q( R. l0 m! l
no ip address
! N, g) O4 v) M* x5 P9 s!
( u: e* A% O. pinterface FastEthernet0/23& N6 _" P( |) C! s! v" p, ]
no ip address5 u- |+ [5 N- s# d  J* C; }
!
# e' g  L- i- U, y: b8 Pinterface FastEthernet0/24% @% @# e; A) m* L0 O" C; }$ P
no ip address
- l% u' H9 ?' L1 {!
: _# ?3 }5 B4 h8 E4 D* @8 ginterface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]
- X  Q+ j. ?' n( @ switchport mode trunk
' G$ ~$ R  k1 k. d0 z0 ?' R!5 i5 ^# o7 ?& a' h6 K
interface GigabitEthernet0/2
& s# I( H# E0 x switchport mode trunk" j. i( h! i. V; z
!
% C% n! z& C3 \  M9 z2 O( z  dinterface Vlan1             [[[ Vlan 1 = native Vlan ]]]) J/ ?: U: z; }
ip address 172.18.25.203 255.255.255.0
* I2 u; B, C: e9 K, _!9 c/ R6 [# @) _
interface Vlan2
( F8 g3 s( ^; b ip address 172.18.25.203 255.255.255.0
# o/ ~6 j6 W% Q% w!
* S# n. A* |5 ginterface Vlan3/ C0 W" O7 F  z* y2 E
ip address 172.18.25.203 255.255.255.0$ }4 r) D# J1 _7 T, e& |
!
6 x1 e3 y5 c2 c0 C0 A) j6 zip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]. |+ V! i# b' K' U7 R* \, S
!$ R& Z$ j& `( ^6 r8 X$ [
snmp-server community admin1234 RO
1 ~5 u9 C' B, Plogging 172.18.25.37     [[[ Set log server IP address ]]]
6 U1 u3 a/ ]) s- M5 i+ F" h! r  J9 o) g!
& l: c2 g$ S8 ?5 Gline con 0
; A0 c( D( S4 |4 @ password XXXXX; `& U- D, W  q1 y6 ~+ h
line vty 0 4
% i6 F: v+ ~7 k  h8 I" rline vty 5 158 B6 j/ u' I- R5 [) y5 L
!
) o) K; O4 B% r7 ]; k  {: intp clock-period 17179912             [[[ NTP = network time protocol ]]]
/ V" @- H: ~) Z( |; w6 n: H  Mntp server 172.38.225.218# |! W( t8 d' f+ V9 o3 t
end
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表