Skip to content

Use of non-standard device name in script master.sh #19

@ifriedman7

Description

@ifriedman7

In the master.sh script, there is a command that will almost always fail:
MASTER_PRIVATE_IP=$(ip addr show eth1 | awk '/inet / {print $2}' | cut -d/ -f1)
This is due to 'eth1' not being the name of an existing device. Additionally, 'eth1' does not follow the Consistent Network Device Naming convention.
I suggest using 'ip addr show scope global'. This should produce working results.
MASTER_PRIVATE_IP=$(ip addr show scope global | awk '/inet / {print $2}' | cut -d/ -f1)
This worked for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions