Ethernet Switching
Highlighted
Ethernet Switching

EX2200 I would like to set 4 ports for WAN usage

‎10-11-2018 07:53 AM

I have EX2200 configured with some vlans but I would like to sacrifice 4 ports be configured as "unmanaged" to work with WAN ISP - I need extra 4 ports for that purpose so I can connect 3 device and ISP WAN.

 

Basically, instead of placing an unmanaged switch, I would like to use these 4 ports. Should the config looks like this:

 

interfaces {
ge-0/0/0 {
unit 0 {
family ethernet-switching {
storm-control default;
}
}
}
ge-0/0/1 {
unit 0 {
family ethernet-switching {
storm-control default;
}
}
}
ge-0/0/2 {
unit 0 {
family ethernet-switching {
storm-control default;
}
}
}
ge-0/0/3 {
unit 0 {
family ethernet-switching {
storm-control default;
}
}
}
 
rstp {
interface ge-0/0/0;
interface ge-0/0/1;
interface ge-0/0/2;
interface ge-0/0/3;
 
do I need anything else?
4 REPLIES 4
Highlighted
Ethernet Switching
Solution
Accepted by topic author LOGTECH
‎10-16-2018 04:31 AM

Re: EX2200 I would like to set 4 ports for WAN usage

‎10-14-2018 03:32 PM

What else do you have on the ex2200?

The configuration you have will put these four ports into your current switch default vlan which is likely and internal one.

 

I assume you want to isolate these four ports from all the internal vlans.  So you have two options:

 

option 1 - layer 2 only vlan

Create a new vlan with an unused vlan tag value to assign to all four ports.

Make sure there are no layer 3 interfaces in this vlan so they cannot communicate with anything else

I doubt you need to worry about loops on these ports to the upstream routers or firewalls so the rstp is probably not needed

 

option 2 - isolated routing instance

This will create more separation and guarantee no access to internal vlans

Create a virtual router routing instance

Assign all 4 ports to this routing instance

The configuration you posted as just ethernet switching without need for vlans will work

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Highlighted
Ethernet Switching

Re: EX2200 I would like to set 4 ports for WAN usage

‎10-14-2018 10:20 PM

Hello,

 

You can create a separate vlan with 'set vlans test vlan-id <ID>' command.

And then you can put interfaces from ge-0/0/0 to ge-0/0/3 in the VLAN created using command:

'set vlans test interface <interface name>'

 

This should put all these interfaces as L2 access interfaces in specific vlan.

 

Regards,

 

Rushi

Highlighted
Ethernet Switching

Re: EX2200 I would like to set 4 ports for WAN usage

‎10-16-2018 04:30 AM

Thank you Steve,

 

I have few ports used by trunks so this option would be perfect:

 

option 1 - layer 2 only vlan

Create a new vlan with an unused vlan tag value to assign to all four ports.

Make sure there are no layer 3 interfaces in this vlan so they cannot communicate with anything else

I doubt you need to worry about loops on these ports to the upstream routers or firewalls so the rstp is probably not needed

 

Thank you

Highlighted
Ethernet Switching

Re: EX2200 I would like to set 4 ports for WAN usage

‎10-16-2018 04:31 AM

thank you Rushi