Creating redundant network interfaces with os 3.0

本文介绍如何在FortiGate设备上设置冗余接口以确保互联网服务的连续性。通过结合两个或多个物理接口,即使其中一个接口发生故障,也能维持网络连接。文章详细说明了在不同型号的FortiGate设备上创建冗余接口的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

About redundant interfaces

You can combine two or more physical interfaces to provide link redundancy, to ensure that Internet services remain active if one physical interface fails.

 

You can set up this feature on any FortiGate unit that has two spare interfaces.

For example, if you have two Internet services connected to a FortiGate unit, T1 on Wan 1 and DSL on Wan 2, you can configure Wan 2 to take over Internet traffic if Wan 1 fails.

FortiGate firmware on models 800 and higher implements redundant interfaces, and the procedure to create redundant interfaces is different from models up to 500. See the procedure for models 800 and above.

Creating redundant interfaces in models up to 500

Creating redundant interfaces includes these steps:

  • Creating new static routes
  • Configuring a ping server on each interface
  • Setting route preferences
  • Creating a firewall policy

Creating new static routes

The redundant interfaces will use these static routes.

The distance value specifies the priority of every route going to the same destination. The route with the lower distance is added to the route table and used first. The second route will not be used until the first route fails. Thus, the route using the primary interface must have a lower distance value, so that it will be used instead of the route using the secondary interface.

To create new static routes

  1. Go to Router > Static.
  2. Select Create New.
  3. Enter the destination IP for the primary route.
  4. Select the interface for the primary route.
  5. Set a distance of 10.
  6. select OK.
  7. Enter the same destination IP for the secondary route.
  8. Select the device for the secondary route.
  9. Set a distance of 11.
  10. Go to Router > Monitor to confirm the new routes.

Configuring a ping server

The FortiGate unit tests the connection through an interface by sending a ping to a reliable server. If the connection is active, the server will send a ping back to the FortiGate unit. If a ping test repeatedly fails, the FortiGate unit considers that connection to have failed, and will select an alternate connection. You can set the interval between pings and the number of times the ping test can fail before a connection is considered failed in Network Options.

To test a connection, a ping must be sent to a reliable server, usually a DNS server. The local gateway or a common website are not reliable enough to confirm a connection.

To configure a ping server

  1. Go to System > Network > Interface.
  2. Select the Edit icon for the devices using the two new static routes.
  3. Enter an IP address for Ping Server.
  4. Select Enable for Ping Server.

Verifying and setting the route preference

You can set up multiple routes to a destination in the network. The FortiGate unit uses the best route for each destination, specified by the lowest priority value.

To verify the route preference

  1. Open the Command Line Interface (CLI).
  2. Log in to the FortiGate unit.
  3. To verify the route preferences, enter the following:

    config router static
       show

The main route should have a lower priority value than the secondary route. If this is not the case, you can set priority values manually.

To set the route preference in the CLI, enter the following:


  config router static
     edit 2
         set device <secondary device>
         set gateway <secondary IP>
      next
      edit 2
         set device <primary device>
         set gateway <primary IP>
   end

Creating a firewall policy

You must define a firewall policy for the new route from your primary device to the secondary device to function.

To create a firewall policy

  1. Go to Firewall > Policy.
  2. Select Create New
  3. Select the primary interface for Source
  4. Select the secondary interface for Destination.
  5. Select the IP address of the primary interface for Source.
  6. Select the IP address of the secondary interface for Destination.
  7. Leave other options at the default settings.
  8. Select OK.

Creating redundant interfaces for FortiGate-800 and higher

In models 800 and above, adding redundant interfaces is a one step process. The FortiGate firmware implements redundant interfaces.

To create redundant interfaces

  1. Go to System > Network > Interface.
  2. Select Create New
  3. Enter a name for the redundant interface.
    The interface name must not be the same as any other interface, zone or VDOM.
  4. Select Redundant Interface for Type.
  5. Select an interface included in the redundant interface from Available Interfaces.
  6. Select the right arrow button to move the interface to the Selected Interface list.
  7. Repeat the selection procedure for all interfaces you want to include in the redundant interface.
  8. Enter the destination IP for the redundant interfaces in IP/Netmask.
  9. Enter an IP address for Ping Server.
  10. Select Enable for Ping Server.
  11. Configure other interface options as required.
  12. Select OK. 
