Tuesday, June 10, 2008

Ethernet Configurations on Fedora/RHEL

In order to configure ethernet (Usually eth0 for first ethernet card),
open /etc/sysconfig/network-scripts/ifcfg-eth0 file.

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

#!/bin/sh
#>>>Device type: ethernet
#>>>Variable declarations:
DEVICE=eth0
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=255.255.255.255
GATEWAY=192.168.0.1

# Whether to make available after boot
# or enable at root's consent
ONBOOT=no

# PROTO = dhcp, none

#>>>End variable declarations

No comments: