Ethernet: Difference between revisions

From Alpine Linux
(Created page with "''From [https://en.wikipedia.org/wiki/Ethernet Wikipedia]:'' Ethernet is a family of wired computer networking technologies commonly used in local area networks (LAN), metrop...")
 
(reworded for added clarity added wikitags)
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
''From [https://en.wikipedia.org/wiki/Ethernet Wikipedia]:''
<!--
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.  


Ethernet is a family of wired computer networking technologies commonly used in local area networks (LAN), metropolitan area networks (MAN) and wide area networks (WAN). It was commercially introduced in 1980 and first standardized in 1983 as IEEE 802.3. Ethernet has since been refined to support higher bit rates, a greater number of nodes, and longer link distances, but retains much backward compatibility.
== setup-interfaces ==


<br>
Start the script by running this command: {{Cmd|# setup-interfaces}}


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


When installing [[Alpine setup scripts|setup-alpine]] should give you the option to easily setup Ethernet or if you need to setup Ethernet after installation you can use [[Alpine setup scripts#setup-interfaces|setup-interfaces]].
choose <code>eth0</code> for Ethernet or <code>wlan0</code> for wireless device, as appropriate.
 
==== setup-interfaces ====
 
start by running this command:
 
{{Cmd|# setup-interfaces}}
 
<br>
 
{{Cat|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> (or your Ethernet device)
 
<br>


if asked:
if asked:


<code>Ip address for eth0? (or 'dhcp', 'none', '?') [dhcp]</code>
<code>Ip address for eth0? (or 'dhcp', 'none', '?') [dhcp]</code>


choose '''dhcp'''
choose '''dhcp'''


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


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.


unless you have a reason to choose '''n''', if you need to do manual network configuration choose '''y''' and it will open the '''interfaces''' file.
[[Category:Networking]]

Latest revision as of 15:37, 12 January 2025

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.