静态路由实验 +http+dns_华为静态路由配置实验
本試驗(yàn)主要實(shí)驗(yàn)靜態(tài)路由的三個(gè)主要特性
1、單向性
僅為數(shù)據(jù)提供沿著下一跳的方向進(jìn)行路由,不提供反向路由。如果要使源節(jié)點(diǎn)域目標(biāo)網(wǎng)絡(luò)進(jìn)行雙向通信,必須同時(shí)配置回程靜態(tài)路由
2、接力性
如果某條靜態(tài)路由中間經(jīng)過的跳數(shù)大于1(路由要經(jīng)過3個(gè)或以上路由節(jié)點(diǎn)),則必須在除最后一個(gè)路由器外的其他路由器上依次配置到達(dá)相同目的節(jié)點(diǎn)或目的網(wǎng)絡(luò)的靜態(tài)路由。(路由器各端口上直連的各個(gè)網(wǎng)絡(luò)都是直連互通的,因此之間默認(rèn)是直連路由,因而無需另外配置路由。)
3、迭代性
理論上來說,靜態(tài)路由的下一跳可以是路徑中其他路由器中的任意一個(gè)接口,只要能保證路由到達(dá)下一跳就行了。
具體配置:
dis cu
[V200R003C00]
#
sysname r6
#
interface GigabitEthernet0/0/1
ip address 10.1.3.254 255.255.255.0
#
ip route-static 10.1.1.0 255.255.255.0 10.1.2.254
ip route-static 10.1.2.0 255.255.255.0 10.1.3.1
ip route-static 172.16.1.0 255.255.255.0 10.1.3.1
ip route-static 172.16.2.0 255.255.255.0 10.1.3.1
ip route-static 192.168.0.0 255.255.0.0 10.1.2.254 #此處聚合性靜態(tài)路由 以及迭代性示例
#
return
------------------
dis cu
[V200R003C00]
#
sysname r4
#
interface GigabitEthernet0/0/0
ip address 172.16.1.254 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 10.1.3.1 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 10.1.2.254 255.255.255.0
#
ip route-static 10.1.1.0 255.255.255.0 10.1.2.1
ip route-static 172.16.2.0 255.255.255.0 172.16.1.1
ip route-static 172.16.10.0 255.255.255.0 172.16.1.1
ip route-static 192.168.0.0 255.
#
return
------------------
dis cu
#
sysname s1
#
vlan batch 2 10 100
#
interface Vlanif2
ip address 172.16.2.254 255.255.255.0
#
interface Vlanif10
ip address 172.16.10.254 255.255.255.0
#
interface Vlanif100
ip address 172.16.1.1 255.255.255.0
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 2
#
interface GigabitEthernet0/0/23
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/24
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 2 to 4094
#
ip route-static 0.0.0.0 0.0.0.0 172.16.1.254
ip route-static 10.1.2.0 255.255.255.0 172.16.1.254
ip route-static 10.1.3.0 255.255.255.0 172.16.1.254
#
return
--------------------------
dis cu
[V200R003C00]
#
sysname r5
#
interface GigabitEthernet0/0/1
ip address 10.1.1.254 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 10.1.2.1 255.255.255.0
#
ip route-static 10.1.3.0 255.255.255.0 10.1.2.254
ip route-static 172.16.0.0 255.255.0.0 10.1.2.254
ip route-static 192.168.0.0 255.255.0.0 10.1.1.1
#
return
------------------
dis cu
[V200R003C00]
#
sysname r3
#
interface GigabitEthernet0/0/0
ip address 192.168.1.254 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 10.1.1.1 255.255.255.0
#
ip route-static 10.1.2.0 255.255.255.0 10.1.1.254
ip route-static 10.1.3.0 255.255.255.0 10.1.1.254
ip route-static 172.16.2.0 255.255.255.0 10.1.1.254
ip route-static 172.16.10.0 255.255.255.0 10.1.1.254
ip route-static 192.168.2.0 255.255.255.0 192.168.1.1
#
return
--------------------
dis cu
#
sysname s3
#
vlan batch 20 100
#
interface Vlanif20
ip address 192.168.2.254 255.255.255.0
#
interface Vlanif100
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/0/24
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 2 to 4094
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.254
ip route-static 10.1.1.0 255.255.255.0 192.168.1.254
ip route-static 172.16.0.0 255.255.0.0 10.1.1.1
#
總結(jié)
以上是生活随笔為你收集整理的静态路由实验 +http+dns_华为静态路由配置实验的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql计算后精度增大_Mysql用法
- 下一篇: 导出mysql sql语句吗_mysql