How to Assign an IP Address on a Linux Computer
If the network has not been available all the time while the system was starting, the internet connection may stay disabled even after fixing the network problems., The previous situation may happen if the network is accessed by separate hardware...
Step-by-Step Guide
-
Step 1: If the network has not been available all the time while the system was starting
To revive it instantly, run dhclient as root.
This will set the dynamic address. , In some cases Linux boots faster than the network router and finds no network at startup.
Find dhclient.conf (for instance, /etc/dhcp3/dhclient.conf for Debian) and add/correct the line reboot nn -
Step 2: the internet connection may stay disabled even after fixing the network problems.
where nn is the delay for which the system must wait after booting, for the router to start. -
Step 3: The previous situation may happen if the network is accessed by separate hardware that starts at the same time as your machine.
Detailed Guide
To revive it instantly, run dhclient as root.
This will set the dynamic address. , In some cases Linux boots faster than the network router and finds no network at startup.
Find dhclient.conf (for instance, /etc/dhcp3/dhclient.conf for Debian) and add/correct the line reboot nn
where nn is the delay for which the system must wait after booting, for the router to start.
About the Author
Amber West
A passionate writer with expertise in crafts topics. Loves sharing practical knowledge.
Rate This Guide
How helpful was this guide? Click to rate: