Ethernet: Difference between revisions

From Alpine Linux
(reworded for added clarity added wikitags)
(moved the transcluded content from here to setup-interfaces)
Tag: New redirect
 
Line 1: Line 1:
<!--
#REDIRECT [[Configure_Networking#setup-interfaces]]
This page is transcluded into Main Networking page [[Configure Networking]].
-->
When [[Installation|installing]] Alpine linux, the <code>setup-alpine</code> script should have given you the option to setup ethernet/networking. If you need to setup your networking after installation you can use [[Alpine setup scripts#setup-interfaces|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: {{Cmd|# 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 <code>eth0</code> for Ethernet or <code>wlan0</code> for wireless device, as appropriate.
 
if asked:
 
<code>Ip address for eth0? (or 'dhcp', 'none', '?') [dhcp]</code>
 
choose '''dhcp'''
 
Now it will ask <code>Do you to do any manual network configuration? (y/n) [n]</code>
 
In most cases, you can accept the default option '''n''' . Choose '''y''' to open the {{Path|/etc/network/interfaces}} file for editing in [[BusyBox#vi| '''vi''' editor]] to proceed with manual network configuration.
 
The above script configures Networking service adds to boot run level and starts the service. Refer [[Configure_Networking#Networking_service|Networking service]] section, if this needs to be done manually.
 
[[Category:Networking]]

Latest revision as of 05:57, 21 March 2025