LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   can't get on the net with Suse (https://www.linuxquestions.org/questions/linux-hardware-18/cant-get-on-the-net-with-suse-297650/)

bograt 03-04-2005 11:36 AM

can't get on the net with Suse
 
Hi I have a problem. I have been trying to set up forwarding so I can use p2p etc so I configured my bt voyager 205 router to forward to my ip address as I needed to setup a static ip I first changed this in XP as i'm duel booting to 192.168.1.113 when I do ipconfig in XP it shows up as 192.168.1.113 however when I do a check on the net it shows my ip address as 81.152.163.116?? I have obviously disabled DHCP so I can't understand why it is showing a DHCP ip address??

Anyway I then ran Suse 9.1 entered yast and set up my LAN card with a static ip address of 192.168.1.113 as I did for XP I also allowed port forwarding but everytim I try to connect to the net for Linux, Google, Yahoo etc it just comes back telling me error conecting to (whatever address) and says unknown host?? Can anyone help???

aufomechanic 03-04-2005 12:26 PM

205 router is doing NAT ? Or is the ISP doing NAT. Whats the subnet mask ??

Can you ping the near interace of the router ?

bograt 03-04-2005 12:40 PM

Quote:

Originally posted by aufomechanic
205 router is doing NAT ? Or is the ISP doing NAT. Whats the subnet mask ??

Can you ping the near interace of the router ?

Subnet mask is 255.255.255.0

I can ping in XP did ping www.google.com which was ok.

Can't do anything in Linux.

the router is doing NAT I had to do that process whilst configuring the router.

I have just tried the other ip 81.152.163.116 as a static because it looks like BT have already given me that iIP as static via DHCP but it wouldn't work and the only way thats going to happen is if I set DHCP in router which defeats the object if I want to Port forward?

bograt 03-04-2005 12:47 PM

This is whats in IP route in the bt config utill

Destination Netmask NextHop IF Name Route Type Route Origin Action
0.0.0.0 0.0.0.0 213.120.159.179 ppp-0 Indirect Dynamic
81.152.163.116 255.255.255.255 127.0.0.1 lo-0 Direct Dynamic
127.0.0.0 255.0.0.0 127.0.0.1 lo-0 Direct Dynamic
192.168.1.0 255.255.255.0 192.168.1.1 eth-0 Direct Dynamic
192.168.1.1 255.255.255.255 127.0.0.1 lo-0 Direct Dynamic
192.168.1.2 255.255.255.255 127.0.0.1 lo-0 Direct Dynamic
194.72.9.34 255.255.255.255 213.120.159.179 ppp-0 Indirect Dynamic
194.74.65.68 255.255.255.255 213.120.159.179 ppp-0 Indirect Dynamic
213.120.159.179 255.255.255.255 81.152.163.116 ppp-0 Direct Dynamic

My static IP is not in there, but the 81.152.163.116

aufomechanic 03-04-2005 12:56 PM

BT have not given you a static give it a few days and it will change.

Destination Netmask NextHop IF Name Route Type Route Origin Action
0.0.0.0 0.0.0.0 213.120.159.179 ppp-0 Indirect Dynamic
Default
81.152.163.116 255.255.255.255 127.0.0.1 lo-0 Direct Dynamic
Loop back
127.0.0.0 255.0.0.0 127.0.0.1 lo-0 Direct Dynamic
Loop Back
192.168.1.0 255.255.255.0 192.168.1.1 eth-0 Direct Dynamic
Right fine bit uneccessary
192.168.1.1 255.255.255.255 127.0.0.1 lo-0 Direct Dynamic
Huh
192.168.1.2 255.255.255.255 127.0.0.1 lo-0 Direct Dynamic
Huh
194.72.9.34 255.255.255.255 213.120.159.179 ppp-0 Indirect Dynamic
Must be pap/chap/radius stuff
194.74.65.68 255.255.255.255 213.120.159.179 ppp-0 Indirect Dynamic
Same again
213.120.159.179 255.255.255.255 81.152.163.116 ppp-0 Direct Dynamic
This is for the PPP link

DHCP or No DHCP is not your problem on XP or linux answer these questions

Type ipconfig -a and show us the results

Can you ping 192.168.1.1 (From XP & Linux)
Can you ping 192.168.1.2 (From XP & Linux)

what does nslookup bbc.co.uk return (From XP & Linux)

what does traceroute bbc.co.uk return (From Linux)

bograt 03-04-2005 01:16 PM

Ok Thanks.

Will check the stuff you asked for.

bograt 03-04-2005 02:40 PM

Quote:

[i]
192.168.1.0 255.255.255.0 192.168.1.1 eth-0 Direct Dynamic
Right fine bit uneccessary
192.168.1.1 255.255.255.255 127.0.0.1 lo-0 Direct Dynamic
Huh
192.168.1.2 255.255.255.255 127.0.0.1 lo-0 Direct Dynamic
Huh


DHCP or No DHCP is not your problem on XP or linux answer these questions

Type ipconfig -a and show us the results

Can you ping 192.168.1.1 (From XP & Linux)
Can you ping 192.168.1.2 (From XP & Linux)

what does nslookup bbc.co.uk return (From XP & Linux)

what does traceroute bbc.co.uk return (From Linux) [/B]
Sorry was a little rushed earlier!

Ok ping on both addressess works fin in XP Getting nothing in Suse

nslookup bbc.co.uk dosn't show anything can't find server

How do I copy the info from command box where I ran ipconfig -a
too here? do I need to do print screen and past>

traceroute bbc.co.uk Nothing happening Plus when I do ping in the command line in Linux nothing happens. ( I'm assuming I do the ping in command line ) not to cleaver with Linux yet.

bograt 03-04-2005 02:45 PM



Update

bograt 03-04-2005 06:27 PM

Is there anyone who can help me with this problem? I tried much of what I know which isn't a lot I even reinstalled Suse with no luck so I can only assume it's a problem with configurations in my router. At the moment i'm having to us XP and realy want to get back to using the big L!

aufomechanic 03-05-2005 03:56 AM

ON Linux use ifconfig -a
On windows use ipconfig /all

And post the results along with the other tests I said. First we have to know if the linux box can even get to the router.

bograt 03-05-2005 09:07 AM

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\dad>ipconfig -all

Windows IP Configuration

Host Name . . . . . . . . . . . . : g1a4x1
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : 192.168.1.1

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : 192.168.1.1
Description . . . . . . . . . . . : VIA Compatable Fast Ethernet Adapter

Physical Address. . . . . . . . . : 00-0E-A6-7C-CA-5E
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.1.113
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
192.168.1.2


-------------------------------------------------------------------------------

C:\Documents and Settings\dad>nslookup bbc.co.uk
*** Can't find server name for address 192.168.1.1: Non-existent domain
DNS request timed out.
timeout was 2 seconds.
*** Can't find server name for address 192.168.1.2: Timed out
*** Default servers are not available
Server: UnKnown
Address: 192.168.1.1

Non-authoritative answer:
Name: bbc.co.uk
Address: 212.58.228.154

Looks like everythings balls up
-------------------------------------------------------------------------------

Will Paste Linux info in a while and hopefully you can help me sort this mess out. :(

bograt 03-05-2005 09:45 AM

How do I copy the info of ifconfig -a from root to a text doc so I can trasfare it to my windows directory so I can cut and paste it here????

aufomechanic 03-05-2005 09:51 AM

ifconifg -a > /tmp/ifconfig.txt

ftp ifconfig to some server

start windows again and pull it down


also do ping -b 192.168.1.0
also do ping -b 192.168.2.0
also do ping -b 192.168.0.0

And paste the results

also do netstat -rn will return summit like

192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


The last entry that starts with 0.0.0.0 in my case "0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0"
ping the second entry e.g. ping 192.168.0.1

and also do nslookup bbc.co.uk

bograt 03-05-2005 10:35 AM

Update



aufomechanic 03-05-2005 10:53 AM

I meant you to do it in linux.

From the windows box
your IP should be 192.168.1.113 and gateway 192.168.1.1

So do this on the linux box as root

ifconfig eth0 192.168.1.113 netmask 255.255.255.0 up

ping 192.168.1.1
and
ping 192.168.1.2

If that works the linux box can get to router!

Then
route add default gw 192.168.1.1

Now the next part I dont think you have domainserver set up.

echo "nameserver 192.168.1.1" >> /etc/resolv.conf
echo "nameserver 192.168.1.2" >> /etc/resolv.conf

Now do

nslookup bbc.co.uk

And tell me what you got back for all the commands.

Just do the above as I set it out!


All times are GMT -5. The time now is 04:39 AM.