cisco設(shè)備基礎(chǔ)配置
cisco設(shè)備基礎(chǔ)配置
cisco公司制造的路由器、交換機和其他設(shè)備承載了全球80%的互聯(lián)網(wǎng)通信,成為了網(wǎng)絡應用的成功實踐者之一,那么你知道cisco設(shè)備基礎(chǔ)配置的方法嗎?下面是學習啦小編整理的一些關(guān)于cisco設(shè)備基礎(chǔ)配置的相關(guān)資料,供你參考。
cisco設(shè)備基礎(chǔ)配置1.前提配置:
en
conf t
no ip domain-lookup
line con 0
logg syn
exec-time 0 0
exit
host r1
cisco設(shè)備基礎(chǔ)配置2.VTP配置:
vtp domain domain_name
vtp mode server/client/transparent
vtp password password
vtp pruning
vtp version 2
查看VTP配置:show vtp status
cisco設(shè)備基礎(chǔ)配置3.VLAN配置:
vlan database (特權(quán)模式)
vlan 2 name caiwubu
exit
vlan 2 (全局模式)
查看VLAN配置:show vlan brief
cisco設(shè)備基礎(chǔ)配置4.VLAN Trunk配置:
swit trunk encapsulation isl/dot1q/negotiate (接口里面,封裝類型)
swit mode trunk
查看配置:show int f0/1 swit
cisco設(shè)備基礎(chǔ)配置5.以太網(wǎng)通道:
int rang f0/1 -f0/10
swit mode trunk
chan lacp;pagp
channel-group 1 mode on
exit
cisco設(shè)備基礎(chǔ)配置6.三層交換配置:
ip routing
no swt (改為路由接口)
ip helper-add 192.168.1.1 (DHCP服務器地址)
cisco設(shè)備基礎(chǔ)配置7.PVST+配置:
1.span vlan 2,4-6 pri 4096(倍數(shù)0-32768)
2. root pri/sec
span vlan 2 cost 150 (0-255)
span vlan 2 por * ()
查看配置:show span show span vlan * d
cisco設(shè)備基礎(chǔ)配置8.HSRP配置:
int vlan 2
ip add 192.168.1.1 255.255.255.0
stan 2 ip 192.168.1.254 (虛擬的IP地址)
stan 2 pri 150 (0-255)
stan 2 pree
stan 2 track int f1/0 100
查看HSRP:show stan b
cisco設(shè)備基礎(chǔ)配置9.ACL配置:
標準:acc 1(1-99) per(pre den) source(數(shù)據(jù)源地址)
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(協(xié)議) 源地址 目標地址 --
命名:ip acc stan/ext test
per/den host 192.168.1.1
定時:time-range mytie
per wee 8:30 to 17:30
acc ....... time-range mytie
查看:show acc
cisco設(shè)備基礎(chǔ)配置10.NAT配置:
靜態(tài):ip nat ins sou sta 192.168.100.2 61.159.62.136
端口映射:ip nat ins sou sta tcp 192.168.100.2 80 61.159.62.131 8080 extendable
動態(tài):acc 1 per 192.168.1.0 0.0.0.255
ip nat pool test0 61.159.62.131 62.159.62.190 netmask 255.255.255.192
ip nat ins sou list 1 pool test0 overload
PAT: acc 1 per 10.1.1.0 0.0.0.255
1.ip nat pool test1 61.159.62.131 61.159.62.131 netmask 255.255.255.148
ip nat ins sou list 1 pool test1 overload
2.ip nat ins sou list 1 int f0/0 overload
cisco設(shè)備基礎(chǔ)配置11.RIP配置:
router rip
ver 2
no au-
network 192.168.1.0
-----
cisco設(shè)備基礎(chǔ)配置12.OSPF配置:
router ospf 1
router-id 1.1.1.1
network 10.0.0.0 0.0.0.3 area 0
末梢區(qū)域:area 1 stub
完全末梢區(qū)域:area 1 stub no-su
ness:area 1 nssa
完全ness:area 1 nssa no-su
cisco設(shè)備基礎(chǔ)配置13.路由重分發(fā):
router rip
red ospf 1 metric 10
router ospf 1
red rip subnets
def-in orig (默認)
red sta subnets (靜態(tài))
red conn subnets (直連)
看過文章“cisco設(shè)備基礎(chǔ)配置”的人還看了: