| View previous topic :: View next topic |
| Author |
Message |
glenn69
Joined: 11 Nov 2007 Posts: 2
|
Posted: Sun Nov 11, 2007 3:13 am Post subject: How do I bypass DHCP during bootup? |
|
|
During bootup I eventually get to a series of messages stating that DHCP is being searched.
ex...
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval X
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval X
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval X
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval X
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval X
Sometimes I boot without an internet connection, however this step seems to keep repeating hoping for a connection. A couple minutes pass before it gives up.
How can I bypass this step for the times that I don't need a connection? I want it to do the search only when I am connected via ethernet.
thanks
|
|
| Back to top |
|
 |
anticapitalista Site Admin

Joined: 11 Sep 2007 Posts: 1043 Location: Greece
|
Posted: Sun Nov 11, 2007 3:36 am Post subject: |
|
|
Welcome to antiX
To answer your question use the
mean
cheatcode at the grub menu.
Once in X, open a terminal, su to root and type
dhclient _________________ Philosophers have interpreted the world in many ways; the point is to change it.
|
|
| Back to top |
|
 |
.ee
Joined: 12 Nov 2007 Posts: 19
|
Posted: Mon Nov 19, 2007 5:06 am Post subject: |
|
|
Yes, it works. However, it would be still nice to have network on (I am on DHCP) immediately after booting without opening the root terminal etc.
It is a small thing, but it works without problem in most other distors I tried before (perhaps except Puppy where I had to configre the network with a few clicks).
|
|
| Back to top |
|
 |
r3bol
Joined: 14 Sep 2007 Posts: 48
|
Posted: Mon Nov 19, 2007 6:59 pm Post subject: |
|
|
| Is it possible to write a bash script that automates typing dhclient and have it execute after boot under root privileges?
|
|
| Back to top |
|
 |
anticapitalista Site Admin

Joined: 11 Sep 2007 Posts: 1043 Location: Greece
|
Posted: Mon Nov 19, 2007 9:18 pm Post subject: |
|
|
.ee
It is a pain in the neck for some users, but not for all. There must be some problem with dhcp. You could try re-installing it again, see this thread.
http://antix.freeforums.org/viewtopic.php?t=119
r3bol,
That would be nice, I don't know how to though, maybe someone else will. _________________ Philosophers have interpreted the world in many ways; the point is to change it.
|
|
| Back to top |
|
 |
UnicornRider

Joined: 24 Oct 2007 Posts: 40
|
Posted: Mon Nov 19, 2007 10:08 pm Post subject: |
|
|
| r3bol wrote: | | Is it possible to write a bash script that automates typing dhclient and have it execute after boot under root privileges? |
What happens if you add the appropriate command, e.g. dhcpclient &, to /etc/rc.local and reboot the whole system ...? _________________ The limits of my code are the limits of my system.
|
|
| Back to top |
|
 |
r3bol
Joined: 14 Sep 2007 Posts: 48
|
Posted: Tue Nov 20, 2007 3:18 pm Post subject: |
|
|
seems to work!
...except the command is dhclient &
|
|
| Back to top |
|
 |
UnicornRider

Joined: 24 Oct 2007 Posts: 40
|
Posted: Tue Nov 20, 2007 3:31 pm Post subject: |
|
|
| r3bol wrote: |
except the command is
|
Hey, I'm only guessing - DHCP is one of the daemons I kill on sight  _________________ The limits of my code are the limits of my system.
|
|
| Back to top |
|
 |
|