[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] RAQ1 urgent question: renumbering IPs



Grep is a text pattern search tool, like a 'find' command but more powerful
and complex. That KB article was mainly aimed at renumbering a single site.
To use grep to find a single IP out of the dozens of ifcfg-ethX files you
would type:

$root grep 216.125.250.1 **

it would return this:

ifcfg-eth0:IPADDR=216.125.250.1

It probably is too much hassle to use grep for 38 sites if you've never used
grep before. You can do this with just a careful manual session with VI or
Pico. Go the /etc/sysconfig/network-scripts and you'll see 38 files named
like:
ifcfg-eth0
ifcfg-eth1
ifcfg-eth2

These all correspond with your sites in the order that you added them. You
can look at /etc/httpd/conf/httpd.conf to see which ones go with witch site.

Before you start editing them you should make backups.
Open the file in your editor and you'll see:

DEVICE=eth0
IPADDR=216.125.250.1
NETWORK=216.125.250.0
NETMASK=255.255.254.0
BROADCAST=216.125.250.255

Change the IP here and whatever else needs to be changed. Follow the rest of
KB article.

Tony


-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of PowerClicks
Sent: Wednesday, January 19, 2000 7:16 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] RAQ1 urgent question: renumbering IPs


Hello,

We have to modify the IPs of all the sites (38 sites) on a raq1 due to the
switch to a new IP allocation. Given the number of sites we cannot do this
using the "copy" method.
The knowledge base has a solution for this:
 http://www.cobalt.com/support/kb/search.php3?ques=ip&qid=381&language=1

There is one point I do not understand:
----------
C. Go to the following directory and grep for the IP address:

              /etc/sysconfig/network-scripts/
----------

What does "grep for the IP address mean"???

Any help would be greatly appreciated.

Thanks!


_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-users