Escolar Documentos
Profissional Documentos
Cultura Documentos
Objetivos
Cenrio
Tarefas
<R3>system-view
Enter system view, return user view with Ctrl+Z.
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ip address 10.0.123.3 24
[R3-GigabitEthernet0/0/0]quit
[R3]interface LoopBack 0
[R3-LoopBack0]ip address 10.0.3.3 24
[R3-LoopBack0]quit
[R1]ping -c 1 10.0.123.3
PING 10.0.123.3: 56 data bytes, press CTRL_C to break
Reply from 10.0.123.3: bytes=56 Sequence=1 ttl=255 time=2 ms
[R2]ping -c 1 10.0.123.3
PING 10.0.123.3: 56 data bytes, press CTRL_C to break
Reply from 10.0.123.3: bytes=56 Sequence=1 ttl=255 time=2 ms
View the routing tables and test the connectivity of the entire network.
View the routing table of R1.
[R1]display ip routing-table
Route Flags: R - relay, D - download to fib
----------------------------------------------------------------------------
Routing Tables: Public
Destinations : 12 Routes : 12
[R1]ping -c 1 10.0.3.3
PING 10.0.3.3: 56 data bytes, press CTRL_C to break
Reply from 10.0.3.3: bytes=56 Sequence=1 ttl=255 time=2 ms
Area: 0.0.0.0
Authtype: Simple Area flag: Normal
SPF scheduled Count: 18
ExChange/Loading Neighbors: 0
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 10.0.3.3 10.0.3.3 98 48 80000011 1
Router 10.0.2.2 10.0.2.2 98 48 80000016
1
Router 10.0.1.1 10.0.1.1 96 48 80000013 1
Network 10.0.123.2 10.0.2.2 99 36 8000000F
0
Type : Router
Ls id : 10.0.1.1
Adv rtr : 10.0.1.1
Ls age : 680
Len : 48
Options : E
seq# : 80000013
chksum : 0x7787
Link count: 2
* Link ID: 10.0.123.2
Data : 10.0.123.1
Link Type: TransNet
Metric : 1
* Link ID: 10.0.1.1
Data : 255.255.255.255
Link Type: StubNet
Metric : 0
Priority : Medium
O LSA gerado por R1 descreve dois segmentos de rede. O primeiro
segmento de rede interconecta os trs roteadores. O valor do Link Type
TransNet, o valor do Link ID o endereo IP da interface do DR
(10.0.123.2), o valor do Data o endereo IP da interface local neste
segmento de rede (10.0.123.1). O segundo segmento de rede o
segmento que a interface de loopback reside. O valor do Link Type
StubNet, e os valores do Link ID e Data o endereo IP e mscara de
subrede, respectivamente, do segmento de rede.
Visualize detalhes do LSA gerado por R2.
[R2]dis ospf lsdb network self-originate
Type : Network
Ls id : 10.0.123.2
Adv rtr : 10.0.2.2
Ls age : 1369
Len : 36
Options : E
seq# : 8000000f
chksum : 0xa7e
Net mask : 255.255.255.0
Priority : Low
Attached Router 10.0.2.2
Attached Router 10.0.1.1
Attached Router 10.0.3.3
O LSA de tipo 2 descreve informao de relacionamento de vizinho
do segmento de rede onde o DR reside.
Aps a interface G0/0/0 ser ativada, seu status muda de Down para
Waiting. Ento os roteadores iniciam a troca de pacotes Hello. Aps cerca
de 40 segundos, o status da interface G0/0/0 muda de Waiting para DR.
[R2]ospf 1
[R2-ospf-1]silent-interface LoopBack 0
[R3]ospf 1
[R3-ospf-1]silent-interface LoopBack 0
Configuraes Finais
<R1>display current-configuration
[V200R001C00SPC200]
#
sysname R1
#
interface GigabitEthernet0/0/0
ip address 10.0.123.1 255.255.255.0
ospf cost 20
#
interface LoopBack0
ip address 10.0.1.1 255.255.255.0
#
ospf 1 router-id 10.0.1.1
silent-interface LoopBack0
area 0.0.0.0
authentication-mode simple plain huawei
network 10.0.123.1 0.0.0.0
network 10.0.1.1 0.0.0.0
#
return
<R2>display current-configuration
[V200R001C00SPC200]
#
sysname R2
#
interface GigabitEthernet0/0/0
ip address 10.0.123.2 255.255.255.0
#
interface LoopBack0
ip address 10.0.2.2 255.255.255.0
ospf network-type broadcast
#
ospf 1 router-id 10.0.2.2
silent-interface LoopBack0
area 0.0.0.0
authentication-mode simple plain huawei
network 10.0.123.2 0.0.0.0
network 10.0.2.2 0.0.0.0
#
return
<R3>display current-configuration
[V200R001C00SPC200]
#
sysname R3
#
interface GigabitEthernet0/0/0
ip address 10.0.123.3 255.255.255.0
ospf cost 10
#
interface LoopBack0
ip address 10.0.3.3 255.255.255.0
#
ospf 1 router-id 10.0.3.3
silent-interface LoopBack0
area 0.0.0.0
authentication-mode simple plain huawei
network 10.0.123.3 0.0.0.0
network 10.0.3.3 0.0.0.0
#
Return