Click to See Complete Forum and Search --> : How do I edit my Network config in Mandrake with no GUI?
Plextor
01-05-2003, 06:47 PM
I think I may have ruined my Mandrake, but i'm not sure. I bought a router, got it working (windows) and decided to boot linux to make sure it too was working. It didn't, of course, so I tried to modify the settings in the Control CEnter, I don't know what I did but now it doesn't work. It takes 5 minutes to boot KDE, it freezes the moment I click on the control center, can I can't get it to work at all.
Can anyone tell me what the command is (not GUI) to modify my eth0 properties (IP, DNS, Gateway, Subnet,) please.
Steffanio
01-05-2003, 07:44 PM
I haven't done this actualy _BY HAND_, but I think this might help.
As root open this file in your editor:
/etc/sysconfig/network-scripts/drakconnect_conf
There you'll see the Eth0 options (Eth0IP...). Editing those might do the job.
Mine are:
Eth0Known=true
Eth0IP=
Eth0Mask=255.255.255.0
Eth0Mac=
Eth0BootProto=dhcp
Eth0OnBoot=yes
Eth0Hostname=localhost.localdomain
Eth0HostAlias=localhost
Eth0Driver=8139too
Eth0Irq=
Eth0Port=
Eth0DHCPClient=dhcpcd
Eth0DHCPServerName=localhost.localdomain
I have Realtek compatible card and a docsis cable modem (a bridge). I use dhcp for IP discovery. I guess all you have to do is to edit Eth0IP to your ip, Eth0BootProto to none (blank) and Eth0Driver to your driver module. ... And of course set the InternetGateway option (found in the beginning of the config file) to your gateway computer IP. You might ease your pain a little bit with setting DNSPrimaryIP to ISP's DNS IP. Check the Windows config for details.
At the end do a /etc/init.d/network restart, or simply: service network restart (only available in Mandrake... AFAIK).
I hope this was of any help.
Green_Velvet
01-05-2003, 08:03 PM
Edit /etc/sysconfig/network-scripts/ifcfg-eth0 It will be different depending on whether you are statically asigning ips or using dhcp. At least thats how it is on redhat 8, not positive about mandrake.
Plextor
01-05-2003, 11:13 PM
what is the command used to edit?
mike8706
01-06-2003, 10:17 AM
Use "setuptool"! I love it. I had to reconfigure my resolution because my monitor was too old, so I found setuptool. It has everything.
Green_Velvet
01-07-2003, 01:11 AM
Originally posted by Plextor
what is the command used to edit?
vi [filename]
type a or i to edit it. Then hit esc. then :wq to save it and quit.
seabass55
01-07-2003, 01:37 AM
perhaps he should start off using pico instead of vi for simplcities sake. pico <filename>
Sebastian