网络社区,
我希望有人能够在配置我的路由器之一方面为我提供一些帮助。下图:
当前配置:PfSense 防火墙配置为向上述两个网络分发地址。服务器和路由器集群(路由器 R1 和防火墙之间有一个静态地址)。路由器集群都运行 OSPF。所有路由器都可以完美通信。R2 以外的所有路由器都在区域 0 中,并且在 R1 上,端口 0/1 也在区域 0 中。
注意:我最初在防火墙上安装了 OSPFquagga,但后来删除了它,因为我不希望 OSPF 在防火墙上运行。
问题:我在配置 R1 以采用静态路由并通过 OSPF 网络动态传播该路由时遇到问题。这将允许路由器集群到达 WAN。我已将 R1 设置为 ASBR。
我最初将 ip 路由设置为 0.0.0.0 0.0.0.0 接口...下一跳,但读到 OSPF/IS-IS 不传播这些类型的默认路由)
http://www.cisco.com/c /en/us/support/docs/ip/routing-information-protocol-rip/16448-default.html
我参考了:
- http://www.cisco.com/c/en/us/support/docs/ip/open-shortest-path-first-ospf/13692-21.html
- http://www.cisco.com/c/en/us/support/docs/ip/open-shortest-path-first-ospf/7039-1.html#t32
- http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/12-4t/iro-12-4t-book/iro-cfg.html#GUID- 4AABEB56-2125-488B-B5A4-A5650F3159BB
这里
配置如下:
R1
interface GigabitEthernet0/0
ip address 192.168.30.150 255.255.255.0
ip virtual-reassembly in
duplex auto
speed auto
no cdp enable
!
interface GigabitEthernet0/1
ip address 192.168.100.1 255.255.255.0
ip ospf 10 area 0
duplex auto
speed auto
!
router ospf 10
redistribute static subnets
network 192.168.100.0 0.0.0.255 area 0
default-information originate always
!
ip forward-protocol nd
!
ip http server
no ip http secure-server
!
ip route 192.168.100.0 255.255.255.0 GigabitEthernet0/0 192.168.30.1
我觉得我很接近,但希望得到任何建议。如果它有任何用处,我可以上传 PCAP、OSPF 邻居列表、IP 路由器等...
提前欣赏。
- - 更新 - - -
问题: R1 未将静态路由传播到其他 OSPF 邻居。
R1
interface GigabitEthernet0/0
ip address 192.168.30.150 255.255.255.0
ip virtual-reassembly in
duplex auto
speed auto
no cdp enable
!
interface GigabitEthernet0/1
ip address 192.168.100.1 255.255.255.0
duplex auto
speed auto
!
router ospf 10
network 192.168.100.0 0.0.0.255 area 0
default-information originate
!
ip forward-protocol nd
!
ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0 192.168.30.1
show ip route brief 和 show ip ospf 数据库
Gateway of last resort is 192.168.30.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 192.168.30.1, GigabitEthernet0/0
10.0.0.0/29 is subnetted, 5 subnets
ospf 数据库
OSPF Router with ID (192.168.100.5) (Process ID 10)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
10.1.15.1 10.1.15.1 1958 0x800001DF 0x005A29 2
10.10.10.10 10.10.10.10 400 0x800000BF 0x005E4D 2
172.10.10.2 172.10.10.2 1453 0x800000DD 0x007EDC 5
192.168.100.5 192.168.100.5 1329 0x800000B5 0x00E84F 1
192.168.200.5 192.168.200.5 1963 0x800001E7 0x00412C 4
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
10.1.11.6 10.10.10.10 2400 0x8000008F 0x00BEC4
10.1.12.1 10.10.10.10 1400 0x8000008B 0x001403
10.1.21.2 10.1.15.1 1958 0x800000CD 0x00E177
10.1.22.2 192.168.200.5 1963 0x800000CE 0x00B412
10.1.31.2 192.168.200.5 1963 0x800000CD 0x00898D
192.168.100.2 172.10.10.2 1639 0x80000001 0x00DB36
192.168.200.6 192.168.225.254 1480 0x800000CE 0x00323D
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 192.168.100.5 1324 0x80000005 0x00ECE5 10
R2 显示 ip ospf 数据库
OSPF Router with ID (172.10.10.2) (Process ID 10)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
10.1.15.1 10.1.15.1 341 0x800001E0 0x00582A 2
10.10.10.10 10.10.10.10 775 0x800000BF 0x005E4D 2
172.10.10.2 172.10.10.2 239 0x800000DE 0x00C568 4
192.168.100.5 192.168.100.5 1706 0x800000B5 0x00E84F 1
192.168.200.5 192.168.200.5 328 0x800001E8 0x003F2D 4
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
10.1.11.6 10.10.10.10 2776 0x8000008F 0x00BEC4
10.1.12.1 10.10.10.10 1776 0x8000008B 0x001403
10.1.21.2 10.1.15.1 342 0x800000CE 0x00DF78
10.1.22.2 192.168.200.5 328 0x800000CF 0x00B213
10.1.31.2 192.168.200.5 328 0x800000CE 0x00878E
192.168.100.2 172.10.10.2 2015 0x80000001 0x00DB36
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 192.168.100.5 1703 0x80000005 0x00ECE5 10
更新
R1:配置
interface Loopback0
ip address 10.1.1.1 255.255.255.255
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.30.150 255.255.255.0
ip virtual-reassembly in
duplex auto
speed auto
no cdp enable
!
interface GigabitEthernet0/1
ip address 192.168.99.5 255.255.255.248
duplex auto
speed auto
!
router ospf 10
redistribute static subnets
passive-interface GigabitEthernet0/0
network 192.168.99.4 0.0.0.3 area 0
default-information originate
!
ip forward-protocol nd
!
ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0 192.168.30.1
R1:显示ip ospf数据库
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
10.1.1.1 10.1.1.1 920 0x80000003 0x00A2CD 1
172.10.10.2 172.10.10.2 921 0x80000003 0x004FB4 1
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
192.168.99.6 172.10.10.2 921 0x80000001 0x009A41
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 10.1.1.1 1041 0x80000001 0x006E2E 10
R2:显示 ip ospf 数据库
OSPF Router with ID (172.10.10.2) (Process ID 10)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
10.1.1.1 10.1.1.1 1046 0x80000003 0x00A2CD 1
172.10.10.2 172.10.10.2 1045 0x80000003 0x004FB4 1
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
192.168.99.6 172.10.10.2 1045 0x80000001 0x009A41
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 10.1.1.1 1166 0x80000001 0x006E2E 10
- R1:eth0/0:192.168.30.150/24
- R1: eth0/1: 192.168.99.5/29 --> R2
- R2:eth1/0/1:192.168.99.6/29
- R2: eth1/0/2: 10.1.11.6/29 --> R3: 10.1.11.5
- R2: eth1/0/4: 10.1.21.1/29 --> R4: 10.1.21.2
- R2: eth1/0/3: 10.1.31.1/29 --> R5: 10.1.31.2