The Crucial Blog - Archive
February 25, 2008
CentOS/Red Hat/Fedora Core:
The network configuration files are in the folder:
‘/etc/sysconfig/network-scripts’
The files for the interfaces will be ifcfg-eth0, ifcfg-eth1, ifcfg-eth0:0 (if there are sub-interfaces)
Static IP address configuration:
——————–
[root@sXXX network-scripts]# cat ifcfg-eth0
# Intel Corporation 82573L Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=static
HWADDR=YY:YY:YY:YY:YY
BROADCAST=XXX.XXX.XXX.XXX - specify the broadcast address here
IPADDR=xx.xx.xx.xx - specify the IP address here
NETMASK=255.255.255.0 - specify the netmask here
ONBOOT=yes
TYPE=Ethernet
———————-
Please specify ‘ONBOOT=yes’ which will activate the interface upon system boot
Dynamic IP address configuration: Change BOOTPROTO value to dhcp
——————–
[root@sXXX network-scripts]# cat ifcfg-eth0
# Intel Corporation 82573L Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
———————-
To bind a range of IP address, create a file called ifcfg-eth0-range0 (for example eth0:0, eth0:1, etc)
The entries should be:
——————————-
IPADDR_START=192.168.0.10
IPADDR_END=192.168.0.20
CLONENUM_START=0
NETMASK=xxx.xxx.xxx.xxx
——————————–
IPADDR_START: This is the first IP from the address range you want to bind to your ethernet device.
IPADDR_END: This is the last IP from that address range.
CLONENUM_START: This is the number that will be assigned to the first IP alias interface. For instance, if your Internet interface is eth0 and CLONENUM_START is 0, then this config file will create 10 interfaces starting with eth0:0 (eth0:0, eth0:1, eth0:2 etc) and ending with eth0:10.
The gateway for the network can be specified in the file ‘/etc/sysconfig/network’
——————————-
NETWORKING=yes
HOSTNAME=hostname
GATEWAY=”XXX.XXX.XXX.YYY”
———————————
Once you assign the IP addresses and configure the gateway please restart the service network ‘/etc/init.d/network restart’
You may also use ‘/usr/sbin/system-config-network-tui’ to configure the network interfaces
Debian:
In Debian the interface configuration file is ‘/etc/network/interfaces’
The entires are:
———————————
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask yyy.yyy.yyy.yyy
broadcast xxx.xxx.xxx.xxy
network xxx.xxx.xxx.xxz
gateway xxx.xxx.xxx.xxw
———————————
After you configure the network interfaces restart the network service using ‘/etc/init.d/networking restart’
Tags: centos, debian, fedora core, networking, system administration
Related posts
No Comments
Filed under: Uncategorized by — aaron @ 12:01 am
February 13, 2008
While attempting to install Subversion via yum today, I received the following error:
[root@sXXX ~]# yum install subversion
Loading “installonlyn” plugin
Setting up Install Process
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for subversion to pack into transaction set.
subversion-1.4.2-2.el5.i3 100% |=========================| 42 kB 00:00
—> Package subversion.i386 0:1.4.2-2.el5 set to be updated
–> Running transaction check
–> Processing Dependency: libaprutil-1.so.0 for package: subversion
–> Processing Dependency: perl(URI) >= 1.17 for package: subversion
–> Processing Dependency: libneon.so.25 for package: subversion
–> Processing Dependency: libapr-1.so.0 for package: subversion
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for apr-util to pack into transaction set.
apr-util-1.2.7-6.i386.rpm 100% |=========================| 7.3 kB 00:00
—> Package apr-util.i386 0:1.2.7-6 set to be updated
—> Downloading header for neon to pack into transaction set.
neon-0.25.5-5.1.i386.rpm 100% |=========================| 6.7 kB 00:00
—> Package neon.i386 0:0.25.5-5.1 set to be updated
—> Downloading header for apr to pack into transaction set.
apr-1.2.7-11.i386.rpm 100% |=========================| 10 kB 00:00
—> Package apr.i386 0:1.2.7-11 set to be updated
–> Running transaction check
–> Processing Dependency: libpq.so.4 for package: apr-util
–> Processing Dependency: perl(URI) >= 1.17 for package: subversion
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for postgresql-libs to pack into transaction set.
postgresql-libs-8.1.11-1. 100% |=========================| 16 kB 00:00
—> Package postgresql-libs.i386 0:8.1.11-1.el5_1.1 set to be updated
–> Running transaction check
–> Processing Dependency: perl(URI) >= 1.17 for package: subversion
–> Finished Dependency Resolution
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion
Steps to resolve this:
1. Download the perl(URI) with version greater than 1.17 using the following command.
wget http://fr.rpmfind.net/linux/fedora/core/3/x86_64/os/Fedora/RPMS/perl-URI-1.30-4.noarch.rpm
2. Install the specified package using the follwing command.
rpm -i perl-URI-1.30-4.noarch.rpm
3. Install subversion using “yum“.
yum install subversion
You should now have successfully installed Subversion:
[root@sXXX ~]# svn help
usage: svn [options] [args]
Subversion command-line client, version 1.4.2.
Type ’svn help ‘ for help on a specific subcommand.
Type ’svn –version’ to see the program version and RA modules
or ’svn –version –quiet’ to see just the version number.
Most subcommands take file and/or directory arguments, recursing
on the directories. If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.
Available subcommands:
add
blame (praise, annotate, ann)
cat
checkout (co)
cleanup
commit (ci)
copy (cp)
delete (del, remove, rm)
diff (di)
export
help (?, h)
import
info
list (ls)
lock
log
merge
mkdir
move (mv, rename, ren)
propdel (pdel, pd)
propedit (pedit, pe)
propget (pget, pg)
proplist (plist, pl)
propset (pset, ps)
resolved
revert
status (stat, st)
switch (sw)
unlock
update (up)
Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/
Tags: centos, centos5, subversion, system administration, yum
Related posts
No Comments
Filed under: Uncategorized by — aaron @ 7:17 pm
|