Ethernet

From Alpine Linux
Revision as of 15:37, 12 January 2025 by Prabuanand (talk | contribs) (reworded for added clarity added wikitags)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

When installing Alpine linux, the setup-alpine script should have given you the option to setup ethernet/networking. If you need to setup your networking after installation you can use setup-interfaces script. The script configures wireless and ethernet interfaces in addition to other types and will satisfy most trivial configurations.

setup-interfaces

Start the script by running this command:

# setup-interfaces

Available interfaces are: eth0 wlan0.
Enter '?' for help on bridges, bonding and vlans.
Which one do you want to initialize? (or '?' or 'done') [eth0]

choose eth0 for Ethernet or wlan0 for wireless device, as appropriate.

if asked:

Ip address for eth0? (or 'dhcp', 'none', '?') [dhcp]

choose dhcp

Now it will ask Do you to do any manual network configuration? (y/n) [n]

In most cases, you can accept the default option n . Choose y to open the /etc/network/interfaces file for editing in vi editor to proceed with manual network configuration.

The above script configures Networking service adds to boot run level and starts the service. Refer Networking service section, if this needs to be done manually.