国产精品一区二区在线观看完整版,在线观看91精品国产性色,欧美日韩另类视频

杭州校區切換校區
圖標

學習文章

當前位置:首頁 > >學習文章 > >

{華為HCNP-RS}三層交換機的配置實例

發布時間: 2018-01-25 16:27:55


如圖,兩臺交換機為三層交換機,實現路由器能訪問所有pc,且所有pc能互訪。

1.     創建vlan,交換機上配置接口類型,access和trunk

Sw1:

vlan batch 10 20 30 40 50

#

interface GigabitEthernet0/0/1

port link-type access

port default vlan 10

#

interface GigabitEthernet0/0/2

port link-type access

port default vlan 10

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/4

port link-type access

port default vlan 50


sw2:

vlan batch 10 20 30 40 50

#

interface GigabitEthernet0/0/1

port link-type access

port default vlan 20

#

interface GigabitEthernet0/0/2

port link-type access

port default vlan 30

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 4094



2.      Sw上配置vlanif地址,下發給相關接口

Sw1:

interface Vlanif10

ip address 10.1.1.254 255.255.255.0

#

interface Vlanif40

ip address 10.2.2.1 255.255.255.0

#

interface Vlanif50

ip address 10.2.3.1 255.255.255.0


sw2:

interface Vlanif20

ip address 10.1.2.254 255.255.255.0

#

interface Vlanif30

ip address 10.1.3.254 255.255.255.0

#

interface Vlanif40

ip address 10.2.2.2 255.255.255.0



3.     路由器上配置ip地址實現和sw1直連能通信

R1:

interface GigabitEthernet0/0/0

ip address 10.2.3.10 255.255.255.0


4.      在路由器和交換機上配置路由協議實現路由通信,這里采用ospf

R1:

ospf 1

area 0.0.0.0

network 10.2.3.0 0.0.0.255


sw1:

ospf 1

area 0.0.0.0

network 10.1.1.0 0.0.0.255

network 10.2.2.0 0.0.0.255

network 10.2.3.0 0.0.0.255


sw2:

ospf 1

area 0.0.0.0

network 10.2.2.0 0.0.0.255

network 10.1.2.0 0.0.0.255

network 10.1.3.0 0.0.0.255



5.    最終測試:

[r1]ping -c 1 10.1.1.1

 PING 10.1.1.1: 56  data bytes, press CTRL_C to break

   Reply from 10.1.1.1: bytes=56 Sequence=1 ttl=127 time=50 ms


 --- 10.1.1.1 ping statistics ---

   1 packet(s) transmitted

   1 packet(s) received

   0.00% packet loss

   round-trip min/avg/max = 50/50/50 ms


[r1]ping -c 1 10.1.2.3

 PING 10.1.2.3: 56  data bytes, press CTRL_C to break

   Reply from 10.1.2.3: bytes=56 Sequence=1 ttl=126 time=70 ms


 --- 10.1.2.3 ping statistics ---

   1 packet(s) transmitted

   1 packet(s) received

   0.00% packet loss

   round-trip min/avg/max = 70/70/70 ms


[r1]ping -c 1 10.1.3.4

 PING 10.1.3.4: 56  data bytes, press CTRL_C to break

   Reply from 10.1.3.4: bytes=56 Sequence=1 ttl=126 time=60 ms


 --- 10.1.3.4 ping statistics ---

   1 packet(s) transmitted

   1 packet(s) received

   0.00% packet loss

   round-trip min/avg/max = 60/60/60 ms





 


上一篇: {華為HCIE-RS}MPLS中主備LSP的切換

下一篇: {華為HCNA-RS}設備下配置telnet認證功能

在線咨詢 ×

您好,請問有什么可以幫您?我們將竭誠提供最優質服務!

<bdo id="pdyax"></bdo>

    <pre id="pdyax"></pre>
    <menuitem id="pdyax"></menuitem>
      <form id="pdyax"><tbody id="pdyax"></tbody></form>

      1. <center id="pdyax"><center id="pdyax"></center></center>
          1. 主站蜘蛛池模板: 湘乡市| 澄城县| 报价| 定南县| 会昌县| 岐山县| 子洲县| 察雅县| 张家口市| 安图县| 五河县| 武乡县| 富民县| 高淳县| 宜兰县| 大荔县| 巢湖市| 克拉玛依市| 和顺县| 潮安县| 读书| 铁力市| 泰和县| 遂宁市| 贵南县| 巴彦县| 榆树市| 多伦县| 铅山县| 铜陵市| 左权县| 台湾省| 读书| 思南县| 明溪县| 凉山| 绩溪县| 射洪县| 民丰县| 冀州市| 吕梁市|