manual setup of dhcp client
I configured a linux server completely
(internet sharing, samba, postgresql, tomcat, apache, ...) and by some very stupid mistake I lost my internet setup. Running the wizard in the control centre doesn't help a thing ... I run mandrake 10, and connected with a cable modem to the internet. where can I check things, what must I do to have my internet connection back ? I had a (small) spare disk that I plugged in just to get on the net again ... strangely, when installing mandrake, the wizard does its job ... Please help me out here |
I am assuming that you are connecting with a Ethernet (CAT 5 wire)? And it is eth0? And that you are using DHCP to get your IP?
If so than you need to edit: /etc/sysconfig/network-scripts/ifcfg-eth0 to have this in it: DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes This will enable the device during boot and get your IP via DHCP... Andrew |
[root@d576a741 network-scripts]# cat ifcfg-eth0
DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes MII_NOT_SUPPORTED=no WIRELESS_ENC_KEY="" NEEDHOSTNAME=yes [root@d576a741 etc]# cat resolv.conf search pandora.be nameserver 195.130.130.2 nameserver 195.130.130.130 the content of the files like I found them still no connection to the internet ... |
post results of ifconfig please
|
please bear in mind every time you ask something like this,
I need to power down, change cables of the hard discs, boot again check what you want to know, put it on file, power down, change back hard discs, boot again, and finally come online to give you the result ifconfig is very popular, but the information it gives for this ... sure, no ip address in there, no surprice there [root@localhost pelgrim]# ifconfig eth0 Link encap:Ethernet HWaddr 00:50:BA:EA:6D:1C inet6 addr: fe80::250:baff:feea:6d1c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:21 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3423 (3.3 Kb) TX bytes:2088 (2.0 Kb) Interrupt:11 Base address:0x1400 eth1 Link encap:Ethernet HWaddr 00:05:5D:84:25:D0 inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::205:5dff:fe84:25d0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:42 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:5180 (5.0 Kb) Interrupt:3 Base address:0x2000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:118 errors:0 dropped:0 overruns:0 frame:0 TX packets:118 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8632 (8.4 Kb) TX bytes:8632 (8.4 Kb I know, you only try to help ... whatever it is, I checked a few files in the configuration (I don't know much about linux cofiguration ...) and I can't find the differenence between the my server setup not able anymore to get on internet and the setup on this harddisc ... |
Try running (assuming eth0 is the interface that connects to the Internet):
dhcpcd eth0 or possibly dhclient and see what errors are reported, or whether it will magically start working. |
dhcpcd command does not exist
chclient solved the problem. Thanx. I would apriciate if you can explain me what happened ? Here's my story: I got almost no discspace anymore, and somebody adviced me to run dd ??? "ls" command, I don' t know the ??? paramter anymore. by mistake I thought dd created a file called "ls" I deleted that file. Let it be that I was by accident in the bin directory, yup, I immediatly realised wich huge stupid mistake I made the moment I pressed enter. too late, ls was gone, and when rebooting the ls command is needed to read the network configurations. So I got my spare harddisk, installed linux on it just to get ls back, coppied it to the bin dir (what i newby all does :+) but the network was gone ... |
All times are GMT -5. The time now is 07:28 PM. |