Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
ipw
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Artyom A Anikeev
2014-04-17 17:03:08 +0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
894909ff2eea5c4aea6bf8d5855fb02ead42b7d8
894909ff
1 parent
da590983
added basic info for man
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
116 additions
and
7 deletions
ipw-configsample
man/man1/ipw.1
ipw-configsample
View file @
894909f
...
...
@@ -14,6 +14,7 @@ bond0_MODE=balance-rr
bond0_VLAN_N_BRIDGES=(
10.2:thor.ext
#Is it works?
10.3:cps
10.4
10.5
...
...
man/man1/ipw.1
View file @
894909f
...
...
@@ -5,23 +5,131 @@
.SH NAME
ipw \- simple network interface configuration
.SH SYNOPSIS
.B
clsync
[ ... ]
.B
ipw
[ ... ]
.SH DESCRIPTION
.B ipw
provides bonding, bridging and .1q tagging using sysfs and the
.BR ip
(8)
utility.
.BR ip
(8)
utility.
Simple configurational fi
a
les are supported.
Simple configurational files are supported.
.SH COMMAND SYNTAX
TODO
.B fix
.RS 8
fixes current network state to configurational one.
.B ipw
tries to keep interfaces up during reconfiguretion, if possible.
.PP
.RE
.B down
.RS 8
bringes all interfaces down, deletes bondings and bridges.
.PP
.RE
.SH EXAMPLES
TODO
.RE
.SH FILES
.I /etc/ipw.conf
.RS 8
definition of network interfaces.
Lines starting with `#' are ignored. Note that end-of-line comments
are NOT supported, comments must be on a line of their own.
A line may be extended across multiple lines by making the last
character a backslash.
The file consists of D1Q_IFACES,
.BR $NAME _SLAVES,
.BR $NAME _MODE,
.BR $NAME _VLAN_N_BRIDGES,
.BR $NAME _IP
variables. Here is an example.
#This is a comment
D1Q_IFACES=(bond0 bond1)
bond0_SLAVES=(eth0 eth1)
bond1_SLAVES=(eth2)
bond0_MODE=balance-rr
bond0_VLAN_N_BRIDGES=(
10.2:thor.ext
10.3:cps
10.4
50
12:
:cps.int
)
bond1_VLAN_N_BRIDGES=(
441
:cps.int
)
thor_ext_IP=(
"addr add 10.10.2.2/24"
"route add default via 10.10.2.1"
)
vlan10_5_IP=(
"addr add 10.10.5.0/24"
)
.B VARIABLES
.HP
D1Q_IFACES
are required to identify bonging master names.
.HP
.BR $NAME _SLAVES
specifies slave interfaces for each master.
.HP
.BR $NAME _MODE
specifies bonding mode for each master. Default is 802.3ad.
.HP
.BR $NAME _VLAN_N_BRIDGES
specifies vlans and bridges for each master. Syntax is as foolow:
vlan.subvlan:bridge-name. Subvlan means parent (outer tag) vlan for
QinQ vlan (inner tag) interfaces (see 802.1ad).
Symbol `.' in bridge name is not a special symbol.
If :bridge is not set then "vlan$VLAN.$SUBVLAN"/"vlan$VLAN" is
used as bridge name
If bridge is set to "" then vlan inetrface is created without
creating a bridge to be enslaved by
If vlan.subvlan is set to "" then bridge is created without creating
and enslaving the vlan interface
.HP
.BR $NAME _IP
specifies commands for
.B ip
(8) uility for each interface, if required.
.PP
.RE
.SH AUTHOR
Dmitry Yu Okunev <dyokunev@ut.mephi.ru> 0x8E30679C
Artyom A Anikeev <anikeev@ut.mephi.ru> 0xB5385841
.RE
Dmitry Yu Okunev <dyokunev@ut.mephi.ru> 0x8E30679C
.SH SUPPORT
TODO
.SH "SEE ALSO"
.BR ip (8)
.BR ip (8)
.
...
...
Please
register
or
login
to post a comment