网络-华为与H3C-OSPF

实验拓扑:
网络-华为与H3C-OSPF_第1张图片
实验步骤:
1、配置单臂路由。
[SW1]vlan batch 10 20
[SW1]interface Ethernet 0/0/1
[SW1-Ethernet0/0/1]port link-type access
[SW1-Ethernet0/0/1]port default vlan 10
[SW1-Ethernet0/0/1]quit
[SW1]interface Ethernet 0/0/2
[SW1-Ethernet0/0/2]port link-type access
[SW1-Ethernet0/0/2]port default vlan 20
[SW1-Ethernet0/0/2]quit
[SW1]interface GigabitEthernet 0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all

[R1]interface GigabitEthernet0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1-GigabitEthernet0/0/0]undo shutdown
[R1-GigabitEthernet0/0/0]quit
[R1]interface GigabitEthernet0/0/1.10
[R1-GigabitEthernet0/0/1.10]dot1q termination vid 10
[R1-GigabitEthernet0/0/1.10]arp broadcast enable
[R1-GigabitEthernet0/0/1.10]ip address 192.168.10.254 24
[R1-GigabitEthernet0/0/1.10]undo shutdown
[R1-GigabitEthernet0/0/1.10]quit
[R1]interface GigabitEthernet0/0/1.20
[R1-GigabitEthernet0/0/1.20]dot1q termination vid 20
[R1-GigabitEthernet0/0/1.20]arp broadcast enable
[R1-GigabitEthernet0/0/1.20]ip address 192.168.20.254 24
[R1-GigabitEthernet0/0/1.20]undo shutdown

[R2]interface GigabitEthernet0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.1.2 24
[R2-GigabitEthernet0/0/0]undo shutdown
[R2-GigabitEthernet0/0/0]quit
[R2]interface GigabitEthernet0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.2.1 24
[R2-GigabitEthernet0/0/1]undo shutdown

2、rip在R1上配置汇总。
[R1]rip 1
[R1-rip-1]network 192.168.1.0
[R1-rip-1]network 172.16.1.0
[R1-rip-1]network 172.16.2.0
[R1-rip-1]network 172.16.3.0
[R1-rip-1]network 172.16.4.0
[R1-rip-1]network 172.16.5.0
[R1-rip-1]network 192.168.10.0
[R1-rip-1]network 192.168.20.0
[R2]rip 1
[R2-rip-1]network 192.168.1.0
[R2-rip-1]network 192.168.2.0
[R1]interface GigabitEthernet0/0/1
[R1-GigabitEthernet0/0/1]rip summary-address 172.16.0.0 255.255.0.0

3、R1、R2开启远程管理,PC3远程。
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode password
[R1-ui-vty0-4]set authentication password cipher pwd@123
[R1-ui-vty0-4]user privilege level 15
[R2]user-interface vty 0 4
[R2-ui-vty0-4]authentication-mode password
[R2-ui-vty0-4]set authentication password cipher pwd@123
[R2-ui-vty0-4]user privilege level 15
在这里插入图片描述
网络-华为与H3C-OSPF_第2张图片
在这里插入图片描述
网络-华为与H3C-OSPF_第3张图片
4、配置OSPF。
[R3]ospf router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255
[R1]ospf 1
[R1-ospf-1]import-route rip 1
[R1-ospf-1]quit
[R1]rip 1
[R1-rip-1]import-route ospf 1
网络-华为与H3C-OSPF_第4张图片

你可能感兴趣的:(网络-华为与H3C-OSPF)