當前位置:才華齋>計算機>網路技術>

cisco裝置配置基本知識

網路技術 閱讀(1.23W)

cisco裝置配置的.步驟大家掌握了嗎?相信只要按照下面的操作,一定可以達到我們想要的實驗結果,更重要的就是希望大家已經掌握了cisco的配置知識。

cisco裝置配置基本知識

  cisco裝置配置—前提配置:

en conf t no ip domain-lookup line con 0 logg syn exec-time 0 0 exit host r1

  cisco裝置配置—VTP配置:

vtp domain domain_name vtp mode server/client/transparent vtp password password vtp pruning vtp version 2

檢視VTP配置:show vtp status

  cisco裝置配置—VLAN配置:

vlan database (特權模式) vlan 2 name caiwubu exit vlan 2 (全域性模式)

檢視VLAN配置:show vlan brief

  cisco裝置配置—VLAN Trunk配置:

swit trunk encapsulation isl/dot1q/negotiate (接口裡面,封裝型別) swit mode trunk

檢視配置:show int f0/1 swit

  乙太網通道:

int rang f0/1 -f0/10 swit mode trunk chan lacp;pagp channel-group 1 mode on exit

  cisco裝置配置—三層交換配置:

ip routing no swt (改為路由介面) ip helper-add (DHCP服務器地址)

  cisco裝置配置—PVST+配置:

vlan 2,4-6 pri 4096(倍數0-32768) 2. root pri/sec span vlan 2 cost 150 (0-255) span vlan 2 por *

檢視配置:show span show span vlan * d

  cisco裝置配置—HSRP配置:

int vlan 2 ip add stan 2 ip (虛擬的IP地址) stan 2 pri 150 (0-255) stan 2 pree stan 2 track int f1/0 100

檢視HSRP:show stan b

  cisco裝置配置—ACL配置:

標準:acc 1(1-99) per(pre den) source(資料來源地址)

int f0/0 ip nat inside int f1/0 ip nat outside int f0/0 ip acc 1 in

擴充套件:acc 101(100-199) per(pre/den) protocol(協議) 源地址 目標地址 --

命名:ip acc stan/ext test

per/den host

定時:time-range mytie

per wee 8:30 to 17:30

acc ....... time-range mytie

檢視:show acc

  cisco裝置配置—NAT配置:

靜態:ip nat ins sou sta

埠對映:ip nat ins sou sta tcp 80 8080 extendable

動態:acc 1 per

ip nat pool test0 netmask ip nat ins sou list 1 pool test0 overload PAT: acc 1 per nat pool test1 netmask ip nat ins sou list 1 pool test1 overload nat ins sou list 1 int f0/0 overload

  cisco裝置配置—RIP配置:

router rip ver 2 no au- network -----

  cisco裝置配置—OSPF配置:

router ospf 1 router-id network area 0

末梢區域:area 1 stub

完全末梢區域:area 1 stub no-su

ness:area 1 nssa

完全ness:area 1 nssa no-su

  路由重分發:

router rip red ospf 1 metric 10 router ospf 1 red rip subnets def-in orig (預設) red sta subnets (靜態) red conn subnets (直連)