Hi, Anyone!!
I use RedHat 7.2 and am trying to connect the Internet as a client Linux, direct point-to-point connection to the cable modem. I will be a DHCP client of my ISP.
Anyways, my FILE is configured as
------------------------------------------------
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
cat /etc/sysconfig/network
NETWORK=yes
HOSTNAME=localhost.localdomain
/etc/rc.d/init.d/network restart <-- Command.
Then I type, ifconfig eth0, and result is.
inet addr: 192.168.0.1 <-- shows old ipaddress.
Why is this? This should be no IP address since this machine is a DHCP client. I cant erase this address from eth0.
I did ifdown-eth0, ifup-eth0
eth0 ....... [failed] <-- Never been OK!!
So, eth0 still shows old static IP address, but configured as DHCP in a text file, and never able to obtain IP address from my ISP.
Question:
1. Am I missing any other configuratoin?
2. Is there a way to delete/add eth0 port or IP address?
Please let me know if anyone could help!
Thank you
I use RedHat 7.2 and am trying to connect the Internet as a client Linux, direct point-to-point connection to the cable modem. I will be a DHCP client of my ISP.
Anyways, my FILE is configured as
------------------------------------------------
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
cat /etc/sysconfig/network
NETWORK=yes
HOSTNAME=localhost.localdomain
/etc/rc.d/init.d/network restart <-- Command.
Then I type, ifconfig eth0, and result is.
inet addr: 192.168.0.1 <-- shows old ipaddress.
Why is this? This should be no IP address since this machine is a DHCP client. I cant erase this address from eth0.
I did ifdown-eth0, ifup-eth0
eth0 ....... [failed] <-- Never been OK!!
So, eth0 still shows old static IP address, but configured as DHCP in a text file, and never able to obtain IP address from my ISP.
Question:
1. Am I missing any other configuratoin?
2. Is there a way to delete/add eth0 port or IP address?
Please let me know if anyone could help!
Thank you