1
2icfg(1)                              icfg                              icfg(1)
3
4
5

NAME

7       icfg - Create and modify network interface configuration files
8
9

SYNOPSIS

11       icfg <-i interface name> [options]
12
13

DESCRIPTION

15       icfg is a utility for creating and modifying network interface configu‐
16       ration files.
17
18

OPTIONS

20       -h, --help
21              Prints all available options and their meanings
22
23
24       -i IFACE, --interface=IFACE
25              Specifies the name of the interface being crated/manipulated
26
27
28       -c, --create
29              Creates a new interface configuration file, using the name  pro‐
30              vided with -i/--interface
31
32
33       -t, --type
34              When  creating  an  interface, This option selects the interface
35              type, so that the proper default keys are created in  the  file.
36              current supported types are:
37
38       eth Standard Ethernet interface
39
40       bond Bonded interface
41
42       vlan Vlan interface
43
44
45       -q, --quiet
46              Suppress output on the command line.  Useful for scripting.
47
48
49       -d, --dump
50              Dump  the  Key/value pairs of the config file specified with the
51              -i/--interface option to stdout
52
53
54       -s NEWVALS, --set=NEWVALS
55              Add, remove or modify a key in a config file,  as  specified  by
56              the  -i/--interface  options.   See EXAMPLES section for various
57              uses. Note this option can be used iteratively
58
59
60       --enslave SLAVE
61              Add a slave to a bonded interface
62
63
64       --deslave SLAVE
65              Remove a slave from a bonded interface
66
67
68       --list-slaves
69              List the slaves of a bonded interface as  specified  by  the  -i
70              /--interface option
71
72

EXAMPLES

74       Create a standard ethernet interface named eth0
75              icfg -i eth0 -c -t eth
76
77       Modify the eth0 config to set the BOOTPROTO and ONBOOT keys
78              icfg -i eth0 -s BOOTPROTO=dhcp -s ONBOOT=yes
79
80       Modify the eth0 config to clear the HWADDR key
81              icfg -i eth0 -s BOOTPROTO=dhcp -s HWADDR
82
83       Dump the contents of eth0 to stdout
84              icfg -i eth0 -d
85
86       Create a bonded interface named bond0 and set its BONDING_OPTS key
87              icfg  -i  bond0  -c  -t bond -s BONDING_OPTS="mode=active-backup
88              miimon=100"
89
90       Enslave eth0 and eth1 to bond0
91              icfg -i bond0 --enslave eth0 --enslave eth1
92
93       Remove eth1 as a slave of bond0
94              icfg -i bond0 --deslave eth1
95
96       List the slaves of bond0 on stdout
97              icfg -i bond- --list-slaves
98
99

HOMEPAGE

101       Comming soon
102
103
104
105Linux                              Nov 2011                            icfg(1)
Impressum