1 The network configuration in Kamikaze is stored in
\texttt{/etc/config/network
}
2 and is divided into interface configurations.
3 Each interface configuration either refers directly to an ethernet/wifi
4 interface (
\texttt{eth0
},
\texttt{wl0
}, ..) or to a bridge containing multiple interfaces.
11 option ipaddr "
192.168.1.1"
12 option netmask "
255.255.255.0"
13 option gateway "
192.168.1.254"
14 option dns "
192.168.1.254"
17 \texttt{ifname
} specifies the Linux interface name.
18 If you want to use bridging on one or more interfaces, set
\texttt{ifname
} to a list
19 of interfaces and add:
24 It is possible to use VLAN tagging on an interface simply by adding the VLAN IDs
25 to it, e.g.
\texttt{eth0.1
}. These can be nested as well.
27 This sets up a simple static configuration for
\texttt{eth0
}.
\texttt{proto
} specifies the
28 protocol used for the interface. The default image usually provides
\texttt{'none'
}
29 \texttt{'static'
},
\texttt{'dhcp'
} and
\texttt{'pppoe'
}. Others can be added by installing additional
32 When using the
\texttt{'static'
} method like in the example, the options
\texttt{ipaddr
} and
33 \texttt{netmask
} are mandatory, while
\texttt{gateway
} and
\texttt{dns
} are optional.
34 DHCP currently only accepts
\texttt{ipaddr
} (IP address to request from the server)
35 and
\texttt{hostname
} (client hostname identify as) - both are optional.
37 PPP based protocols (
\texttt{pppoe
},
\texttt{pptp
}, ...) accept these options:
40 The PPP username (usually with PAP authentication)
44 Ping the PPP server (using LCP). The value of this option
45 specifies the maximum number of failed pings before reconnecting.
46 The ping interval defaults to
5, but can be changed by appending
47 ",<interval>" to the keepalive value
49 Use Dial on Demand (value specifies the maximum idle time.
51 \item{server: (pptp)
} \\
52 The remote pptp server IP
55 For all protocol types, you can also specify the MTU by using the
\texttt{mtu
} option.
58 \subsubsection{Setting up the switch (currently broadcom only)
}
60 The switch configuration is set by adding a
\texttt{'switch'
} config section.
65 option vlan0 "
1 2 3 4 5*"
69 On Broadcom hardware the section name needs to be eth0, as the switch driver
70 does not detect the switch on any other physical device.
71 Every vlan option needs to have the name vlan<n> where <n> is the VLAN number
72 as used in the switch driver.
73 As value it takes a list of ports with these optional suffixes:
77 Set the default VLAN (PVID) of the Port to the current VLAN
79 Force the port to be untagged
81 Force the port to be tagged
84 The CPU port defaults to tagged, all other ports to untagged.
85 On Broadcom hardware the CPU port is always
5. The other ports may vary with