Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-10 Thread Bjørn Mork
Cord MacLeod cordmacl...@gmail.com writes:

 Park yourself in edit vlans vlan xxx

 The run this on your local Linux machine:

 for i in `seq 0 23`; do echo set interface ge-0/0/$i; done

Or just do it on the system everyone has:

% uname -sr
JUNOS 9.5R2.7
% awk 'BEGIN {for (x=0; x=23; x++) print set interface ge-0/0/ x}'
set interface ge-0/0/0
set interface ge-0/0/1
set interface ge-0/0/2
set interface ge-0/0/3
set interface ge-0/0/4
set interface ge-0/0/5
set interface ge-0/0/6
set interface ge-0/0/7
set interface ge-0/0/8
set interface ge-0/0/9
set interface ge-0/0/10
set interface ge-0/0/11
set interface ge-0/0/12
set interface ge-0/0/13
set interface ge-0/0/14
set interface ge-0/0/15
set interface ge-0/0/16
set interface ge-0/0/17
set interface ge-0/0/18
set interface ge-0/0/19
set interface ge-0/0/20
set interface ge-0/0/21
set interface ge-0/0/22
set interface ge-0/0/23


 That's the way I mass edit.

Seriously though, you should do mass edits.  Or edits at all.  You
should use an offline configuration system and upload configuration
diffs from these system after following some sort of quality assurance
procedure. Direct edits are bound to give errors.


Bjørn
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-10 Thread Chuck Anderson
On Fri, Jul 10, 2009 at 11:53:13AM +0200, Bjørn Mork wrote:
 Seriously though, you should do mass edits.  Or edits at all.  You
 should use an offline configuration system and upload configuration
 diffs from these system after following some sort of quality assurance
 procedure. Direct edits are bound to give errors.

I would love to hear about systems people are using to do this.  Are 
they custom or off-the-shelf?  Who makes the software?
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-10 Thread Bjørn Mork
Chuck Anderson c...@wpi.edu writes:
 On Fri, Jul 10, 2009 at 11:53:13AM +0200, Bjørn Mork wrote:
 Seriously though, you should do mass edits.  Or edits at all.  You
 should use an offline configuration system and upload configuration
 diffs from these system after following some sort of quality assurance
 procedure. Direct edits are bound to give errors.

 I would love to hear about systems people are using to do this.  Are 
 they custom or off-the-shelf?  Who makes the software?

We use or own home-brewed, loosely based on JUNOScript.


Bjørn
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-07 Thread Shane Ronan
42 interfaces? How do you figure? With a virtual chassis  
configuration, you can have many more then 42 interfaces. I have one  
configuration where I have 192 ports in one configuration.



On Jul 3, 2009, at 4:12 PM, Dan Farrell wrote:


I'm not sure that this is always a good idea, anyway.

Let's say you reach a point where you want to prune your interface  
membership... you just want, let's say, to remove one interface from  
the range.


Would that action of deleting the line and re-submitting it without  
the interface you want remove reset the membership of the others?  
It's not unreasonable to think that action would take place.


IMHO in these instances I've always just dealt with it and added  
each one by hand, knowing I can prune any of the individually in the  
future with no possible effect on the remaining interfaces.


Also, the worst it's going to get would be 42 interfaces...


Dan

-Original Message-
From: juniper-nsp-boun...@puck.nether.net [mailto:juniper-nsp-boun...@puck.nether.net 
] On Behalf Of Matt Stevens

Sent: Thursday, July 02, 2009 9:19 PM
To: Matt Stevens; juniper-nsp@puck.nether.net
Subject: Re: [j-nsp] Add vlan to multiple interfaces on EX series

Sigh...from everyone's answers it appears the short answer to this  
question

is no.

I guess I'll take this up with my account team.

Thanks everyone!
--
matt


On 7/2/09 12:25 PM, Matt Stevens m...@elevate.org wrote:

Is there an easy way to add a new VLAN to multiple interfaces on  
the EX
series switches? I'd like to be able to use a port range for both  
adding

