Koozali.org: home of the SME Server

Routing lan to a diffrent router

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Routing lan to a diffrent router
« on: January 09, 2007, 01:01:27 AM »
I'm looking for the proper way to have sme7 use a different gateway for its LAN traffic...

The actual routes send LAN traffic to eth1 instead of eth0:

Quote
[root@smeserver ~]# route -n
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
192.168.5.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
172.16.0.0      0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         172.16.0.1      0.0.0.0         UG    0      0        0 eth1


I need to have 192.168.5.0 going through 192.168.5.1, with sme having IP 192.168.5.2

Any help?!
Sophie from Montréal

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Routing lan to a diffrent router
« Reply #1 on: January 09, 2007, 02:53:29 AM »
Quote from: "soprom"
I'm looking for the proper way to have sme7 use a different gateway for its LAN traffic...

The actual routes send LAN traffic to eth1 instead of eth0:

Quote
[root@smeserver ~]# route -n
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
192.168.5.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
172.16.0.0      0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         172.16.0.1      0.0.0.0         UG    0      0        0 eth1


I need to have 192.168.5.0 going through 192.168.5.1, with sme having IP 192.168.5.2

Any help?!


192.168.5.* traffic does not go through any router. That is your LAN, and all 192.168.5.* addresses should be attached via a switch (or hub) to your LAN NIC (eth0) which has address 192.168.5.2.

If what I have said doesn't make sense to you, then I suggest that you find and read a tutorial on IP network addressing.

BTW, your LAN traffic *is* sent to eth0, not to eth1.

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Routing lan to a diffrent router
« Reply #2 on: January 09, 2007, 05:32:30 AM »
I understand what you say but the machine doesn't seem to behave like so.
Quote
[root@smeserver ~]# ping 192.168.5.1
PING 192.168.5.1 (192.168.5.1) 56(84) bytes of data.
From 192.168.5.2 icmp_seq=0 Destination Host Unreachable


Thanks for clarifying I didn't have to mess with this.
I'll recheck the setup. There might be a defective NIC controling the LAN.
Quote
traceroute to 192.168.5.1 (192.168.5.1), 30 hops max, 38 byte packets
 1  smeserver (192.168.5.2)  3000.059 ms !HIcmp checksum is wrong
Sophie from Montréal

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Routing lan to a diffrent router
« Reply #3 on: January 09, 2007, 03:53:10 PM »
Quote from: "soprom"

There might be a defective NIC controling the LAN.


Or cable, or switch. or network interface on whatever is at 192.168.5.1.