配置路由重发布
实验名称:配置路由重发布
实验拓扑:
实验要求:
1)公司网络中运行了多种路由协议
2)配置重发布实现公司内部网络互通
3)总公司R1上重发布默认路由实现全网访问Internet
操作步骤:
1.如拓扑图配置IP地址和ospf 区域
R1:
IP 配置:
interface GigabitEthernet0/0/0
ip address 192.168.11.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.12.1 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 192.168.13.1 255.255.255.0
ospf配置:
ospf 1 router-id 1.1.1.1
default-route-advertise always cost 200 type 1
area 0.0.0.0
network 192.168.12.0 0.0.0.255
area 0.0.0.1
network 192.168.13.0 0.0.0.255
静态路由:
ip route-static 0.0.0.0 0.0.0.0 192.168.11.2
R2:
IP 配置:
interface GigabitEthernet0/0/0
ip address 192.168.2.254 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.12.2 255.255.255.0
ospf配置:
ospf 1 router-id 2.2.2.2
import-route direct //导入-路由 直连
area 0.0.0.0
network 192.168.12.0 0.0.0.255
R3:
IP 配置:
interface GigabitEthernet0/0/0
ip address 192.168.34.3 255.255.255.0
interface GigabitEthernet0/0/2
ip address 192.168.13.3 255.255.255.0
ospf配置:
ospf 1 router-id 3.3.3.3
import-route static //导入-路由 静态
area 0.0.0.1
network 192.168.13.0 0.0.0.255
静态路由配置:
ip route-static 192.168.4.0 255.255.255.0 192.168.34.4
R4:
IP 配置:
interface GigabitEthernet0/0/0
ip address 192.168.34.4 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.4.254 255.255.255.0
静态路由配置:
ip route-static 0.0.0.0 0.0.0.0 192.168.34.3
ISP:
IP 配置:
interface GigabitEthernet0/0/0
ip address 192.168.11.2 255.255.255.0
interface GigabitEthernet0/0/1
ip address 1.1.1.254 255.255.255.0
静态路由配置:
ip route-static 192.168.2.0 255.255.255.0 192.168.11.1
ip route-static 192.168.4.0 255.255.255.0 192.168.11.1
PC2、PC4、Server1可以互相ping通。
验证: