HCNA配置浮动静态路由

1、拓扑图

2、配置IP

R1

 1 Please press enter to start cmd line!
 2 ############
 3 <Huawei>
 4 Dec 10 2017 14:59:09-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
 5 hernet0/0/0 has turned into UP state.
 6 <Huawei>
 7 Dec 10 2017 14:59:12-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface Serial2/0
 8 /0 has turned into UP state.
 9 <Huawei>
10 Dec 10 2017 14:59:15-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
11  PPP on the interface Serial2/0/0 has entered the UP state.
12 <Huawei>sys
13 Enter system view, return user view with Ctrl+Z.
14 [Huawei]sysname R1
15 [R1]int g0/0/0
16 [R1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
17 Dec 10 2017 15:00:43-08:00 R1 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
18 on the interface GigabitEthernet0/0/0 has entered the UP state.
19 [R1-GigabitEthernet0/0/0]q
20 [R1]int s
21 [R1]int Serial 1
22 [R1]int Serial 1
23                ^
24 Error: Wrong parameter found at ‘^‘ position.
25 [R1]int Serial
26 [R1]int Serial ?
27   <2-2>  Serial interface slot number
28 [R1]int Serial 2
29                ^
30 Error: Wrong parameter found at ‘^‘ position.
31 [R1]int Serial 2/0/0
32 [R1-Serial2/0/0]ip add 11.1.1.1 24
33 [R1-Serial2/0/0]q
34 [R1]
35 Dec 10 2017 15:03:52-08:00 R1 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol PPP
36  IPCP on the interface Serial2/0/0 has entered the UP state.
37 [R1]dis ip int
38 [R1]dis ip interface bri
39 *down: administratively down
40 ^down: standby
41 (l): loopback
42 (s): spoofing
43 The number of interface that is UP in Physical is 3
44 The number of interface that is DOWN in Physical is 2
45 The number of interface that is UP in Protocol is 3
46 The number of interface that is DOWN in Protocol is 2
47
48 Interface                         IP Address/Mask      Physical   Protocol
49 GigabitEthernet0/0/0              12.1.1.1/24          up         up
50 GigabitEthernet0/0/1              unassigned           down       down
51 NULL0                             unassigned           up         up(s)
52 Serial2/0/0                       11.1.1.1/24          up         up
53 Serial2/0/1                       unassigned           down       down
54 [R1]

R2

 1 Please press enter to start cmd line!
 2 ####
 3 <Huawei>
 4 Dec 10 2017 14:59:07-08:00 Huawei %%01IFNET/4/BOARD_ENABLE(l)[0]:Board 1 has bee
 5 n available.
 6 <Huawei>
 7 Dec 10 2017 14:59:07-08:00 Huawei %%01IFNET/4/IF_ENABLE(l)[1]:Interface GigabitE
 8 thernet1/0/0 has been available.
 9 <Huawei>
10 Dec 10 2017 14:59:08-08:00 Huawei %%01DEV/4/ENTUP(l)[2]:2SA board[2] register su
11 ccess.
12 <Huawei>
13 Dec 10 2017 14:59:08-08:00 Huawei %%01IFNET/4/BOARD_ENABLE(l)[3]:Board 2 has bee
14 n available.
15 <Huawei>
16 Dec 10 2017 14:59:08-08:00 Huawei %%01IFNET/4/IF_ENABLE(l)[4]:Interface Serial2/
17 0/0 has been available.
18 <Huawei>
19 Dec 10 2017 14:59:08-08:00 Huawei %%01IFNET/4/IF_ENABLE(l)[5]:Interface Serial2/
20 0/1 has been available.
21 <Huawei>
22 Dec 10 2017 14:59:10-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[6]:Interface GigabitEt
23 hernet0/0/0 has turned into UP state.
24 <Huawei>
25 Dec 10 2017 14:59:10-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[7]:Interface GigabitEt
26 hernet0/0/1 has turned into UP state.
27 <Huawei>
28 Dec 10 2017 14:59:12-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[8]:Interface Serial2/0
29 /0 has turned into UP state.
30 <Huawei>
31 Dec 10 2017 14:59:15-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[9]:The line protocol
32  PPP on the interface Serial2/0/0 has entered the UP state.
33 <Huawei>sys
34 Enter system view, return user view with Ctrl+Z.
35 [Huawei]sysname R2
36 [R2]int
37 [R2]interface g0/0/0
38 [R2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
39 Dec 10 2017 15:03:19-08:00 R2 %%01IFNET/4/LINK_STATE(l)[10]:The line protocol IP
40  on the interface GigabitEthernet0/0/0 has entered the UP state.
41 [R2-GigabitEthernet0/0/0]q
42 [R2]int s2/0/0/
43         ^
44 Error: Wrong parameter found at ‘^‘ position.
45 [R2]int s
46 [R2]int Serial 2/0/0
47 [R2-Serial2/0/0]ip add 11.1.1.2 24
48 [R2-Serial2/0/0]
49 Dec 10 2017 15:03:52-08:00 R2 %%01IFNET/4/LINK_STATE(l)[11]:The line protocol PP
50 P IPCP on the interface Serial2/0/0 has entered the UP state.
51 [R2-Serial2/0/0]q
52 [R2]int
53 [R2]interface g0/0/1
54 [R2-GigabitEthernet0/0/1]ip add 10.1.1.1 24
55 Dec 10 2017 15:04:49-08:00 R2 %%01IFNET/4/LINK_STATE(l)[12]:The line protocol IP
56  on the interface GigabitEthernet0/0/1 has entered the UP state.
57 [R2-GigabitEthernet0/0/1]q
58 [R2]interface g0/0/1
59 [R2-GigabitEthernet0/0/1]ip add 10.1.1.2 24
60 [R2-GigabitEthernet0/0/1]q
61 [R2]dis ip int
62 [R2]dis ip interface br
63 [R2]dis ip interface brief
64 *down: administratively down
65 ^down: standby
66 (l): loopback
67 (s): spoofing
68 The number of interface that is UP in Physical is 4
69 The number of interface that is DOWN in Physical is 2
70 The number of interface that is UP in Protocol is 4
71 The number of interface that is DOWN in Protocol is 2
72
73 Interface                         IP Address/Mask      Physical   Protocol
74 GigabitEthernet0/0/0              12.1.1.2/24          up         up
75 GigabitEthernet0/0/1              10.1.1.2/24          up         up
76 GigabitEthernet1/0/0              unassigned           down       down
77 NULL0                             unassigned           up         up(s)
78 Serial2/0/0                       11.1.1.2/24          up         up
79 Serial2/0/1                       unassigned           down       down
80 [R2]

R3

 1 The device is running!
 2
 3 <Huawei>
 4 Dec 10 2017 14:59:09-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
 5 hernet0/0/1 has turned into UP state.
 6 <Huawei>sys
 7 Enter system view, return user view with Ctrl+Z.
 8 [Huawei]sysname R3
 9 [R3]int g0/0/1
10 [R3-GigabitEthernet0/0/1]ip add 10.1.1.3 24
11 [R3-GigabitEthernet0/0/1]
12 Dec 10 2017 15:06:03-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
13 on the interface GigabitEthernet0/0/1 has entered the UP state.
14 [R3-GigabitEthernet0/0/1]q
15 [R3]dis ip int bri
16 *down: administratively down
17 ^down: standby
18 (l): loopback
19 (s): spoofing
20 The number of interface that is UP in Physical is 2
21 The number of interface that is DOWN in Physical is 6
22 The number of interface that is UP in Protocol is 2
23 The number of interface that is DOWN in Protocol is 6
24
25 Interface                         IP Address/Mask      Physical   Protocol
26 GigabitEthernet0/0/0              unassigned           down       down
27 GigabitEthernet0/0/1              10.1.1.3/24          up         up
28 GigabitEthernet0/0/2              unassigned           down       down
29 GigabitEthernet2/0/0              unassigned           down       down
30 GigabitEthernet2/0/1              unassigned           down       down
31 GigabitEthernet2/0/2              unassigned           down       down
32 GigabitEthernet2/0/3              unassigned           down       down
33 NULL0                             unassigned           up         up(s)
34 [R3]

3、R1配置浮动静态路由

[R1]ip rou
[R1]ip route-s
[R1]ip route-static 10.1.1.0 24 g0/0/0 12.1.1.2
[R1]ip rou
[R1]ip route-st
[R1]ip route-static 10.1.1.0 24 se
[R1]ip route-static 10.1.1.0 24 Serial 2/0/0 11.1.1.2
[R1]dis ip rou
[R1]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 12       Routes : 13       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.1.1.0/24  Static  60   0           D   12.1.1.2        GigabitEthernet
0/0/0
                    Static  60   0           D   11.1.1.2        Serial2/0/0
       11.1.1.0/24  Direct  0    0           D   11.1.1.1        Serial2/0/0
       11.1.1.1/32  Direct  0    0           D   127.0.0.1       Serial2/0/0
       11.1.1.2/32  Direct  0    0           D   11.1.1.2        Serial2/0/0
     11.1.1.255/32  Direct  0    0           D   127.0.0.1       Serial2/0/0
       12.1.1.0/24  Direct  0    0           D   12.1.1.1        GigabitEthernet
0/0/0
       12.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
     12.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[R1]ip route-static 10.1.1.0 24 Serial 2/0/0 11.1.1.2 pri
[R1]ip route-static 10.1.1.0 24 Serial 2/0/0 11.1.1.2 pr
[R1]ip route-static 10.1.1.0 24 Serial 2/0/0 11.1.1.2 preference ?
  INTEGER<1-255>  Preference value range
[R1]ip route-static 10.1.1.0 24 Serial 2/0/0 11.1.1.2 preference 66
Info: Succeeded in modifying route.
[R1]dis ip ro
[R1]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 12       Routes : 12       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.1.1.0/24  Static  60   0           D   12.1.1.2        GigabitEthernet
0/0/0
       11.1.1.0/24  Direct  0    0           D   11.1.1.1        Serial2/0/0
       11.1.1.1/32  Direct  0    0           D   127.0.0.1       Serial2/0/0
       11.1.1.2/32  Direct  0    0           D   11.1.1.2        Serial2/0/0
     11.1.1.255/32  Direct  0    0           D   127.0.0.1       Serial2/0/0
       12.1.1.0/24  Direct  0    0           D   12.1.1.1        GigabitEthernet
0/0/0
       12.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
     12.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[R1]int
[R1]interface g
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]shut
[R1-GigabitEthernet0/0/0]shutdown
Dec 10 2017 15:13:51-08:00 R1 %%01IFPDT/4/IF_STATE(l)[5]:Interface GigabitEthern
et0/0/0 has turned into DOWN state.
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]
Dec 10 2017 15:13:51-08:00 R1 %%01IFNET/4/LINK_STATE(l)[6]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the DOWN state.
[R1-GigabitEthernet0/0/0]dis ip ro
[R1-GigabitEthernet0/0/0]dis ip rou
[R1-GigabitEthernet0/0/0]dis ip rout
[R1-GigabitEthernet0/0/0]q
[R1]dis ip rou
[R1]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 9        Routes : 9        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.1.1.0/24  Static  66   0           D   11.1.1.2        Serial2/0/0
       11.1.1.0/24  Direct  0    0           D   11.1.1.1        Serial2/0/0
       11.1.1.1/32  Direct  0    0           D   127.0.0.1       Serial2/0/0
       11.1.1.2/32  Direct  0    0           D   11.1.1.2        Serial2/0/0
     11.1.1.255/32  Direct  0    0           D   127.0.0.1       Serial2/0/0
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[R1]
时间: 2024-10-29 07:25:06

