LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cannot connect internet in FC5 (https://www.linuxquestions.org/questions/linux-networking-3/cannot-connect-internet-in-fc5-451488/)

jojojo 06-04-2006 09:51 AM

Cannot connect internet in FC5
 
I've just bought a router to change my old modem. When I'm using XP, i can connect to internet but when using FC5, i cannot. There's no error in FC5 stating that cannot connect to internet. Dunno why. Is there a way to configure internet connection in FC5? Do i have to change my router settings?

routers 06-04-2006 10:17 AM

show us the output of

# /sbin/ifconfig

# cat /etc/resolv.conf

jojojo 06-04-2006 11:39 AM

Output of ifconfig is:

Code:

eth0      Link encap:Ethernet  HWaddr 00:13:D3:AE:7C:87
                inet addr:192.168.1.3  Bcast:192.168.1.255                            Mask:255.255.255.0
                inet6 addr: fe80::213:d3ff:feae:7c87/64 Scope:Link
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:12 errors:0 dropped:0 overruns:0 frame:0
                TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:1000
                RX bytes:1441 (1.4 KiB)  TX bytes:4183 (4.0 KiB)
                Interrupt:17 Base address:0x4000

     
      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:2563 errors:0 dropped:0 overruns:0 frame:0
                TX packets:2563 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:0
                RX bytes:3439920 (3.2 MiB)  TX bytes:3439920 (3.2 MiB)


Output of cat /etc/resolv.conf

Code:

; generated by /sbin/dhclient-script
        nameserver 192.168.1.1
        search localdomain


routers 06-05-2006 01:32 AM

jojo

tukar tu

resolv.conf

nameserver 202.188.0.132

save it and try browse internet
-------------------------------

if still cannot proceed this below command

# setup

go to network configuration

add ip 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
dns 202.188.0.132
save and proceed

# /etc/rc.d/init.d/network restart

and check browser again

ps if still cannot then u terjun sungai klang

jojojo 06-05-2006 08:52 AM

Before u ask me to change the resolv.conf file, i try to surf the net and guess what, i can only surf to linuxquestions.org and i cannot surf to other page than linux questions. Really, really dunno why...:D Woohhooo!!! Long live linuxquestions!!!:D

Ok. First thing, i access the /etc/resolv.conf and change my nameserver to nameserver 202.188.0.132. But when i reboot and i access the /etc/resolv.conf, the nameserver change back to 192.168.1.1. Dunno why and i cannot access internet.

So, next i type #setup and go to network configuration.
Then i put like u ask to which is:

add ip 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
dns 202.188.0.132


Then i reboot and wooohoooo!!! I can connect to internet. Thanks a lot router. U helped me. Tak payah terjun to sungai klang eh...:D

Tapi, i just want to know, what is the problem? Why can't i connect to internet? Cause before this i was at shah alam, and everything works fine. I install FC5 and straight away i can surf the net. I didn't change any configuration or anything. But when in KL, the problem arise?

Maybe cause i just bought a new router...? Just want to know, why u ask me to change the dns to 202.188.0.132?

Is that a different server? Sorry, i dont know anything about networking...:D

routers 06-05-2006 09:15 AM

hahah lucky u no need terjun , ok here is the story and explanation

first one is why ur address keep changing after reboot the answer is u are using dhcp ( dynamic host configuration protocol )
which is auto assign IP for your host machine by gateway


second , once u touch the ( # setup > netconfig ) mean ur gateway are no longer allowed to assign IP for your host machine , this call static IP assign by U


ok then about the number 202.188.0.132 let me show u what is this :)

-----------------------------------
[rou@nc ~]$ nslookup 202.188.0.132
Server: 202.188.0.132
Address: 202.188.0.132#53

Non-authoritative answer:
132.0.188.202.in-addr.arpa name = cns1.tm.net.my.
----------------------------------

this is tmnet name server and before that what u have is 192.168.1.1

which is your gateway to act as ur name server ( sometime tipu one )

---
ok la later i pulak terjun sungai klang :)

jojojo 06-05-2006 09:29 AM

Oh ok. Thanks mate. So right now i am connected to the TMNET server to connect to the internet lah...

If i want to connect to other server, i just change the DNS ip right..? How can I know other server IP address that provide connection to internet? Maybe other local server like JARING or anything...eheheh... Is my question right...:D

routers 06-05-2006 09:35 AM

no need to change anything la johan, but if u go to other place or other ppl network then go back to # setup set it to suite that network environment
mostly change ip and gateway only :)

jojojo 06-05-2006 09:40 AM

Ok thanks routers. Later, if got any problem, i just contact u..ehehe.. You banyak terer.

Malaysia Boleh...:D

routers 06-05-2006 09:41 AM

hahaha ok , can can , malaysia can :)

jojojo 06-05-2006 09:51 AM

Anyway, what's your email address so that i can contact personally, if you dont mind...:D

routers 06-05-2006 09:56 AM

check your yahoo mail :)

jojojo 06-05-2006 10:10 AM

Ok. Neway, just to let u know, i seldom use my yahoo mail account. I always use my gmail. Chek ur email. I've just send you my gmail address.


All times are GMT -5. The time now is 02:17 PM.