Re: basic question about assigning ip address
- From: Peter Horst <phorst@xxxxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 09:58:41 -0500
Adalbert Prokop wrote:
Peter Horst wrote on Sunday 30 September 2007:[Warning: second question attached :-) ]
> I have a Fedora machine I'm using as a home server, without a keyboard
> or monitor. I'd like to set it up such that upon rebooting it first
> checks to see if there is a DHCP server on the network, and if so,
> grabs an ip address from it. But if there isn't one, it assigns itself
> a static address. Is this doable?
Yes, it's possible, but I agree with Jacques and Ed, that it is not desirable. A server should use a static address. So much for an advise.
What you want is possible using dhclient hooks. Those are scripts called by dhclient. Depending on the status dhclient provides to them they can do anything a script can do. "man dhclient-script" is your friend.
I use those scripts on my notebook to setup IPv4LL addresses (local link adresses, 169.254.0.0) if there is no DHCP server available. Together with Avahi they make ad-hoc networks really easy.
I attach both dhclient-hooks as example how to use hooks. They both live in /etc and should be executable.
Thanks for all the help and advice - sorry, I could have described the situation better - the actual problem I'm trying to solve here has to do with trying to find a wireless router that I can use with my Linux server (with a static address).
I used to have a Linksys WRT54GX4, which was great until it stopped working, and I had to spend hours on the phone with customer service reps dumber than me, and the RMA replacement arrived DOA. The Linksys had the ability to function as a switch (wrong word?) - that is, it would pass traffic straight through to two machines on my internal network, both of which had static, public IP addresses - one, the server, connected via CAT5, and the other, a Windows laptop, connected wirelessly.
Because of the customer-services & quality-control issues Linksys was having, I tried switching to a Zyxel X-550 wireless router. Unfortunately it does not seem to have the ability to cope properly with public IP addresses on my internal network.
So I thought that if it were an simple matter to configure my Linux server in the way I've described, it would make the (temporary) process of fiddling around with various bits of networking equipment easier.
So, all that being said, do you have any technical recommendations? Hope I have adequately described the problem...
Thanks -
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Follow-Ups:
- Re: basic question about assigning ip address
- From: Jacques B.
- Re: basic question about assigning ip address
- From: Jacques B.
- Re: basic question about assigning ip address
- From: Jacques B.
- Re: basic question about assigning ip address
- From: Adalbert Prokop
- Re: basic question about assigning ip address
- From: Mikkel L. Ellertson
- Re: basic question about assigning ip address
- References:
- basic question about assigning ip address
- From: Peter Horst
- Re: basic question about assigning ip address
- From: Adalbert Prokop
- basic question about assigning ip address
- Prev by Date: Re: basic question about assigning ip address
- Next by Date: Re: symbolic links, dosemu and /etc/skel
- Previous by thread: Re: basic question about assigning ip address
- Next by thread: Re: basic question about assigning ip address
- Index(es):
Relevant Pages
- Re: Fully parallel Scheme-based language w/ evaluator
... Windows Server 2003 and networks in simple - and irreverent - terms. ... If
networking really is a big deal, ... Concepts and Terminology in Part I, and The Design
and Deployment of Network ... (comp.lang.misc) - Re: Outgoing POP3 email missing/lost/not received
... Funny thing is that I have had this ISP for 8 years and it has always been ...
It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet
Connection Wizard. ... After the wizard completes, the following network connection
... (microsoft.public.windows.server.sbs) - Re: Logon Server Unavailable
... There are currently no logon servers available to service ... You use a office
laptop to connect the office VPN, when you map a network ... you may receive this message:
"This account is the ... The server is not configured for transactions"> "A domain
controller for your domain could not be contacted" ... (microsoft.public.windows.server.general) - Re: Logon Server Unavailable
... There are currently no logon servers available to service ... You use a office
laptop to connect the office VPN, when you map a network ... you may receive this message:
"This account is the ... The server is not configured for transactions"> "A domain
controller for your domain could not be contacted" ... (microsoft.public.windows.server.dns) - Re: Logon Server Unavailable
... There are currently no logon servers available to service ... You use a office
laptop to connect the office VPN, when you map a network ... you may receive this message:
"This account is the ... The server is not configured for transactions"> "A domain
controller for your domain could not be contacted" ... (microsoft.public.windows.server.networking)