HCNA配置浮动静态路由的相关文章

配置简单的浮动静态路由,实现链路冗余

网络拓扑如下图. 2.按照上图参数配置各个主机的IP,默认网关一定是连接这个网段的路由器的那个端口的IP地址,要不然只能ping 通本网段的主机,而无法ping通其他网段的主机. 3.在这个实验中交换机是不用配置,没有必要,那么接下来就是配置路由器,还是按照最上面图中的参数设配置路由器.在全局配置模式下 输入interface fastEthernet 0/0 进入接口配置模式,给接口配置ip址,ip address 192.168.1.254 255.255.255.0 接着是no shutd

vrrp配置和浮动静态路由

VRRP配置在SW1配置<Huawei>undo terminal monitor //关掉弹出来的信息<Huawei>system-view //进入系统模式[Huawei]sysname SW1 //修改名称[SW1]vlan 10 //创建VLAN 10[SW1-vlan10]quit //退出命令[SW1]port-group group-member g0/0/1 g0/0/2 g0/0/3 //创建组在组里进入接口g0/0/1 g0/0/2 g0/0/3 [SW1-po

浮动静态路由

浮动静态路由 一:实验拓扑 R1 [Huawei]int loo 0 //配置环回口 [Huawei-LoopBack0]ip add 1.1.1.1 32 R2 [Huawei]int loo 0 [Huawei-LoopBack0]ip add 2.2.2.2 32 R3 [Huawei]int loo 0 [Huawei-LoopBack0]ip add 3.3.3.3 32 R4 [Huawei]int loo 0 [Huawei-LoopBack0]ip add 4.4.4.4 32

