working on the interfaces page
[CBFWR.git] / doco / configs.txt
1 there are 3 areas in shared memory reserved for configuration.
2
3 0 - fs configuration
4 1 - boot hardware config
5 2 - running config (deltas from 0)
6 3 - web config (contains only deltas from 0).
7
8 web config writes directly to 3 and messages cbrwrd about stuff.
9
10 config layout is like this:
11 [status] = conf|noconf|nodir|changelevel
12 [hostname] = hostname
13 [domainname] = domainname
14 [login][username] = sha1password
15 [zone][<zonename>][name]=1
16 [interface][<interfacename>][desciption] = desc
17                             [name] = name
18                             [address4] = address
19                             [address6] = address
20                             [zone] = zone
21                             [mtu] = mtu
22                             [speed] = speed
23                             [duplex] = duplex
24
25
26                             
27 [interface][lag][<lagname>][<x>] = interface
28                 [description] = desc
29                 
30 [interface][bridge][<bridgename>][<x>] = interface
31                       [description]
32                       
33 [route4][default|<network>][address] = gateway
34                            [device] = device
35                            [description]
36
37 [route6][default|<network>][address] = gateway
38                            [device] = device
39                            [description]
40                            
41 [dns][server][<x>][address] = address
42
43 [ntp][server][<x>][address] = adddress
44
45 [hardware][netdev][<itnerface>][name] = realname
46                                [driver] = driver
47                                [mtu] = mtu
48                                [hwaddress] = mac address