LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   help required on connceting to the internet (https://www.linuxquestions.org/questions/linux-networking-3/help-required-on-connceting-to-the-internet-322683/)

ekangi32 05-12-2005 06:26 AM

help required on connceting to the internet
 
hello friends,
i'm a newbie to linux.I installed red hat linux 10 i guess(fedora project).
My problem is that i have an ADSL modem,the connection is through etherent card.But the problem is in windows i cud enter my DNS nos and other settings in network settings but i donno how to do it in linux.
I gues i also need the TCP/IP protocol.
Is there any way out?
or any suggestions pls do reply

fr_laz 05-12-2005 06:37 AM

Hi,

DNS are written in the /etc/resolv.conf file
Interface configuration (your IP address) is done through the ifconfig command :
ifconfig 192.168.0.1 netmask 255.255.255.0
gateway setting is done through the route command :
route add defautlt gw 192.168.0.254

These 2 commands won't last after a reboot. So as to keep your IP config you've to edit the conf files, in redhat that's /etc/sysconfig/networking/devices/if-eth0 or
/etc/sysconfig/networking/profiles/default/if-eth0

NB : all this must be done as root.
NB2 : there are also some graphic tools to do this (very similar to windows) but I don't know what they are

ekangi32 05-12-2005 07:08 AM

thnx
 
hi,
thanks a lot 4 that fr_laz.
i hope to find out the solutions frm it.

thanks again:newbie:


All times are GMT -5. The time now is 01:52 AM.