Ethernet: Difference between revisions
Prabuanand (talk | contribs) (moved some of the content to main networking page Configure Networking) |
Prabuanand (talk | contribs) (commented introduction line with explanation on transclusion) |
||
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). | <!-- | ||
This page has been made transcluded into Main Networking page [[Configure Networking]]. So commented the below line as it is not appropriate. | |||
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). --> | |||
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. The script configures wireless and ethernet interfaces in addition to other types and will satisfy most trivial configurations. | 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. The script configures wireless and ethernet interfaces in addition to other types and will satisfy most trivial configurations. | ||
Revision as of 05:07, 10 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 ethernet 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
(or your Ethernet device, Ethernet devices usually start with e
)
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]
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 /etc/network/interfaces
file.
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:
# rc-service networking --quiet start &
To add networking service so that it starts on boot:
# rc-update add networking boot