<think>嗯,用户想了解冗余机器人在机器人学或编程中的相关内容。首先,我需要明确冗余机器人的定义和基本概念。冗余机器人通常指的是自由度(DOA)超过任务所需最小自由度的机器人。例如,人类的手臂有7个自由度,而完成三维空间定位只需要6个,因此具有冗余性。这种冗余性带来了灵活性和容错能力,但同时也增加了控制复杂度。 接下来,用户可能想知道冗余机器人的应用场景。工业机械臂、医疗机器人、服务机器人都是常见的应用领域。冗余设计让机器人能够在复杂环境中避障或优化运动轨迹。比如在狭窄空间作业时,冗余自由度可以帮助调整姿态而不改变末端执行器的位置。 然后是控制方法,这是冗余机器人编程中的核心问题。由于自由度多,可能存在无穷多解,因此需要逆运动学算法来处理。常用的方法包括伪逆法、梯度投影法、优化算法(如二次规划)。此外,避障和关节限制也是需要考虑的因素,可能需要实时调整关节角度以避免碰撞或超出物理限制。 用户可能还关心冗余机器人的优势与挑战。优势包括灵活性、容错性和能够执行复杂任务,但挑战在于计算复杂度高、实时性要求高,以及可能出现的奇异位形问题。编程时需要选择合适的算法,并考虑硬件限制。 相关问题方面,用户可能想深入了解如何实现逆运动学、避障算法具体如何工作、冗余机器人在工业中的实际案例,或者与其他类型机器人的比较。需要确保生成的问题覆盖这些方面,帮助用户进一步探索。 最后,结合提供的引用资料,特别是引用[2]中提到的AI agent的感知、推理和行动能力,冗余机器人的控制可能涉及这些方面,比如通过传感器获取环境信息,算法处理数据,再驱动执行器动作。因此,在回答中可以适当关联这些概念,增强深度。</think>### 冗余机器人(Redundant Robot)的定义与特性 在机器人学中,冗余机器人指**自由度(Degrees of Freedom, DOF)**超过完成任务所需最小自由度的机器人。例如,一个机械臂在三维空间中定位末端执行器需要至少6个自由度,若其实际自由度为7或更多,则称为冗余机器人[^1]。冗余性赋予机器人以下特性: 1. **灵活性**:可通过多种关节运动组合实现同一任务目标; 2. **避障能力**:在复杂环境中优化关节轨迹以避开障碍; 3. **容错性**:部分关节故障时仍能完成任务。 ### 冗余机器人的编程与控制挑战 1. **逆运动学求解**: 冗余导致无穷多解,需通过优化目标(如最小化关节运动量)选择最优解。常用方法包括: - 伪逆法:$$ \dot{\theta} = J^\dagger \dot{x} + (I - J^\dagger J) \nabla H $$,其中$J$为雅可比矩阵,$H$为优化函数[^1]; - 梯度投影法:利用零空间(Null Space)优化附加任务。 2. **实时性与计算复杂度**: 冗余自由度增加计算负担,需结合高效算法(如二次规划)和硬件加速。 3. **避障与关节限制**: 需约束关节角度范围并实时检测碰撞。例如,通过势场法或人工势函数引导关节运动。 ### 应用场景 - **工业装配**:在狭窄空间调整姿态以避开障碍; - **医疗手术**:柔性机械臂通过冗余性适应人体复杂解剖结构; - **服务机器人**:多自由度抓取不同形状物体。 ### 示例代码(逆运动学伪逆法) ```python import numpy as np def redundant_ik(J, dx, alpha=0.1): # 计算伪逆 J_pinv = np.linalg.pinv(J) # 零空间优化(如最小化关节角度变化) dq_null = alpha * (np.eye(J.shape[1]) - J_pinv @ J) @ np.random.randn(J.shape[1]) dq = J_pinv @ dx + dq_null return dq ``` ### 引用说明 [^1]: 伪逆法常用于冗余机器人运动学控制,通过优化零空间任务实现多目标协同。 [^2]: AI agents通过感知-决策-执行循环与冗余机器人控制具有相似性,需结合环境反馈实时调整动作。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值