53065Re: [linux] How to change the ip address
- Mar 2, 2008On Sat, Mar 01, 2008 at 11:11:11PM +0000, Michael Kjorling wrote:
> -----BEGIN PGP SIGNED MESSAGE-----Ok, these days, I would be able to figure it out.
> Hash: SHA1
> >> man ifconfig
> > Ah Michael, one of my favorite examples when trolling about how Linux
> > docs are almost useless. :) That man page should be taken out and
> > shot.
> Really? It doesn't seem quite so bad to me. From the synopsis at the
> ifconfig interface [aftype] options | address ...
On the other hand, I do remember back in the day, not having a clue what
it meant and having to google for it.
However, on OpenBSD, they have this amazing section. It's called.....
And I don't think that anyone's ever accused Theo of dumbing it down for
the masses. :)
> Putting these two together you get a command line like "ifconfig eth0Yes, I remember years ago, your post on playing with IPv6. Do you still
> netmask 255.255.255.0 10.0.0.1", which just so happens to work
> perfectly with ifconfig 1.42 and does exactly what the OP wants,
> namely, replaces the IPv4 address on the specified interface. :)
> Obviously you could specify the address family explicitly but that
> seems like overkill in this case, as the default is IPv4 - and
> probably will remain so for the foreseeable future.
play with it by the way? (I remember your example got a bunch of us
As I think of it, I remember winding up in the BSD docs to get it
>Ah yes--again, back in the days, when I proudly spent hours on that FAQ.
> >> man dhcpcd
> > Only if his distribution has it. :) Or man dhclient with, for example,
> > RH based distros--not sure about Debian ones.
> This is why it helps if people specify the distribution they use.
> Which also just happens to be mentioned in the FAQ, right there at the
> beginning of "what sort of information should I give" :)
Of course, back then, people actually read it.
After a few years of primarily using various BSDs, when a job change
brought me back to Linux, I used to email Godwin almost daily,
complaining about horrible the man pages are in comparison.
It's really like learning guitar on a child's toy, then buying a good
one. Then, one day, you have to go back to that child's toy, with the
strings 2 cms off the neck of the instrument.
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
Spike: It's a big rock. Can't wait to tell my friends. They
don't have a rock this
- << Previous post in topic Next post in topic >>