Enhancement #2872

System initialization: change default ip addresses

Added by Giacomo Sanchietti almost 7 years ago. Updated almost 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-base
Target version:v6.5
Resolution: NEEDINFO:No

Description

After the first boot the system executes the system-init event.
The event takes care to initialize the network configuration with the following criteria:
  • the first network interface found is the green one
  • if the green network interface has a static ip, just use it
  • it he green network interface has a dynamic ip, configure the dynamic ip as static
  • otherwise fallback to 192.168.1.100 as green static ip and 192.168.1.1 as green gateway
New fallback network configuration should be:
  • green interface with no gateway
  • static ip for green interface: 192.168.1.1

Related issues

Related to NethServer 6 - Enhancement #2873: Handle nethserver-firewall-base uninstallation CLOSED

Associated revisions

Revision 5e4e7afe
Added by Giacomo Sanchietti almost 7 years ago

DB initialization: change default network configuration. Refs #2872

Revision 795cb73d
Added by Davide Principi almost 7 years ago

Merged into master. Refs #2873 #2872

  • Handle nethserver-firewall-base uninstallation
  • System initialization: change default ip addresses

History

#1 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from NEW to TRIAGED
  • Target version set to v6.5
  • % Done changed from 0 to 20

#2 Updated by Giacomo Sanchietti almost 7 years ago

  • Description updated (diff)

#3 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#4 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

Implementation on branch b2872.

#5 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-base-2.3.0-3.0git5e4e7afe.ns6.noarch.rpm
    nethserver-base-2.3.0-10.0git8f3b0d95.ns6.noarch.rpm
Test case 1
  • Install a clean CentOS 6.5
  • Temporary enable the network interface with ifconfig command
  • Install NethServer:
    yum localinstall -y http://pulp.nethserver.org/nethserver/nethserver-release.rpm
    rpm --import /etc/pki/rpm-gpg/*
    yum --disablerepo=* --enablerepo=nethserver-base,nethserver-updates,centos-base,centos-updates --releasever=6.5 install @nethserver-iso -y
    touch /var/spool/first-boot
    
  • Update the nethserver-base package from nethserver-testing (make sure to disable yum plugins)
  • Reboot the machine
  • After the boot the machine must have a configured network interface with IP 192.168.1.1 and no gateway
Test case 2
  • Execute test case 1 but before reboot, configure the network interface with a static ip address using configuration files
  • After reboot the machine must have the previously configured IP
Test case 3
  • Execute test case 1 but before reboot, configure the network interface with DHCP using configuration files
  • After reboot the machine must have an IP from the DHCP server

#6 Updated by Davide Principi almost 7 years ago

  • Assignee set to Davide Principi

#7 Updated by Davide Principi almost 7 years ago

#8 Updated by Davide Principi almost 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 90

#9 Updated by Davide Principi almost 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-base-2.4.0-1.ns6.noarch.rpm

Also available in: Atom PDF