
9
Port group Management
Port group management commands provide convenience of switching bunch of
ports together identified by a name. Group name can be any alpha-numeric name.
Group name can not be just a number or start with a number. For example group
name can not be “10” or 10gp1. The following are the group commands. Whenever
you see reference to port_group it is same as group name.
Osctl provides 5 different syntaxes to manage port group functions.
1.
To create a new group
$ osctl
osctl
osctl
osctl ----cccc <port_group>
<port_group>
<port_group>
<port_group> {<in_port#/s> | <inport_range>}
{<in_port#/s> | <inport_range>}
{<in_port#/s> | <inport_range>}
{<in_port#/s> | <inport_range>}
2.
To update existing group
$ osctl
osctl
osctl
osctl ----u
u
u
u <port_group>
<port_group>
<port_group>
<port_group> {{{{----a |
a |
a |
a | ----r <in_port#/s>}
r <in_port#/s>}
r <in_port#/s>}
r <in_port#/s>}
3.
To delete a group
$ osctl
osctl
osctl
osctl ----d
d
d
d <port_group>
<port_group>
<port_group>
<port_group>
4.
To delete all groups
$ osctl
osctl
osctl
osctl ----R
R
R
R
5.
To list ports in a group
$ osctl
osctl
osctl
osctl ----l
l l
l [<port_group> | <in_port#>]
[<port_group> | <in_port#>]
[<port_group> | <in_port#>]
[<port_group> | <in_port#>]
For example
:
$ osctl
osctl
osctl
osctl ----c
c
c
c gp1
gp1
gp1
gp1 "1 3 4"
"1 3 4"
"1 3 4"
"1 3 4"
creates group named "gp1" with ports 1,3 and 4. The double quotes
around space separated port numbers are required, without that
command will fail. Note that when you create a group, all the ports in the
gp1 group are
switched to
switched to
switched to
switched to output port
output port
output port
output port 1
1
1
1 by default
by default
by default
by default
.
$ osctl
osctl
osctl
osctl ----c gp2 "1
c gp2 "1
c gp2 "1
c gp2 "1----3
3
3
3""""
creates group named "gp2" with ports 1,2 and 3 (1 to 3 range)
$ osctl
osctl
osctl
osctl ----u
u
u
u gp1
gp1
gp1
gp1 ----a
a
a
a """"2 4
2 4
2 4
2 4""""
adds ports 2 & 4 to existing group gp1
$ osctl
osctl
osctl
osctl ----u gp1
u gp1
u gp1
u gp1 ----a 3
a 3
a 3
a 3
adds port 3 to existing group gp1
$ osctl
osctl
osctl
osctl ----u
u
u
u gp1
gp1
gp1
gp1 –
––
–rrrr "2 4
"2 4
"2 4
"2 4""""
removes ports 2 & 4 from group gp1
$ osctl
osctl
osctl
osctl ----d
d
d
d g
gg
gp1
p1
p1
p1
deletes group gp1 and release all ports which were part of the group.
Содержание OS414-MM
Страница 2: ...2 ...