返回列表 發帖

Cisco 2960 設定示範

no service pad
% C& o" O+ t6 V& f+ Q( tservice timestamps debug datetime msec localtime show-timezone6 R4 \) P2 W5 r9 {& b: y
service timestamps log datetime localtime show-timezone
( \8 Q. d5 @) A. m+ `no service password-encryption
" J7 s# M* B6 j! T. ~!3 u9 r. \0 K/ x. h) N1 C
hostname MY_SWITCH      [[[ Set switch hostname ]]]4 E& ^5 Z/ O  U: ~! R" y
!
" h: ^1 E. `) iusername XXXXX secret 5 $1$i/aq$6gVcvlv2b7H6cLeDUGnhw0
# l- ^5 G0 ^; m1 x2 \( R4 Menable secret 5 $1$4KgT$eQ0xNzP8Q5lTdtLm/hFHJ1
! @2 o+ p6 X* c  M; i!
9 c8 W1 u" u9 Z5 z- bclock timezone HKT 8      [[[ Set Hong Kong Time Zone ]]]: _9 d8 s% ]/ V/ d
!
' J8 u/ z  n0 R1 ]8 A0 z: hvtp mode transparent               [[[ VTP = Vlan trunking protocol ]]]* V$ d* ^7 B* d6 v
!
' R+ {/ o* C/ r1 _" Wspanning-tree mode pvst
' G6 x7 B( O* Ino spanning-tree optimize bpdu transmission5 O: E, ~# A% g( z0 P
spanning-tree extend system-id0 r+ w$ a) ~* M' Q5 f. g
!% N6 w. x6 ^1 a; }3 Z+ q1 j2 Y
interface FastEthernet0/1      [[[ Set access port in certain ports to allow certain Vlan ]]]
6 a$ Q6 g3 k: C8 D; B switchport mode access
5 r0 l. H5 z! O switchport access vlan 2
7 f) h4 v& }5 ?- Q8 q. i$ S!9 E1 t* M6 r: d2 A- X! ]7 ~" r
interface FastEthernet0/2
9 I' Z/ ?' z5 M1 d/ t8 ^0 z6 kswitchport mode access3 K. M% P* `  A/ T. ^4 Y) t
switchport access vlan 2
8 h% K3 r2 g8 c2 a. I!
/ q! z- M! a, v" P4 K( zinterface FastEthernet0/31 s$ `2 r0 V+ i
switchport mode access
; _0 d: B& {- c$ N( x switchport access vlan 3
' \* z0 g4 n- Z2 U/ q) D4 L!% A$ C/ a% j1 H: L6 [0 F+ g1 ?8 o
interface FastEthernet0/4
, C: L' _* v* N/ t4 I. U  \switchport mode access0 X  E4 |0 {6 H! u
switchport access vlan 3) d8 k% k5 e; W/ f. x0 G. H- Y
!
6 G7 ^; X( M/ Iinterface FastEthernet0/5: l4 v9 {8 r& M
switchport mode access
5 R9 o6 W  ^- P switchport access vlan 2& x+ r! i) j8 \: Y
!
) `4 Y: H" o7 u/ L4 a( `- l% }- G- {interface FastEthernet0/6
1 r) j* s- ]. u* ], H! Uswitchport mode access
! Z0 ~4 R3 Y: U: F( Z3 ^  g8 y5 a switchport access vlan 2+ z; f" y: G, E1 K4 T* J% s+ h
!6 S  c& X$ ^  r
interface FastEthernet0/7
$ T! ?8 R; \; p9 D; q# O% R; f" i$ Tswitchport mode access/ x& }: n' D) b* @( j
switchport access vlan 37 w& Z& z, n* s7 j- w
!( g$ C: {; S- @
interface FastEthernet0/8
; l- o! g: l( L* S$ n no ip address/ t5 H8 a: }. t' j% l
!: i5 X  g3 `# C, g$ U9 @7 [$ P
interface FastEthernet0/9
( L. s/ F* C3 K6 G8 j* q" z' p no ip address5 z0 Q% V$ F( |8 _$ _
!! m. s. j8 a8 C& ~" q( Y' l4 C
interface FastEthernet0/10+ F2 L+ e4 }9 L; T# W' w
no ip address
; X, m' Y; b0 c1 A5 p!
( I$ f. L: i0 Einterface FastEthernet0/11
8 R& H+ W8 O( e' H( A9 ^: `switchport mode access
3 K+ h+ `! q" p switchport access vlan 3  I) m6 F2 c0 J; I
!, f2 \# l9 \, Z# t
interface FastEthernet0/12$ g9 x2 R6 `$ P5 A" h& s$ Q
switchport mode access* E* x4 f/ \, h: Z# M- |! z+ }3 g
switchport access vlan 2+ U$ I# V" c9 o; [
!5 Q4 F/ \+ V' D; V( q6 Z  }6 m
interface FastEthernet0/137 X0 U' h  q& T" j& w
switchport mode access
  c. c% z# u: I0 @; }- s switchport access vlan 36 _2 Y* p7 I! g) n
!# S& s5 W- L5 V- z; E( y
interface FastEthernet0/14/ x# V& G, j7 V) W& j% |7 J  f
no ip address
7 U# V; W6 P7 X! X) B/ J2 |!
2 s2 e$ F7 {5 m0 s, j$ Winterface FastEthernet0/157 P2 W3 u/ ]5 V3 x0 \7 W
no ip address4 l2 B& ^6 A8 Y. h7 |" A
!5 N# D5 H7 w8 N! k/ [: J7 [2 ~
interface FastEthernet0/16' e. g; w: ^$ y* Q+ R# j9 |
no ip address
* H# w  w2 B: w( j* F2 P!
" B8 \; ^% G+ f" I" ?* C8 ~9 l2 Y& |interface FastEthernet0/178 v! D: B4 f0 b$ @
no ip address" c- e$ r/ k/ `/ \" ^
!* V' q3 ], h  Y# J
interface FastEthernet0/18
' ~. ]& \5 p0 \9 e- L no ip address6 V1 G) p% {4 f, {) v  D
!& }6 J8 e9 X8 v3 V8 L1 X5 w, z
interface FastEthernet0/19
0 k4 _5 [7 ~2 n4 q6 Y no ip address
4 K9 r0 @7 u# ?( j0 R) a!
6 A; j' z' ~2 P- ^interface FastEthernet0/20
, N0 a5 q; U" z+ ^- ~- c/ b- ^ no ip address  A$ i, w  l# @( Z( ~
!6 P) G4 j# e- a& P5 E
interface FastEthernet0/21& h7 a* ]1 w5 X9 |' ?8 |& L
no ip address" ~6 Q$ S: q0 @
!
# J5 f) }5 D0 N% g; w3 ointerface FastEthernet0/22
' [0 N% E3 ^4 D. V/ p no ip address
$ p( @( m: q9 U. E!) Z1 B" X4 ~6 W# H$ l; c4 S
interface FastEthernet0/23
% t+ G6 g. w' O8 y, e. |5 e no ip address
9 r+ z  b; f7 t& c: I6 }!
0 c3 W" @% \; ?" Binterface FastEthernet0/24
5 e. \1 h+ V9 m" `) B no ip address
4 b' X- q1 o. X! ?4 B!& [' v- W  d( m2 K" ~$ d3 \
interface GigabitEthernet0/1    [[[ Set trunk mode in uplink ports  ]]]4 m! |4 x8 @5 g" x
switchport mode trunk+ [' D( s, i' E" m/ Y2 p2 r8 f
!& x! f3 u- j  ]& u7 W' y
interface GigabitEthernet0/2% ~( c4 }% X9 B: [; C4 i
switchport mode trunk( I3 L3 d; G- {6 K
!" ]" K5 ?1 d5 T7 u/ {! t# |0 g
interface Vlan1             [[[ Vlan 1 = native Vlan ]]]9 O7 C4 Z( x0 U; R6 J9 G8 q& w
ip address 172.18.25.203 255.255.255.0) Y, u8 W' k5 w% Z2 v4 }) P# l
!2 j- m; y" |" g* @9 U
interface Vlan2
% k2 \0 \- l  ^+ b& \9 R" h ip address 172.18.25.203 255.255.255.0
! C% w  z% x( H1 N: n!
' z' V$ I0 ^) d: [) K+ V  rinterface Vlan36 Y% @2 G- q( z$ x( q) v
ip address 172.18.25.203 255.255.255.0- ]& k0 [- a7 r* e
!' z+ {& `. O9 M, X
ip default-gateway 172.18.25.44        [[[ Set gateway IP address  ]]]]
4 H  r; ^% D" H* O, Q/ y/ l  s!
) w' v: s" K8 V  |( B3 n" U8 |2 Nsnmp-server community admin1234 RO
1 G" o. D/ F' A, B; Xlogging 172.18.25.37     [[[ Set log server IP address ]]]. d( g+ |  h4 {5 k
!
* u& h2 W4 D  G4 O' e- ^: _line con 0
# n2 C, z, c" {* P: l& k& {/ G password XXXXX2 Q' ]0 x) h, K4 e6 l3 T
line vty 0 4: H! B( b. c* Q1 b3 Q
line vty 5 15
6 ~% ?) E. K, Z1 [1 h* K!
1 g9 _' Z9 N% }; @0 [% }+ wntp clock-period 17179912             [[[ NTP = network time protocol ]]]
) {8 n1 O# |- P2 t) z6 qntp server 172.38.225.218
) |4 v5 y! i& @end
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

返回列表