Enable ethernet interface to use DHCP via configuration file
- Login as normal user.
- Open a terminal and type su to login as root.
- cd to /etc/sysconfig/network-scripts/.
- Edit ifconfig-eth0 (change eth0 to the interface that will be configured).
- To force system to use the configuration do run /etc/sysconfig/network-scripts/ifdown eth0 to bring it down then run /etc/sysconfig/network-scripts/ifup eth0.
Below is the format of ifconfig-* for DHCP configuration
DEVICE=eth0Below is the format of ifconfig-* for static configuration
BOOTPRO=dhcp
ONBOOT=yes
TYPE=Ethernet
DEVICE=eth0System Used: Fedora Core 3
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes

0 Comments:
Post a Comment
<< Home