瞻博网络 SRX 240 路由配置

网络工程 路由 杜松 瞻博网络 杜松-srx
2021-07-25 19:22:16

我正在使用瞻博网络 SRX 240 作为聚合路由设备,它将桌面(工作站)环境通过接入交换机端口连接到思科第 2 层交换机后面的几 (4) 个服务器环境,这些服务器环境通过中继端口连接到瞻博网络 SRX。因此

笔记本电脑 <-- 接入端口 --> Juniper SRX 240 <-- 中继端口 --> 思科第 2 层 <-- 中继端口 --> 博科交换机 <-- 接入端口 --> 服务器

我已经为 VLAN 配置了必要的 RVI、VLAN 的静态路由以及安全策略和主机入站流量等。我只能从笔记本电脑 ping 到 RVI,在瞻博网络 CLI 上我可以 ping 笔记本电脑,也可以 ping Brocade 交换机上的服务器网关(通过 Cisco 交换机上的中继端口)。

我的问题是,我无法从笔记本电脑 ping 到挂在 Brocade 交换机上的服务器。我不确定是什么导致了这种情况,我是否需要针对位于 Brocade 交换机上的不同 VLAN 的其他安全策略?

    version 12.1X45.5;
system {
    root-authentication {
        encrypted-password "encrypted-password"; ## SECRET-DATA
    }
    name-server {
        8.8.8.8;
        8.8.8.8;
    }
    services {
        ssh;
        telnet;
        xnm-clear-text;
        web-management {
            http {
                interface vlan.0;
            }
            https {
                system-generated-certificate;
                interface vlan.0;
            }
        }
        dhcp {
            router {
                192.168.1.1;
            }
            pool 192.168.1.0/24 {
                address-range low 192.168.1.2 high 192.168.1.254;
            }
            propagate-settings ge-0/0/0.0;
        }
    }
    syslog {
        archive size 100k files 3;
        user * {
            any emergency;
        }
        file messages {
            any critical;
            authorization info;
        }
        file interactive-commands {
            interactive-commands error;
        }
    }
    max-configurations-on-flash 5;
    max-configuration-rollbacks 5;
    license {
        autoupdate {
            url https://ae1.juniper.net/junos/key_retrieval;
        }
    }
}
interfaces {
    ge-0/0/0 {
        unit 0;
    }
    ge-0/0/1 {
        unit 0 {
            family ethernet-switching {
                port-mode access;
                vlan {
                    members LAPTOPS;
                }
            }
        }
    }
    ge-0/0/2 {
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
                vlan {
                    members [ vlan-trust AREA0 ];
                }
            }
        }
    }
    ge-0/0/3 {
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
                vlan {
                    members [ vlan-trust AREA1 ];
                }
            }
        }
    }
    ge-0/0/4 {
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
                vlan {
                    members [ vlan-trust AREA2 ];
                }
            }
        }
    }
    ge-0/0/5 {
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
                vlan {
                    members [ vlan-trust AREA3 ];
                }
            }
        }
    }
    ge-0/0/6 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members vlan-trust;
                }
            }
        }
    }
    ge-0/0/7 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members vlan-trust;
                }
            }
        }
    }
    ge-0/0/8 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members vlan-trust;
                }
            }
        }
    }
    ge-0/0/9 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members vlan-trust;
                }
            }
        }
    }
    ge-0/0/10 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members vlan-trust;
                }
            }
        }
    }
    ge-0/0/11 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members vlan-trust;
                }
            }
        }
    }
    ge-0/0/12 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members vlan-trust;
                }
            }
        }
    }
    ge-0/0/13 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members vlan-trust;
                }
            }
        }
    }
    ge-0/0/14 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members vlan-trust;
                }
            }
        }
    }
    ge-0/0/15 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members vlan-trust;
                }
            }
        }
    }
    vlan {
        unit 0 {
            family inet {
                address 192.168.1.1/24;
            }
        }
        unit 32 {
            family inet {
                address 192.168.32.1/24;
            }
        }
        unit 33 {
            family inet {
                address 192.168.33.1/24;
            }
        }
        unit 34 {
            family inet {
                address 192.168.34.1/24;
            }
        }
        unit 35 {
            family inet {
                address 192.168.35.1/24;
            }
        }
        unit 36 {
            family inet {
                address 192.168.36.1/24;
            }
        }
    }
}
routing-options {
    static {
        route 192.168.33.0/24 next-hop 192.168.33.2;
        route 192.168.208.0/24 next-hop 192.168.33.2;
    }
}
protocols {
    stp;
}
security {
    screen {
        ids-option untrust-screen {
            icmp {
                ping-death;
            }
            ip {
                source-route-option;
                tear-drop;
            }
            tcp {
                syn-flood {
                    alarm-threshold 1024;
                    attack-threshold 200;
                    source-threshold 1024;
                    destination-threshold 2048;
                    timeout 20;
                }
                land;
            }
        }
    }
    nat {
        source {
            rule-set trust-to-untrust {
                from zone trust;
                to zone untrust;
                rule source-nat-rule {
                    match {
                        source-address 0.0.0.0/0;
                    }
                    then {
                        source-nat {
                            interface;
                        }
                    }
                }
            }
        }
    }
    policies {
        from-zone trust to-zone untrust {
            policy trust-to-untrust {
                match {
                    source-address any;
                    destination-address any;
                    application any;
                }
                then {
                    permit;
                }
            }
        }
        from-zone Area to-zone Area {
            policy Area-to-Area {
                match {
                    source-address any;
                    destination-address any;
                    application any;
                }
                then {
                    permit;
                }
            }
        }
    }
    zones {
        security-zone trust {
            host-inbound-traffic {
                system-services {
                    all;
                }
                protocols {
                    all;
                }
            }
            interfaces {
                vlan.0;
            }
        }
        security-zone untrust {
            screen untrust-screen;
            interfaces {
                ge-0/0/0.0 {
                    host-inbound-traffic {
                        system-services {
                            dhcp;
                            tftp;
                        }
                    }
                }
            }
        }
        security-zone Area {
            host-inbound-traffic {
                system-services {
                    all;
                }
            }
            interfaces {
                vlan.32;
                vlan.33;
                vlan.34;
                vlan.35;
                vlan.36;
                ge-0/0/1.0 {
                    host-inbound-traffic {
                        system-services {
                            ping;
                        }
                    }
                }
                ge-0/0/2.0;
                ge-0/0/3.0;
                ge-0/0/4.0;
                ge-0/0/5.0;
            }
        }
    }
}
vlans {
    AREA0 {
        vlan-id 33;
        l3-interface vlan.33;
    }
    AREA1 {
        vlan-id 34;
        l3-interface vlan.34;
    }
    AREA2 {
        vlan-id 35;
        l3-interface vlan.35;
    }
    AREA3 {
        vlan-id 36;
        l3-interface vlan.36;
    }
    LAPTOPS {
        vlan-id 32;
        l3-interface vlan.32;
    }
    vlan-trust {
        vlan-id 3;
        l3-interface vlan.0;
    }
}
1个回答

所以我看到了一些奇怪的事情:

  • 您有一条静态路由 (192.168.33.0/24) 到同一直连子网 (vlan.33) 中的主机 - 删除它。
  • 您还在区域安全区域 (ge-0/0/1-5) 下配置了 L2 接口,也将它们删除 - 安全区域仅需要 L3 接口。

如果您的服务器在 192.168.208.0/24 范围内且位于 Brocade 的另一侧,则您需要确保 Brocade 具有指向 Laptop VLAN 192.168.32.0/24 的静态路由,下一跳为192.168.33.1 用于返回流量。