Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have two questions:
1: I want to setup a Static IP address for the Linux box. I managed to assign an IP and subnet mask by changing the file ifcfg-eth0 but I still cannot connect to anything. I think my problem is not having set a default gateway and a DNS server. Please help.2. For some reason, when I start my Linux box these days it goes straight to the console. How do I get the GDE?? and how do make sure the GDE is the default??
Thanks a million.
JB

Ok here it goes...
I don't have a linux box in front of me so maybe I won't be very precise
If you managed to edit your ifcfg-eth0 file with your ip's there... Well you should also change your dns in there. Also remember if you put dhcp on boot when you first configured them although I doubt that is the case.
About the grafical interface
when In comand line you can either
# startx
# xmd
or youcan edit the runlevel's file (as I have said I do not have the linux box in front of me...)I can't remember exactky where it is sorry... but remember you have to change defaul run levels
runlevel 3 is the comand prompt and 5 the graphical interface as I remember
Anyway I'll write back when I will remember
sorry....

To set a static IP:
# ifconfig eth0 192.168.0.1 broadcast
192.168.0.255 netmask 255.255.255.0
Assuming that you are on a class C network.
To set up a gateway:
# route add -net default gw 192.168.0.254 netmask 0.0.0.0 metric 1
Add DNS servers to /etc/resolv.conf
For GDE, edit /etc/inittab and change:
id:3:initdefault:
to
id:5:initdefault:

One easy way is to go into internet setup wizard --> add --> select a ethernet
then it shows up a popup box, fill in
IP Address
subnet Mask
Default GatewayYou can get the three pareameters by
ipconfig in Windows
ifconfig in Linux.Hope it would help.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |