日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

静态路由实验 +http+dns_华为静态路由配置实验

發(fā)布時(shí)間:2025/3/21 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 静态路由实验 +http+dns_华为静态路由配置实验 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

本試驗(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)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。