Use this action to forward packets to a particular interface and/or a next-hop address. You can configure next-interface actions for JUNOS filters and JUNOSe policy rules. On JUNOSe routers, you can use this action for both ingress and egress parts of the interface.
The type of action that you can create depends on the type of policy rule. See Policy Information Model.
Use the following configuration statements to configure next-interface actions:
- policies group name list name rule name next-interface name {
- interface-specifier interface-specifier ;
- next-hop-address next-hop-address ;
- description description ;
- }
To configure a next-interface action:
- user@host# edit policies group redirect list
input rule redirect next-interface nextInterface
- [edit policies group redirect list input rule redirect
next-interface nextInterface]
- user@host# set interface-specifier interface-specifier
- [edit policies group redirect list input rule redirect
next-interface nextInterface]
- user@host# set next-hop-address next-hop-address
- [edit policies group redirect list input rule redirect
next-interface nextInterface]
- user@host# set description description
[edit policies group redirect list input rule redirect next-interface nextInterface] user@host# show interfaceSpec "name='fastethernet3/0'"; next-hop-address 10.10.227.3; description "Next-interface action for redirect policy";