yiwi 发表于 2013-4-19 09:22:00

华为OSPF多区域实验

本帖最后由 yiwi 于 2013-4-19 09:23 编辑



R3配置
<Huawei>sy   进视图模式
un in en       关闭消息
sysname R3   修改路由器名字
interface Ethernet 0/0/0   进接口配置ip地址
ip address 35.1.1.1 255.255.255.252
un shut         开启
Info: Interface Ethernet0/0/0 is not shutdown.
int loop 0   配置环回口测试用的
ip address 3.3.3.3 255.255.255.255
q
router id 3.3.3.3   路由ID
ospf      进入OSPF的进程,(进程号有1-65535个号, 只运行一个OSPF路由进程,则通常在命令中不指定参数process-id,即默认process-id为1)
area 2   确定区域 在区域里通告网段   (后面跟反掩码)
network 35.1.1.0 0.0.0.3
network 3.3.3.3 0.0.0.0

user-interface vty 0 4    开启远程控制
authentication-mode password      密码模式
set authentication password cipher 123
user privilege level 3   用户等级
q
super password cipher abc   视图密码

R4配置
<Huawei>sy
sysname R4
un in en
interface Eth 0/0/0
ip address 46.1.1.1 30
un shut
int loop 0
ip address 4.4.4.4 32
q
router id 4.4.4.4
ospf
area 1
network 4.4.4.4 0.0.0.0
network 46.1.1.0 0.0.0.3
q
q
ping 3.3.3.3
PING 3.3.3.3: 56data bytes, press CTRL_C to break
    Reply from 3.3.3.3: bytes=56 Sequence=1 ttl=253 time=80 ms
    Reply from 3.3.3.3: bytes=56 Sequence=2 ttl=253 time=80 ms
    Reply from 3.3.3.3: bytes=56 Sequence=3 ttl=253 time=110 ms
    Reply from 3.3.3.3: bytes=56 Sequence=4 ttl=253 time=80 ms
    Reply from 3.3.3.3: bytes=56 Sequence=5 ttl=253 time=60 ms
--- 3.3.3.3 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 60/82/110 ms

display ospf lsdb               
OSPF Process 1 with Router ID 4.4.4.4
   Link State Database
         Area: 0.0.0.1
Type      LinkState ID    AdvRouter          AgeLen   Sequence   Metric
Router    4.4.4.4         4.4.4.4            22248    80000006       1
Router    6.6.6.6         6.6.6.6            22636    80000003       1
Network   46.1.1.1      4.4.4.4            22232    80000002       0
Sum-Net   6.6.6.6         6.6.6.6            23228    80000001       0
Sum-Net   56.1.1.0      6.6.6.6            23228    80000001    1562
Sum-Net   35.1.1.0      6.6.6.6             7128    80000001    1563
Sum-Net   5.5.5.5         6.6.6.6            23228    80000001    1562
Sum-Net   3.3.3.3         6.6.6.6             6728    80000001    1563


User interface con0 is available

<R4>sy
user-interface vty 0 4
authentication-mode password
set authentication password cipher 110
user privilege level 3
q
super password cipher abd
q

R5配置
Huawei>sy
un in en
sysname R5
interface Serial 0/0/0
ip address 56.1.1.1 30
un shut
Info: Interface Serial0/0/0 is not shutdown.
q
interface Eth 0/0/0
ip address 35.1.1.2 30
un shut
Info: Interface Ethernet0/0/0 is not shutdown.
int loop 0
ip address 5.5.5.5 32
q
router id 5.5.5.5
ospf
area 0
network 56.1.1.0 0.0.0.3
network 5.5.5.5 0.0.0.0
area 2
network 35.1.1.0 0.0.0.3


R6配置
<Huawei>sy
un in en
sysname R6
interface Serial 0/0/0
ip address 56.1.1.2 30
un shut
Info: Interface Serial0/0/0 is not shutdown.
q
interface Eth 0/0/0
ip address 46.1.1.2 30
un shut
Info: Interface Ethernet0/0/0 is not shutdown.
int loop 0
ip address 6.6.6.6 32
q
router id 6.6.6.6
ospf
area 0
network 56.1.1.0 0.0.0.3
network 6.6.6.6 0.0.0.0
area 1
network 46.1.1.0 0.0.0.3


测试

<R4>telnet 3.3.3.3
Trying 3.3.3.3 ...
Press CTRL+K to abort
Connected to 3.3.3.3 ...

Login authentication

Password:
Info: The max number of VTY users is 10, and the number
      of current VTY users on line is 1.
      The current login time is 2013-04-18 12:17:14.
<R3>sy
Enter system view, return user view with Ctrl+Z.


说明一下:查看LSA时router 表示 1类LSA   network 表示2类LSAsum-net表示三类
ASB4类   ASE由ASBR产生 表示5类    NSSA 由NSSA ABR产生 表示7类



downmovies 发表于 2013-4-19 09:27:53

男人在结婚前觉得适合自己的女人很少,结婚后觉得适合自己的女人很多。

x625802392 发表于 2013-5-16 02:56:39

所有刻骨铭心的爱都灵魂游离于床上的瞬间!

得过且过 发表于 2013-5-16 21:31:19

不在课堂上沉睡,就在酒桌上埋醉。

q666123 发表于 2013-5-17 11:30:13

如果有一双眼睛陪我一同哭泣,就值得我为生命受苦。

桀昊j 发表于 2013-5-17 23:48:09

男人偷腥时的智商仅次于爱因斯坦!

dyok 发表于 2013-5-18 15:31:27

不在放荡中变坏,就在沉默中变态!
页: [1]
查看完整版本: 华为OSPF多区域实验