日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

結(jié)合實(shí)例講解廣域網(wǎng)路由基本技術(shù)( 三 )


Router(config)#exit
其他項(xiàng)目同“例一” 。
地址配置:
Router#conf t
Router(config)#int e0
Router(config-if)#description the LAN port link to my local network(端口說(shuō)明)
Router(config-if)#ip add 202.96.199.1 255.255.255.0
Router(config-if)#no shutdown(激活端口)
Router(config-if)#exit
Router(config)#int s0
Router(config-if)#description the WAN port link to Internet(端口說(shuō)明)
Router(config-if)#ip add 202.98.0.2 255.255.255.252
Router(config-if)#no shutdown(激活端口)
Router(config-if)#exit
路由配置:
Router(config)#ip route 0.0.0.0 0.0.0.0 202.98.0.1
(定義默認(rèn)靜態(tài)路由 , 所有的遠(yuǎn)程訪問(wèn)通過(guò)網(wǎng)關(guān) , IP為對(duì)端廣域網(wǎng)IP地址)
Router(config)#exit
Router#wr m
配置完成 。
這里是本網(wǎng)路由器配置清單 。
Router#sh run
Building Configuration...
Current configuration
version 11.2
service udp-small-servers
service tcp-small-servers
hostname Router
enable secret test
ip subnet-zero
interface Ethernet0
description the LAN port link to my local network
ip address 202.96.199.1 255.255.255.0
interface Serial0
description the WAN port link to Internet
ip address 202.98.0.2 255.255.255.252
bandwidth 128
interface Serial1
no ip address
shutdown
ip domain-name xxx.com
ip name-server 202.96.202.96
ip name-server 202.96.96.202
ip classless
ip route 0.0.0.0 0.0.0.0 202.98.0.1
line con 0
line aux 0
line vty 0 4
password telnet
login
end
Router#
實(shí)例3:使用Cisco路由器對(duì)大型網(wǎng)絡(luò)(例如ISP網(wǎng)絡(luò))進(jìn)行擴(kuò)容
當(dāng)然 , 設(shè)計(jì)治理大型網(wǎng)絡(luò)的路由非常復(fù)雜 , 一般都是由經(jīng)過(guò)高級(jí)培訓(xùn)的專業(yè)人士進(jìn)行 。而且 , 大型網(wǎng)絡(luò)一般都采用像Cisco 7507這樣的高檔路由器 。在這里順便簡(jiǎn)單講述 , 主要是讓大家開(kāi)闊一下視野 , 了解一下其他的路由協(xié)議 。
這時(shí) , 與例2唯一的不同就是路由配置 , 不能采用靜態(tài)路由協(xié)議而應(yīng)該相應(yīng)地采用非常優(yōu)秀的OSPF動(dòng)態(tài)路由協(xié)議并結(jié)合RIP協(xié)議 。
假設(shè)具體網(wǎng)絡(luò)參數(shù)如下:
項(xiàng)目 本地網(wǎng)絡(luò)
網(wǎng)絡(luò)號(hào) 202.96.199.0
子網(wǎng)掩碼 255.255.255.0
OSPF編號(hào) 100
OSPF域 202.96.192.0——202.96.207.255 , 16個(gè)C
那么應(yīng)該這樣配置:
Router(config)#router ospf 100(配置OSPF路由)
Router(config-router)#summary-address 202.96.199.0 255.255.255.0
Router(config-router)#redistribute connnected metric-type 1 subnets
Router(config-router)#redistribute static(通過(guò)OSPF協(xié)議廣播靜態(tài)路由)
Router(config-router)#network 202.96.192.0 0.0.15.255 area 0.0.0.0
Router(config-router)#area 0.0.0.0 authentiication message-digest
Router(config-router)#exit
Router(config)#router rip(配置RIP路由)
Router(config-router)#redistribute ospf 100 metric 1(通過(guò)RIP協(xié)議廣播OSPF路由)
Router(config-router)#passive-interface Serial 0(不在Serial 0上使用)
Router(config-router)#network 202.101.199.0(定義本網(wǎng)絡(luò))
Router(config-router)#exit
Router(config)exit
同時(shí) , 采用OSPF協(xié)議時(shí)應(yīng)該在廣域網(wǎng)端口上加入授權(quán)機(jī)制:
Router(config)#int s0
Router(config-if)#ip ospf message-digest-key keyword
Router(config-if)#exit
Router(config)#exit
Router#wr m
更大型的網(wǎng)絡(luò)會(huì)采用BGP邊緣路由協(xié)議 , 假設(shè)具體網(wǎng)絡(luò)參數(shù)如下:
項(xiàng)目 本地網(wǎng)絡(luò) 遠(yuǎn)程網(wǎng)絡(luò)
AS(自治域) 20000 4000
本地BGP網(wǎng)絡(luò) 202.96.192.0——202.96.207.255 , 16個(gè)C
202.97.0.0——202.97.15.255 , 16個(gè)C
202.98.128.0——202.98.159.255 , 32個(gè)C
 
互聯(lián)地址 202.100.4.2 202.100.4.1
則本地路由器配置方法為:

推薦閱讀