Configuration: RedHat 7.2, DELL Latitude Laptop CPi-A
Problem: Configuring ethernet IP information for eth0... fails
Ultimate goal: Local Area Network to share Linux files with Window/98 system
PHASE I: Prepare ethernet communication
Steps taken:
Logged on as root:
[root@localhost root]# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:50:DA:2F:33:E7 BROADCAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:4 collisions:0 RX bytes:0 (0.0 b) TX bytes:2360 (2.3 b)
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:128 errors:0 dropped:0 overruns:0 frame:0 TX packets:128 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:8324 (8.1 Kb) TX bytes:8324 (8.1 Kb)
[root@localhost root]# ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up
[root@localhost root]# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:50:DA:2F:33:E7 inet addr:192.168.1.100 Bcast 192.168.1.255 Mask:255.255.255.0 BROADCAST RUNNING MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:4 collisions:0 RX bytes:0 (0.0 b) TX bytes:2360 (2.3 b)
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:128 errors:0 dropped:0 overruns:0 frame:0 TX packets:128 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:8324 (8.1 Kb) TX bytes:8324 (8.1 Kb)
[root@localhost root]# ping 198.168.1.100 PING 192.168.1.100 (192.168.1.100) from 192.168.1.100 : 56(84) bytes of data 64 bytes from 192.168.1.100: icmp_seq=0 ttl=255 time=487 usec Warning: time of day goes back, taking countermeasures. 64 bytes from 192.168.1.100: icmp_seq=0 ttl=255 time=487 usec <ctrl>c --- 192.168.1.100 ping statistics --- 2 packets transmitted. 2 packets received. 0% packet loss round-trip min/avg/max/mdev = 0.487/0.626/0.766/0.141 ms
[root@localhost root]# ifdown eth0
[root@localhost root]# ifup eth0 Determining IP information for eth0... failed
Cheers,
Robert (Roger) Stelmack
[root@localhost root]# ping 198.168.1.100 PING 192.168.1.100 (192.168.1.100) from 192.168.1.100 : 56(84) bytes of data 64 bytes from 192.168.1.100: icmp_seq=0 ttl=255 time=487 usec Warning: time of day goes back, taking countermeasures. 64 bytes from 192.168.1.100: icmp_seq=0 ttl=255 time=487 usec <ctrl>c --- 192.168.1.100 ping statistics --- 2 packets transmitted. 2 packets received. 0% packet loss round-trip min/avg/max/mdev = 0.487/0.626/0.766/0.141 ms
This is not too bad.. you get this sometimes if the machine that you're pinging has an incorrectly set clock.
[root@localhost root]# ifdown eth0
[root@localhost root]# ifup eth0 Determining IP information for eth0... failed
The machine is trying to use DHCP to get it's IP address.
Look in /etc/sysconfig/network-scripts/
edit ifcfg-eth0
Mine looks like this...
DEVICE="eth0" BOOTPROTO="none" IPADDR="192.168.0.1" NETMASK="255.255.255.0" ONBOOT="yes"
Change the BOOTPROTO line to read none instead of DHCP.
HTH
Chris
-- Chris *************************************************************************** E Mail Chris@glovercc.clara.co.uk WWW http://www.glovercc.clara.co.uk Someday, we'll look back on this, laugh nervously and change the subject. -Anon