diff options
| author | Curt Brune <[email protected]> | 2017-04-17 09:31:14 -0700 |
|---|---|---|
| committer | Curt Brune <[email protected]> | 2017-04-19 09:48:25 -0700 |
| commit | a3f47f92a02a020ea39ea70dbcb66780447eab40 (patch) | |
| tree | 99a5391e6ce07560e72b9f607a5102c7b8100bf4 /rootconf | |
| parent | daeb0b4fead0a0d1d8945090a8c280cc75dcd04a (diff) | |
networking: bring up link on the loopback interface
The boot time networking script never brought the link up for the
loopback interface (lo). This is a historical oversight that never
caused any problems with the ONIE services.
While not fatal, it is confusing that the loopback address, 127.0.0.1,
and the host name "localhost" do not function properly.
This patch brings up the "lo" interface as part of the system
networking initialization.
Closes: #498
Signed-off-by: Curt Brune <[email protected]>
Diffstat (limited to 'rootconf')
| -rwxr-xr-x | rootconf/default/etc/init.d/networking.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rootconf/default/etc/init.d/networking.sh b/rootconf/default/etc/init.d/networking.sh index 551195b0..8b261bf4 100755 --- a/rootconf/default/etc/init.d/networking.sh +++ b/rootconf/default/etc/init.d/networking.sh @@ -186,10 +186,12 @@ config_ethmgmt() return $return_value } -# When starting the network at boot time configure the MAC addresses -# for all the Ethernet management interfaces. if [ "$1" = "start" ] ; then - # Configure Ethernet management MAC addresses + # Bring up the loopback interface + cmd_run ip link set dev lo up + + # When starting the network at boot time configure the MAC + # addresses for all the Ethernet management interfaces. intf_list=$(net_intf) intf_counter=0 |
