[ 
https://issues.apache.org/jira/browse/VCL-970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15384838#comment-15384838
 ] 

ASF subversion and git services commented on VCL-970:
-----------------------------------------------------

Commit 1753423 from [email protected] in branch 'vcl/trunk'
[ https://svn.apache.org/r1753423 ]

VCL-961
Added generate_ifcfg_file subroutines to Linux.pm. Updated enable_dhcp and 
set_static_public_address to use it.

Reworked Linux.pm::set_static_public_address to not simply overwrite the 
ifcfg-* file. Changed set_static_public_address to use set_default_gateway and 
update_resolv_conf subroutines rather than using duplicated code.

Updated Linux.pm::get_network_configuration to retrieve network bridge 
information and add it to the hash returned. Updated 
OS.pm::get_public_interface_name to check if the configuration for an interface 
contains a 'master' key indicating that the interface is a slave -- usually 
because it is bridged. If this key is set then the interface isn't considered.

Fixed some regex/parsing issues with Linux.pm::get_network_bridge_info.


VCL-970
Added code to create a route-* file in Linux.pm::set_default_gateway so that 
the default gateway persists across reboots. Also added code to enable_dhcp to 
delete an interface's route-* file.


VCL-969
Added code to Linux.pm::pre_capture to disable the 'firstboot' service if it 
exists.

> Linux images lose default gateway when rebooted if static public IP address 
> is used
> -----------------------------------------------------------------------------------
>
>                 Key: VCL-970
>                 URL: https://issues.apache.org/jira/browse/VCL-970
>             Project: VCL
>          Issue Type: Bug
>          Components: vcld (backend)
>    Affects Versions: 2.4.2
>            Reporter: Andy Kurth
>            Assignee: Andy Kurth
>             Fix For: 2.5
>
>
> On Linux images, a default route is added when setting a static public IP 
> address using the _route_ command.  This route does not persist if the 
> computer is rebooted.
> To resolve this for Red Hat-based distributions, a file should be added for 
> the public interface when a static IP is set:
> */etc/sysconfig/network-scripts/route-<interface>*
> The contents should be:
> {noformat}default via [gateway IP] dev [interface]{noformat}
> I don't think this is currently a problem for Ubuntu.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to