Ethernet Switching
Reply
Visitor
Shailender
Posts: 6
Registered: ‎12-22-2007
0

Route ports on Ex3200 Switch....

Hi All,

 

I am new to Juniper Switchees , My scenario is very simple..

 

I have multiple VLANs on Switch and intervlan routing done at switch only.

 

I have one firewall connected to this switch and wanna make communication of all vlans to outside .

 

If i add default route on switch next gateway as firewall IP. but firewall connected to switch port in, switch port should be in which mode.... to make communication for all vlans..

Contributor
a_2X4
Posts: 47
Registered: ‎10-23-2008
0

Re: Route ports on Ex3200 Switch....

You state that you have intervlan routing at the switch. If that is to say your switch contains the default-gateway address for each of the VLANs, then you need to have the port to the firewall be an access port.

 

  Better yet, assign the port to the firewall an IP address with /30 and the corresponding firewall port the other IP of the /30.

 

 Example:

ge-0/0/23 {

    description "Port to Firewall";
    unit 0 {
        family inet{

             address 192.168.0.2/30;
        }
    }

  vlan {

    unit 20 {
        description Purchasing;
        family inet {
            address 192.168.18.1/24;
        }
    }
    unit 21 {
        description Payroll;
        family inet {
            address 192.168.19.1/24;
        }
    }
...

vlans {
    Purchasing {
        vlan-id 20;
        l3-interface vlan.20;
    }
    Payroll {
        vlan-id 21;
        l3-interface vlan.21;
...
 

routing-options {
    static {
        route 0.0.0.0/0 next-hop 192.168.0.1;
    }
}

 

 

And have the port on the firewall be 192.168.0.1/30 .

 

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.