vlans to trunk ports and putting access ports into a specific vlan.

Both seem to only allow actions to be performed on a single port at  
a time.



___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-07 Thread Yevgeniy Voloshin
Hi Matt,

did you already check Jeff Doyle on IP Routing blog:
Using JUNOS Macros by jdoyle on Thu, 09/18/08 - 5:33pm.
 http://www.networkworld.com/community/node/32900

May be macro script can help you?

---
Yev.


2009/7/2 Matt Stevens m...@elevate.org

 Is there an easy way to add a new VLAN to multiple interfaces on the EX
 series switches? I'd like to be able to use a port range for both adding
 vlans to trunk ports and putting access ports into a specific vlan.

 Both seem to only allow actions to be performed on a single port at a time.
 --
 matt


 ___
 juniper-nsp mailing list juniper-nsp@puck.nether.net
 https://puck.nether.net/mailman/listinfo/juniper-nsp

___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-04 Thread Pavel Lunin
Hi,

I didn't checked myself whether Juniper realized port-range feature (I have
no access to the lab due to the weekend came up) , but I remember they
promised to do so in 'future release' some half a year ago. So if they
didn't yet it might be a conscious move, though hard to guess why.

But first I think you have such a feature in webui, don't you?

Second nobody deprives us of a standard JUNOS cli way -- configuration
groups:
http://www.juniper.net/techpubs/en_US/junos9.5/information-products/topic-collections/swconfig-cli/id-11139566.html

--
Regards,
Pavel

2009/7/2 Matt Stevens m...@elevate.org

 Is there an easy way to add a new VLAN to multiple interfaces on the EX
 series switches? I'd like to be able to use a port range for both adding
 vlans to trunk ports and putting access ports into a specific vlan.

 Both seem to only allow actions to be performed on a single port at a time.
 --
 matt


 ___
 juniper-nsp mailing list juniper-nsp@puck.nether.net
 https://puck.nether.net/mailman/listinfo/juniper-nsp

___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-03 Thread Dan Farrell
I'm not sure that this is always a good idea, anyway.

Let's say you reach a point where you want to prune your interface 
membership... you just want, let's say, to remove one interface from the 
range.

Would that action of deleting the line and re-submitting it without the 
interface you want remove reset the membership of the others? It's not 
unreasonable to think that action would take place.

IMHO in these instances I've always just dealt with it and added each one by 
hand, knowing I can prune any of the individually in the future with no 
possible effect on the remaining interfaces.

Also, the worst it's going to get would be 42 interfaces... 


Dan

-Original Message-
From: juniper-nsp-boun...@puck.nether.net 
[mailto:juniper-nsp-boun...@puck.nether.net] On Behalf Of Matt Stevens
Sent: Thursday, July 02, 2009 9:19 PM
To: Matt Stevens; juniper-nsp@puck.nether.net
Subject: Re: [j-nsp] Add vlan to multiple interfaces on EX series

Sigh...from everyone's answers it appears the short answer to this question
is no.

I guess I'll take this up with my account team.

Thanks everyone!
-- 
matt


On 7/2/09 12:25 PM, Matt Stevens m...@elevate.org wrote:

 Is there an easy way to add a new VLAN to multiple interfaces on the EX
 series switches? I'd like to be able to use a port range for both adding
 vlans to trunk ports and putting access ports into a specific vlan.
 
 Both seem to only allow actions to be performed on a single port at a time.


___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-02 Thread Malte von dem Hagen
Hi,

Matt Stevens schrieb:
 Is there an easy way to add a new VLAN to multiple interfaces on the EX
 series switches? I'd like to be able to use a port range for both adding
 vlans to trunk ports and putting access ports into a specific vlan.

yes, I definitely like to have a interface range as well.

 Both seem to only allow actions to be performed on a single port at a time.

yes and no. You may define vlan membership of interfaces below the vlans stanza:

Complete Software Guide for JUNOS® Software for EX-series Switches, Release 9.5

vlans {
  vlan-name {
...
interface interface-name;
vlan-id number;
  }
}

IMHO, it's bad style, though.

