返回列表 發帖

Cisco 2960 設定示範

no service pad
0 P$ B3 l& @2 K& u& uservice timestamps debug datetime msec localtime show-timezone
; @, y; _* B+ Bservice timestamps log datetime localtime show-timezone" U& k7 z) c' B; u) t
no service password-encryption. T9 I& O% {; s7 C% l
!
2 ~1 M7 M; ?4 r: [& lhostname MY_SWITCH      [[[ Set switch hostname ]]]5 y" }6 M/ N( p: Z, e: h
!
3 X/ F7 F( f9 V( \' uusername XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
8 c5 s7 q* d; e+ v+ }! w( A1 nenable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1
% M7 F/ q4 e, T+ N8 d- U" g9 k& m!' x3 I( m0 k. h$ A! u
clock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]
! H. F" f. ^4 B!- q# T* G6 i8 \/ G3 f0 H
vtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]8 V# ^! F4 Y0 q2 f
!
, F  g- B% ]; K! Hspanning-tree mode pvst
4 G+ x5 M; Y" f2 Z% c: b5 ^no spanning-tree optimize bpdu transmission( ~" W  E+ H# P
spanning-tree extend system-id& G, m/ f, T- N# K; b2 U
!8 c  z8 F' o: k' p! w
interface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]
% U" W1 n: o' x) O4 Q switchport mode access
# W# `( j8 a/ V3 h, B- v! S7 Y switchport access vlan 2
- _& G1 k7 T! I; H8 v$ H- A!
) C+ _2 S5 Q9 ^! K, U: F0 Kinterface FastEthernet0/2
8 A; @$ a/ C2 v9 ?0 Wswitchport mode access
+ u- y: R8 v8 {. b4 q# x0 |9 p switchport access vlan 2
( X) Z0 a8 j7 D. e!6 Q* s8 y- d: a: E4 J5 l6 v) J
interface FastEthernet0/3# F1 B0 ?: g, K$ G8 _$ ~2 Z
switchport mode access" U' }$ I3 q# r/ N) G, H
switchport access vlan 3- Y4 g' I( g7 }# x
!8 g1 }! P& [, T& C4 T
interface FastEthernet0/4
6 S# _8 G5 c- Y7 c% Oswitchport mode access
9 v6 ^$ n' r7 Z/ y3 {: R switchport access vlan 3! c$ I# W$ ^2 K5 k( f1 R! o3 m+ f
!% V$ {! L+ y+ j8 @6 ^& K! a0 G
interface FastEthernet0/5+ b* Z( z3 z+ J. e
switchport mode access* t3 E4 b' K* R7 _+ h" ~+ Z
switchport access vlan 2& K( n5 b" r4 ~3 ^
!4 E  [+ B* M( K6 W5 u5 n6 Y! }
interface FastEthernet0/6. W! S8 P3 C, P3 ?
switchport mode access1 s9 L; e- Q, }2 I
switchport access vlan 2+ ]8 i) n5 f. b! ?& T) I, Q
!
. K. h% X) y! |- Y5 U' \interface FastEthernet0/7. `7 L" `' ?, {* h7 g
switchport mode access
& d! {) _; d- P( Z5 j0 Z$ y8 c switchport access vlan 39 b! \$ w4 S6 ^9 B4 W1 S
!
4 l$ H& K" R0 a3 P$ G7 binterface FastEthernet0/8
  ]' _2 k. K# i1 w; M$ e no ip address
. r3 k* B( t+ H!
0 m0 C! S. m2 s! s1 Uinterface FastEthernet0/9
; H9 y$ }! I. o" l! k no ip address; r2 F* q  X1 o" O4 w
!
0 m+ w- D9 s' P& Tinterface FastEthernet0/10' E# ^7 Y/ A& a, B% `6 w) v( }
no ip address
, g* k) P( \- S) B!
% t' c7 {! E+ }3 Q5 I) z( ointerface FastEthernet0/11
$ D1 \2 O% N2 E0 W6 j: i# Zswitchport mode access
7 A4 C# z9 p3 G; p switchport access vlan 3- N9 H3 i. W' ?7 h% M7 {4 y
!, F+ E, Z- |# @6 s& m8 L6 y6 O9 A2 n
interface FastEthernet0/122 U( l: M& Y) w) M
switchport mode access
' f. h- Q( p3 |: K% a) s switchport access vlan 2" F- |  b+ _& j% L
!
' s% w( N: Q) ]( `2 m" A! yinterface FastEthernet0/13
- t5 F/ E9 r9 Q% T8 yswitchport mode access
4 s- q4 S; S8 ]' A9 i; x; \0 m switchport access vlan 3
" m# G* g/ k0 D2 s3 X& U!' e/ D9 `) D: f& Q) k3 k" o$ e& x) J) i% N& ~
interface FastEthernet0/14
: N- a) x; E6 O$ |2 L. C. g  g3 w# c no ip address+ ?7 f9 R* V8 A; g
!5 Z- v0 I: w! A! p' c
interface FastEthernet0/15
: n( f  K7 H. ~; ^* n no ip address
+ B4 ]) G+ @& q3 I0 L2 o1 P7 z6 y!
! ]7 I5 F; x" }, ^' Y  B4 D8 |interface FastEthernet0/16; {! O4 i, A! z; R
no ip address: H; ^2 ]2 X0 T) S
!  K# ]- S8 x; `8 w
interface FastEthernet0/17
. t0 T* ]# t6 j: H* j no ip address
! T/ Y5 f+ g; C!
3 n0 Z, N* Z9 m5 ginterface FastEthernet0/18' t& V9 y+ ]$ c( w  ?) }
no ip address
: B( _5 z" c/ q# V1 `!2 D# \0 o5 c; K6 a0 L7 C: t- t+ t
interface FastEthernet0/19; W3 x4 t" F; h2 q
no ip address7 v" E4 [; h, [( r6 I7 q
!
( G  k" F8 p- {% f2 w( L8 Linterface FastEthernet0/206 ]# c( u5 j' a6 L6 d/ R
no ip address) [" D9 q' V) c$ c3 i- v
!
" V. `9 A* z9 @9 p4 |( dinterface FastEthernet0/214 L4 d0 {$ P0 d  q6 j
no ip address4 Z9 J5 K! k0 h4 |( S7 A
!- k3 C& z3 O0 V3 A# I4 S# q6 f! g, ~, ^4 T
interface FastEthernet0/225 P' }- r6 h# \" c. |
no ip address
8 d* _! R3 U4 A2 s# }; A7 B6 E5 L!
) X6 z2 i, [9 c( Binterface FastEthernet0/23
/ ~% B1 Q! W2 e  Q2 u no ip address
. e# {+ V' R3 R+ }1 A" W  R* c8 D!
; ]8 f! g0 p( A+ m( sinterface FastEthernet0/24# ]9 v7 L% {5 W# ?5 Q$ ]( n
no ip address5 `& d5 U7 i. _% H6 Z
!5 m6 r  J, ]9 l: s% F. U6 H
interface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]
) q. f/ Y& _6 v9 X switchport mode trunk
  Z' N3 X$ Y* D5 z) n!
, b2 I. {* ~1 p( T( T4 @; s9 Rinterface GigabitEthernet0/2
9 h3 W6 ?' Y7 {6 {7 W) y* W9 u switchport mode trunk
% S$ X5 z7 T1 q; `, n: l!
. B. a. ?$ y+ Q7 E, a" iinterface Vlan1             [[[ Vlan 1 = native Vlan ]]]
% P6 F8 A0 x' X6 w# a8 Y ip address 172.18.25.203 255.255.255.0
4 ]0 \: t0 y; b4 d/ _- C!/ ~; K, }3 k) d6 S* Q! G! i
interface Vlan2
- v" x! w4 {" D) P* W; \ ip address 172.18.25.203 255.255.255.0  B( {( T7 ^# j' n: H
!
7 z3 k3 b9 Z- cinterface Vlan3
/ Q1 F: K: J. u ip address 172.18.25.203 255.255.255.0% a" D' A' e/ C3 D1 @4 ]' Z
!
% T: y" s6 r( Q' l- f8 lip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]; `- `6 p1 H& t# F. f! M1 r; s
!
( ^! n" X1 E0 x7 fsnmp-server community admin1234 RO
( W9 @0 D* T9 X8 \8 B$ N, ilogging 172.18.25.37     [[[ Set log server IP address ]]]
* R+ i8 W: v% i7 Z/ I!. D$ e# W) O" i. B! u
line con 04 Z" r6 T0 K* S, I3 b4 M, i" ]
password XXXXX
; z- K9 l* \: a! N  S2 ~line vty 0 4; j" Q! Z4 n- O! g* |; D, @7 R9 J
line vty 5 157 [4 ~" a( |7 i
!: ^, m2 c% q' L& \
ntp clock-period 17179912             [[[ NTP = network time protocol ]]]
1 x2 N; ]( g1 s; q6 sntp server 172.38.225.218
& t5 f2 D% X7 W1 k. Pend
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表