Ethernet: Difference between revisions
Prabuanand (talk | contribs) m (fixed a word) |
Prabuanand (talk | contribs) (moved Networking service info to Configure Networking page) |
||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
This page | 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. | 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. | ||
Line 12: | Line 12: | ||
Which one do you want to initialize? (or '?' or 'done') [eth0] | Which one do you want to initialize? (or '?' or 'done') [eth0] | ||
choose <code>eth0</code> | choose <code>eth0</code> for Ethernet or <code>wlan0</code> for wireless device, as appropriate. | ||
if asked: | if asked: | ||
Line 24: | Line 24: | ||
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. | 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. | ||
The above script | 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]] | [[Category:Networking]] |
Revision as of 08:53, 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 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]
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 configures Networking service adds to boot run level and starts the service. Refer Networking service section, if this needs to be done manually.