LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem with setting up my SuSE as router (https://www.linuxquestions.org/questions/linux-networking-3/problem-with-setting-up-my-suse-as-router-457004/)

Unicron 06-29-2006 08:46 AM

Can you run
Quote:

ipconfig /all
on your laptop and post the results.

proff 06-29-2006 03:43 PM

reply
 
@x86processor:

No GNU/Linux on laptop. Only Windows XP Service Pack 2.
The route command for windows is "route PRINT" and its output looks fine.
Code:

===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x20002 ...00 08 74 4c f1 4d ...... 3Com 3C920 Integrated Fast Ethernet Controll
er (3C905C-TX Compatible) - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway      Interface  Metric
          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.2      20
        127.0.0.0        255.0.0.0        127.0.0.1      127.0.0.1      1
      192.168.0.0    255.255.255.0      192.168.0.2    192.168.0.2      20
      192.168.0.2  255.255.255.255        127.0.0.1      127.0.0.1      20
    192.168.0.255  255.255.255.255      192.168.0.2    192.168.0.2      20
        224.0.0.0        240.0.0.0      192.168.0.2    192.168.0.2      20
  255.255.255.255  255.255.255.255      192.168.0.2    192.168.0.2      1
Default Gateway:      192.168.0.1
===========================================================================
Persistent Routes:
  None

When pinging laptop from linux it says:
Code:

PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
From 192.168.0.1: icmp_seq=12 Destination Host Unreachable
From 192.168.0.1 icmp_seq=12 Destination Host Unreachable
From 192.168.0.1 icmp_seq=13 Destination Host Unreachable
From 192.168.0.1 icmp_seq=14 Destination Host Unreachable

--- 192.168.0.2 ping statistics ---
14 packets transmitted, 0 received, +4 errors, 100% packet loss, time 13046ms
, pipe 3

and vise versa (windows XP pinging SuSE):
Code:

Pinging 192.168.0.1 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.0.1:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),


@Unicron:

here's the result:
Code:

Windows IP Configuration

        Host Name . . . . . . . . . . . . : Choki
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : 3Com 3C920 Integrated Fast Ethernet
Controller (3C905C-TX Compatible)
        Physical Address. . . . . . . . . : 00-08-74-4C-F1-4D
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.0.2
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.0.1
        DNS Servers . . . . . . . . . . . : 192.168.0.1


Novastorm 06-29-2006 07:35 PM

Quote:

Originally Posted by proff
here is something strange:

when i ping yahoo.com from the konsole it says "ping: unknown host yahoo.com",
but when i try to reach the host from Firefox, yahoo pops up in a second.. so..
could this info be in any help for solving the problem above ?

This makes me think that DNS isn't working correctly. What DNS server does the laptop show, if its the IP address of your linux/windows machine then you might not have a DNS server setup on your linux installation. That could cause this problem. Try accessing a website via ip address, eg.

www.google.com 64.233.189.104

Good luck

proff 06-30-2006 01:18 AM

pinging 64.233.189.104 from laptop returns "Request timed out".
There is no problem pinging it from the PC

Btw the problem with pinging hosts was solved when i disabled the
firewall. So i can ping now google.com from the PC with no problem

ebrehu 07-23-2006 03:42 PM

SuSE 10.1 as a router
 
Did you try the 16579.html how-to on the novell site.
Unfortunately, the sysadmin deny me to post the full URL, 'cause I'm posting for the first time. I'll try to write it in other way:
"three times W dot novell dot com slash coolsolutions slash feature slash 16579.html"
it's very detailed and works. The hardware topology is just like yours.



Quote:

Originally Posted by proff
Hi

My problem is that after all my efforts and reading i cannot setup my suse to act like a router for my home network.

The situation is like this:
I have a PC with both windows and SuSE 10.1.0 installed.
It has two Ethernet Adapters - eth0 (Realtek) and eth1 (Davicom)
In eth0 goes the ISP cable, that provides Internet for my windows and suse.
I use pppoe-start to authenticate with my ISP and make the connection.
eth0 is configured to receive automatic settings through DHCP
eth1 is configured as following:
IP: 192.168.1.1
Subnet Mask: 255.255.255.0
DNS: none
GW: none


On the other hand i have a laptop with windows XP installed and a singular ethernet adapter.
I have a switch that makes the connection between my PC's eth1 and the Laptop adapter.
When I boot my PC in Windows I use Internet Connection Sharing to provide Internet access to the Laptop and it works.

I want to make SuSE route the existing internet connection from eth0 to eth1 and from there to the laptop.

I tried different configs of eth1 in SuSE and echo 1 > /proc/sys/net/ipv4/ip_forward,
but nothing worked.

I cannot even ping my PC's eth1 IP (192.168.1.1) from the laptop when i am in SUSE.
The configuration of the laptop's Network card is like this:
IP: 192.168.1.2
Subnet Mask: 255.255.255.0
GW: 192.168.1.1
DNS: 192.168.1.1


Any ideas :) ?


proff 07-24-2006 03:35 PM

Thanks a lot, ebrehu !
I'll check this out and write as soon as possible


All times are GMT -5. The time now is 09:12 PM.