亚洲精品中文字幕无乱码_久久亚洲精品无码AV大片_最新国产免费Av网址_国产精品3级片

網(wǎng)絡(luò)技術(shù)

三層交換VLAN路由配置技巧詳解

時(shí)間:2024-10-15 11:41:44 網(wǎng)絡(luò)技術(shù) 我要投稿
  • 相關(guān)推薦

三層交換VLAN路由配置技巧詳解

  在華為三層交換機(jī)上創(chuàng)建VLAN,端口劃分,三層VLAN接口地址配置,靜態(tài)路由或是RIP協(xié)議配置。跟小編來(lái)學(xué)習(xí)一下配置過(guò)程。

  靜態(tài)路由配置過(guò)程:

  PCA:ip address:10.1.1.2/24 gw:10.1.1.1/24(VLAN2路由接口IP地址)

  PCB:ip address:10.1.2.2/24 gw:10.1.2.1/24(VLAN3路由接口IP地址)

  PCC:ip address:10.1.3.2/24 gw:10.1.3.1/24(VLAN2路由接口IP地址)

  S3526A和S352B之間的互聯(lián)網(wǎng)段為10.1.4.0、24

  分配S3526A VLAN4路由接口IP地址為10.1.4.1/24,S3526B VLAN4路由接口IP地址為10.1.4.2/24

  三層交換機(jī)配置

  創(chuàng)建VLAN,把PC劃到特定VLAN中:

  //創(chuàng)建VLAN

  [S3526A]vlan 2

  //把端口劃到VLAN中

  [S3526A-VLAN 2]port ethernet0/9 to ethernet0/12

  [S3526A-VLAN 2]vlan 3

  [S3526A-VLAN 2]port ethernet0/13 to ethernet0/16

  [S3526A-VLAN 2]vlan 4

  //交換機(jī)B的配置:

  [S3526B]vlan 2

  [S3526B-VLAN 2]port ethernet0/9 to ethernet0/12

  [S3526B-VLAN 2]vlan 4

  配置各臺(tái)PC的網(wǎng)關(guān)地址和交換機(jī)之間的網(wǎng)段地址:

  //進(jìn)入VLAN接口配置模式:

  [S3526A]interface Vlan-interface 2

  //配置三層VLAN路由接口地址

  [S3526A-Vlan-interface2]ip address 10.1.1.1 255.255.255.0

  [S3526A-Vlan-interface2] interface Vlan-interface 3

  [S3526A-Vlan-interface3]ip address 10.1.2.1 255.255.255.0

  [S3526A-Vlan-interface3] interface Vlan-interface 4

  [S3526A-Vlan-interface4]ip address 10.1.4.1 255.255.255.0

  [S3526B]interface Vlan-interface 2

  [S3526B-Vlan-interface2]ip address 10.1.3.1 255.255.255.0

  [S3526B-Vlan-interface2] interface Vlan-interface 4

  [S3526B-Vlan-interface4]ip address 10.1.4.2 255.255.255.0

  在二臺(tái)三層交換機(jī)上配置非直連網(wǎng)段靜態(tài)路由:

  [S3526A]ip route-static 10.1.3.0 255.255.255.0 10.1.4.2

  [S3526B]ip route-static 10.1.1.0 255.255.255.0 10.1.4.1

  [S3526B]ip route-static 10.1.2.0 255.255.255.0 10.1.4.1

  查看路由表,查看網(wǎng)絡(luò)互通情況:

  [S3526B]display ip routing-table

  Routing Table: public net

  Destination/Mask Proto Pre Cost Nexthop Interface

  10.1.1.0/24 STATIC 60 0 10.1.4.1 Vlan-interface4

  10.1.2.0/24 STATIC 60 0 10.1.4.1 Vlan-interface4

  10.1.3.0/24 DIRECT 0 0 10.1.3.1 Vlan-interface2

  10.1.3.1/32 DIREC T 0 0 127.0.0.1 InLoopBack0

  10.1.4.0/24 DIRECT 0 0 10.1.4.2 Vlan-interface4

  0.1.4.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0

  127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0

  127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0

  RlP協(xié)議在三層交換機(jī)上的配置

  1.繼續(xù)上面的,刪除前面配置的靜態(tài)路由。

  [S3526A]undo ip route-static 10.1.3.0 255.255.255.0

  [S3526B]undo ip route-static 10.1.1.0 255.255.255.0

  [S3526B]undo ip route-static 10.1.2.0 255.255.255.0

  2.配置RIP協(xié)議:

  //交換機(jī)B上啟用RIP協(xié)議

  [S3526A]rip

  [S3526A-rip]network 10.1.1.0

  [S3526A-rip]network 10.1.2.0

  [S3526A-rip]network 10.1.4.0

  //交換機(jī)B上啟用RIP協(xié)議

  [S3526B]rip

  [S3526B-rip]network 10.1.3.0

  [S3526B-rip]network 10.1.4.0

  配置完成即可實(shí)現(xiàn)網(wǎng)絡(luò)互通

  查看路由表,查看網(wǎng)絡(luò)互通情況:

  [S3526B]display ip routing-table

  Routing Table: public net

  Destination/Mask Proto Pre Cost Nexthop Interface

  10.1.1.0/24 STATIC 60 0 10.1.4.1 Vlan-interface4

  10.1.2.0/24 STATIC 60 0 10.1.4.1 Vlan-interface4

  10.1.3.0/24 DIRECT 0 0 10.1.3.1 Vlan-interface2

  10.1.3.1/32 DIREC T 0 0 127.0.0.1 InLoopBack0

  10.1.4.0/24 DIRECT 0 0 10.1.4.2 Vlan-interface4

  0.1.4.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0

  127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0

  127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0

  查看RlP配置信息如下:

  [S3526B-rip]display rip

  RIP is turned on

  public net VPN-Instance

  Checkzero is on Default cost : 1

  Summary is on Preference : 100

  No peer router

  Network :

  10.0.0.0

【三層交換VLAN路由配置技巧詳解】相關(guān)文章:

三層交換機(jī)怎么實(shí)現(xiàn)VLAN間路由10-20

華為三層交換機(jī)VLAN間路由怎么設(shè)置08-29

H3C三層交換機(jī)配置VLAN代碼剖析11-01

思科交換機(jī)劃分vlan配置實(shí)例07-02

關(guān)于華為交換機(jī)vlan的配置代碼09-08

三層交換機(jī)配置步驟07-01

交換機(jī)VLAN接口靜態(tài)IP地址配置09-28

三層交換機(jī)配置及命令解釋10-11

華為三層交換機(jī)配置教程10-31

H3C配置三層交換機(jī)配置06-24