Feature #1081
Colored net interfaces
Status: | CLOSED | Start date: | 05/28/2012 | |
---|---|---|---|---|
Priority: | High | Due date: | 11/19/2012 | |
Assignee: | - | % Done: | 100% | |
Category: | nethserver-base | |||
Target version: | NSA1 | |||
Resolution: | NEEDINFO: |
Description
DBF05 Re-design configuration
database {Internal,External}Interface keys =>
green
, red
, blue
...
Related issues
Associated revisions
network-config-restart action: removed extra "dev" parameter to `ip` command. Refs #1081 -- Colored net interfaces
network-config-restart action: ensure MAC address is uppercase. Stop network at first, to bring down dhclient. Check commands exit code. Refs #1081
Added executable flag to network-config-* actions.
sshd_config: get LocalIP from InterfacesDB. Refs #1081 -- Colored net interfaces
History
#1 Updated by Davide Principi over 9 years ago
- Description updated (diff)
#2 Updated by Davide Principi about 9 years ago
- Project changed from NethServer 6 to 1
#3 Updated by Davide Principi about 9 years ago
- Assignee set to Giacomo Sanchietti
- Start date set to 05/28/2012
#4 Updated by Giacomo Sanchietti almost 9 years ago
Database: network_interfaces
Each entry describe a network interface according to CentOS/RHEL specification for network-scripts files:
<device_name> = type role = <role> <param> = <value><type> is the type of inteface. Valid values are:
- ethernet
- bond
- bridge
- alias
- ipsec (https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/4/html/Security_Guide/s1-ipsec-host2host.html)
- if the device is a physical ethernet device, the name will start with the role name followed by an optional ordering number. Eg: green, orange, red1, red2, ecc
- if the device is a logical device, name will be the standard one for the specific function. Eg: bond0, br0, br1, ecc
All ethernet devices are renamed using udev rules like (/etc/udev/rules.d/70-persistent-net.rules):
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:de:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="green"<role> is a mandatory parameter which describe the interface role. Valid values are:
- green: local network, all services are exposed on this interface by default
- orange: DMS network
- blue: guest network
- red: external network, usually Internet
- yellow: reserved for private network (eg. cluster)
- empty: ethernet not assigned
- ippaddr
- hwaddr
- dhcp_hostname
- netmask
- slave
- ...
All parameters will be mapped 1-to-1 to the configuration file
#5 Updated by Giacomo Sanchietti almost 9 years ago
- Status changed from NEW to ON_DEV
#7 Updated by Davide Principi almost 9 years ago
- Priority changed from Normal to High
#8 Updated by Davide Principi over 8 years ago
- Due date set to 11/19/2012
- Status changed from ON_DEV to CLOSED
- % Done changed from 0 to 100
#9 Updated by Davide Principi over 8 years ago
- Project changed from 1 to NethServer 6