Listing 1 Sample Juniper filter-based forwarding configuration routing options
{
interface-routes {
rib-group all-ribs;
}
rib-groups {
all-ribs {
import-rib [ inet.0 ISP1.inet.0 ISP2.inet.0];
}
}
}
routing-instances {
ISP1 {
instance-type forwarding;
routing-options {
static {
route 0.0.0.0/0 next-hop 1.1.1.2;
}
}
}
ISP2 {
instance-type forwarding;
routing-options {
static {
route 0.0.0.0/0 next-hop 2.2.2.2;
}
}
}
}
firewall {
family inet {
filter alpine {
term ISP1 {
from {
source-address 5.5.5.5/32;
}
then {
routing-instance ISP1;
}
}
term ISP2 {
from {
source-address 5.5.5.6/32;
}
then {
routing-instance ISP2;
}
}
term default-accept {
then {
accept;
}
}
}
}
interface {
fe-0/0/0 {
family {
inet {
filter {
input alpine;
}
address 5.5.5.3/24;
}
}
}
|