rgds,

.m
-- 
Malte v. dem Hagen

Abteilung Technik - Network Operations Centre
--
Host Europe GmbH - http://www.hosteurope.de/
Welserstrasse 14 - D-51149 Köln - Germany
Telefon 0800 467 8387- Telefax +49 180 5 66 3233*
HRB 28495 Amtsgericht Köln   - USt-IdNr.: DE187370678
GF: Uwe Braun - Alex Collins - Mark Joseph - Patrick Pulvermüller
--
*  0,14 EUR/Min. aus dem dt. Festnetz, Mobilfunkpreise ggf. abweichend



signature.asc
Description: OpenPGP digital signature
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-02 Thread Bjørn Tore

Malte von dem Hagen skrev:

Hi,

Matt Stevens schrieb:
  

Is there an easy way to add a new VLAN to multiple interfaces on the EX
series switches? I'd like to be able to use a port range for both adding
vlans to trunk ports and putting access ports into a specific vlan.



yes, I definitely like to have a interface range as well.

  

Both seem to only allow actions to be performed on a single port at a time.



yes and no. You may define vlan membership of interfaces below the vlans stanza:

Complete Software Guide for JUNOS® Software for EX-series Switches, Release 9.5

vlans {
  vlan-name {
...
interface interface-name;
vlan-id number;
  }
}

IMHO, it's bad style, though.

rgds,

.m
  

Actually HP has a quite smooth approach there;

HP-switch# con
HP-switch(config)# vlan 11
HP-switch(vlan-11)# tag a5-a7,a18-b2


/BT
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-02 Thread Matt Stevens
Sigh...from everyone's answers it appears the short answer to this question
is no.

I guess I'll take this up with my account team.

Thanks everyone!
-- 
matt


On 7/2/09 12:25 PM, Matt Stevens m...@elevate.org wrote:

 Is there an easy way to add a new VLAN to multiple interfaces on the EX
 series switches? I'd like to be able to use a port range for both adding
 vlans to trunk ports and putting access ports into a specific vlan.
 
 Both seem to only allow actions to be performed on a single port at a time.


___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-02 Thread Cord MacLeod

Park yourself in edit vlans vlan xxx

The run this on your local Linux machine:

for i in `seq 0 23`; do echo set interface ge-0/0/$i; done

That's the way I mass edit.


On Jul 2, 2009, at 6:18 PM, Matt Stevens wrote:

Sigh...from everyone's answers it appears the short answer to this  
question

is no.

I guess I'll take this up with my account team.

Thanks everyone!
--
matt


On 7/2/09 12:25 PM, Matt Stevens m...@elevate.org wrote:

Is there an easy way to add a new VLAN to multiple interfaces on  
the EX
series switches? I'd like to be able to use a port range for both  
adding

vlans to trunk ports and putting access ports into a specific vlan.

Both seem to only allow actions to be performed on a single port at  
a time.



___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


Re: [j-nsp] Add vlan to multiple interfaces on EX series

2009-07-02 Thread Charles Sprickman

On Thu, 2 Jul 2009, Cord MacLeod wrote:


Park yourself in edit vlans vlan xxx

The run this on your local Linux machine:

for i in `seq 0 23`; do echo set interface ge-0/0/$i; done


Or on another unix without seq, you may find jot:

jot -w set interface ge-0/0/ 23 0

-data in quotes is text to echo
-first number is the count
-second number is starting number

Charles


That's the way I mass edit.


On Jul 2, 2009, at 6:18 PM, Matt Stevens wrote:


Sigh...from everyone's answers it appears the short answer to this question
is no.

I guess I'll take this up with my account team.

Thanks everyone!
--
matt


On 7/2/09 12:25 PM, Matt Stevens m...@elevate.org wrote:


Is there an easy way to add a new VLAN to multiple interfaces on the EX
series switches? I'd like to be able to use a port range for both adding
vlans to trunk ports and putting access ports into a specific vlan.

Both seem to only allow actions to be performed on a single port at a 
time.



___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp


___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

___
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp