Ethernet: Difference between revisions

From Alpine Linux
(cleaned up the page with headings and spacing)
(moved the transcluded content from here to setup-interfaces)
Tag: New redirect
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Ethernet is a relatively generic term that mostly means "wired internet". WiFi is wireless, ethernet involves some sort of wire (usually an RJ45 style jack with copper cables inside).
#REDIRECT [[Configure_Networking#setup-interfaces]]
 
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 ethernet after installation you can use [[Alpine setup scripts#setup-interfaces|setup-interfaces]] script.
 
== 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> (or your Ethernet device, Ethernet devices usually start with <code>e</code> )
 
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>
 
unless you need to do manual network configuration choose '''n''', if you need to do manual network configuration choose '''y''' and it will open the <code>/etc/network/interfaces</code> file.
 
== Configuration ==
 
The above script generally configures Networking service by adding the networking service to boot run level and starts the service.
 
If for some reason, this needs to be done manually, here are the steps:
To '''start''' (or '''restart''') the networking service: {{Cmd|# rc-service networking --quiet start &}}
To add networking service so that it starts on boot: {{Cmd|# rc-update add networking boot}}
 
== Troubleshooting ==
Sometimes an ethernet interface will not be detected by the installation media. In this case, you may have to use an alternate interface for installation (e.g. a usb to ethernet adapter) upon which after install / reboot the interface will display. You may also try installing any missing packages that contain the drivers.
 
 
[[Category:Networking]]

Latest revision as of 05:57, 21 March 2025