Lab - 浮动静态路由 &amp; IP SLA

Topology Objective 理解浮动路由的配置 理解IP SLA 的原理 配置 IP SLAs ICMP Path Echo Operation Step 1: 配置基本路由器接口 R1(config)#interface loopback0 R1(config-if)#ip address 1.1.1.1 255.255.255.0 R1(config)#interface f0/0 R1(config-if)#ip address 12.1.1.1 255.255.255.0 R1

浮动静态路由和BFD联动

       浮动静态路由和BFD联动实现路由自动更新 路由器的工作是将数据包从源设备转发到目标设备.在它们之间可能有几个路由器.路由器使用称为路由表的数据库来转发这些数据包.静态路由(Static routing),一种路由的方式,手动配置路由项,而非动态决定.即使网络状况已经改变或是重新被组态,静态路由也不会改变. BFD(Bidirectional Forwarding Detection,双向转发检测)是一个通用的.标准化的.介质无关和协议无关的快速故障检测机制,用于检测IP网络中链路的

静态路由实验二(浮动静态路由及负载均衡)

原理概述: 浮动静态路由(Floating Static Route)是一种特殊的静态路由,通过配置去往相同的 目的网段,但优先级不同的静态路由,以保证在网络中优先级较高的路由,即主路由失效的情况下提供备份路由.正常情况下,备份路由 不会出现在路由表中.      负载均衡(Load sharing),当数据有多条可选路径前往同一目的网络,可以通过配 置相同优先级和开销的静态路由实现负载均衡,使得数据的传输均衡地分配到多条路径上,从而实现数据分流.减轻单条路径负载过重的效果. 而当其中某一条路径

