思科路由如何配置
思科cisco製造的路由器裝置、交換機裝置和其他裝置承載了全世界80%的網際網路通訊,成為矽谷中新經濟的傳奇,那麼你知道嗎?下面是小編整理的一些關於cisco路由器的相關資料,供你參考。
思科路由配置的方法:
拓撲圖
實驗目的
配置IKE協商、配置IPSEC的協商、配置埠的應用、配置ACL訪問控制列表、PC1和PC3可PING通、PC2且不可PING通PC3
操作步驟
配置PC IP
VPCS 1 >ip 1.1.1.1 1.1.1.2 24
VPCS 2 >ip 2.2.2.1 2.2.2.2 24
VPCS 3 >ip 3.3.3.1 3.3.3.2 24
配置各埠ip 及靜態路由
Router>enable
Router#config t
Router***config***#hostname aaa
aaa***config***#interface e1/0
aaa***config-if***ip address 192.168.1.1 255.255.255.0
aaa***config-if***no shut
aaa***config-if***exit
aaa***config***#interface e1/1
aaa***config-if***#ip address 1.1.1.2 255.255.255.0
aaa***config-if***#no shu
aaa***config-if***#exit
aaa***config***#interface e1/2
aaa***config-if***#ip address 2.2.2.2 255.255.255.0
aaa***config-if***#no shu
aaa***config-if***#exit
aaa***config***#ip route 192.168.10.0 255.255.255.0 192.168.1.2
aaa***config***#ip route 3.3.3.0 255.255.255.0 192.168.1.2
aaa***config***#exit
aaa#config t
配置步驟:
aaa***config***#crypto isakmp enable
aaa***config***#crypto isakmp policy 1
aaa***config-isakmp***#hash
aaa***config-isakmp***#hash md
aaa***config-isakmp***#hash md5
aaa***config-isakmp***#encryption 3des
aaa***config-isakmp***#authentication pre-share
aaa***config-isakmp***#exit
aaa***config***#crypto isakmp policy 1
aaa***config-isakmp***#lif
aaa***config-isakmp***#lifetime 10000
aaa***config-isakmp***#exit
aaa***config***#crypto isakmp key 123 address 192.168.10.2
aaa***config***#access-list 101 permit ip 1.1.1.0 0.0.0.255 3.3.3.0 0.0.0.255
aaa***config***#$c transform-set benet ah-md5-hmac esp-des esp-md5-hmac
aaa***cfg-crypto-trans***#exit
aaa***config***#crypto map zixu 1 ipsec-isakmp
aaa***config-crypto-map***#set peer 192.168.10.2
aaa***config-crypto-map***#set transform-set benet
aaa***config-crypto-map***#match address 101
aaa***config-crypto-map***#exit
aaa***config***#interface e1/0
aaa***config-if***#crypto map zixu
aaa***config-if***#exit
Router#config telminal`
bbb***config***#hostname bbb
bbb***config***#hostname bbb
bbb***config***#interface e1/0
bbb***config-if***#ip address 192.168.1.2 255.255.255.0
bbb***config-if***#no shu
bbb***config-if***#exit
bbb***config***#interface e1/1
bbb***config-if***#ip address 192.168.10.1 255.255.255.0
bbb***config-if***#exit
bbb***config-if***#exit
bbb***config***#ip route 1.1.1.0 255.255.255.0 192.168.1.1
bbb***config***#ip route 2.2.2.0 255.255.255.0 192.168.1.1
bbb***config***#ip route 3.3.3.0 255.255.255.0 192.168.10.2
bbb***config***#exit
Router>en
Router#config t
Router***config***#hostname ccc
ccc#interface e1/0
ccc***config-if***#ip address 192.168.10.2 255.255.255.0
ccc***config-if***#no shut
ccc***config-if***#exit
ccc***config***#interface e1/1
ccc***config-if***#ip address 3.3.3.2 255.255.255.0
ccc***config-if***#no shut
ccc***config-if***#exit
ccc***config***#ip route 1.1.1.0 255.255.255.0 192.168.10.1
ccc***config***#ip route 2.2.2.0 255.255.255.0 192.168.10.1
ccc***config***#ip route 192.168.1.0 255.255.255.0 192.168.10.1
ccc***config***#exit
ccc***config***#crypto isakmp policy 1
ccc***config-isakmp***#hash md5
ccc***config-isakmp***#encryption 3des
ccc***config-isakmp***#authentication pre-share
ccc***config-isakmp***#lifetime 10000
ccc***config-isakmp***#exit
ccc***config***#crypto isakmp key 123 address 192.168.1.1
ccc***config***#$c transform-set benet ah-md5-hmac esp-des esp-md5-hmac
ccc***cfg-crypto-trans***#exit
ccc***config***#crypto map zixu 1 ipsec-isakmp
ccc***config-crypto-map***#set peer 192.168.1.1
ccc***config-crypto-map***#set transform-set benet
ccc***config-crypto-map***#match address 101
ccc***config-crypto-map***#exit
ccc***config***#interface e1/1
ccc***config-if***#crypto map zixu
ccc***config-if***#exit
ccc***config***#interface e1/0
ccc***config-if***#crypto map zixu
ccc***config-if***#exit
ccc***config***#interface e1/1
ccc***config-if***#crypto ma
ccc***config-if***#crypto map zixu
看過文章“
1.思科路由器基本配置教程
2.cisco思科路由器設定
3.如何檢視Cisco路由器的配置資訊
4.思科路由器配置特點詳細介紹
5.思科Cisco路由器的基礎配置知識
6.思科如何配置ACE
7.cisco思科怎麼配置無線AP
8.思科路由器配置命令大全
9.思科路由器配置命令
10.思科路由器怎麼進入 思科路由器怎麼設定