路由器基础配置之浮动静态路由

拓扑图如下 我们将以上面的拓扑图进行实验以实现负载均衡和冗余的效果 配置路由器0 enable 进入特权模式 config t 进入全局配置模式 interface L0 ip address 192.168.1.1 255.255.255.0 exit interface s0/0/0 ip address 192.168.3.1 255.255.255.0 clock rate 6400 设置同步时间 no shu 激活接口 exit interface s0/0/1 ip address

配置Linux静态路由和配置IP

今天有两台戴尔2U服务器,需要上架.上架前,老大让我将两个网卡配置上IP,网卡1是专线IP10.xx.xx.57,网卡2是内网IP192.168.1.157.交代我时,还说配上Linux的静态路由,于是我就开始配置了: eth0: DEVICE='eth0' IPADDR=10.XX.XX.57 NETMASK=255.xxx.xxx.192 DATEWAY=10.130.116.1 eth1: DEVICE='eth1' IPADDR=192.168.1.157 NETMASK=255.255

如何配置路由器静态路由实验

树立的是路由器连通的最简单,也是最基本的一个实验,静态路由实验,就是只有一行代码即可实现,当然前提是掌握其它一些基本代码,掌握好这个知识点,也是对后面知识点非常有帮助的,在理解整个思路的基础上,不断加深影响,让自己更好地掌握住知识点. 方法/步骤1.配置静态路由,是最重要的一行代码,记清楚是关键词后面加上目的网段,子网掩码和下一跳路由器的IP地址,但要注意在后面的学习过程中,下一跳路由器的IP地址也有可能是下一个网络,比如云的IP地址,只要记住是通往下一个的IP地址即可.ip route-sta