IP - Routing issue?


 
Thread Tools Search this Thread
Special Forums IP Networking IP - Routing issue?
# 1  
Old 07-12-2009
PHP IP - Routing issue?

I have an IP routing issue or I am just to stupid to work it out myself.

I have setup am old PC running SUSE Linux 11.3 as a router, the system has 3 Interfaces connecting 3 networks.

Interface 1 = 10.164.2.161/21
Interface 2 = 192.168.1.210/24
Interface 3 = 30.1.0.11/16

The default Gateway is 10.164.0.35 - access to the outside world.

IP Forwarding is enabled and firewall is disabled for now.

Now I am able to ping,trace, access across the box without any issues unless I am trying to reach the outside. For example a ping from 30.1.0.2 to 10.164.2.100 works without issues, if I ping 10.164.0.35 my defined default gateway it will not find it.

Obviously I am doing something wrong or I have forgoten to define a route or something as such any help or suggestions are greatly appreciated.

Cheers ...
# 2  
Old 07-13-2009
Hello i think this may help you.

nano /etc/sysconfig/network/routes

route add -net 10.164.0.0/21 gw 10.164.0.135
route add -net 192.168.1.0/24 gw 10.164.0.135
route add -net 30.1.0.0/16 gw 10.164.0.135

route add defaltul gw 10.164.0.135/25

If this does not work, could you add the netstat -rn and the route output to the case and we can review better the issue, and also you can add the interfaces outputs so we can verify if they are configured to support what you request.

Best regards,

Luis
# 3  
Old 07-13-2009
Luis,

thanks for tryiing help, I made those suggested changes without much luck and have enlcosed the route output:

[IMG]file:///C:/DOCUME%7E1/lenzent/LOCALS%7E1/Temp/moz-screenshot.jpg[/IMG]Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth4
10.164.0.0 * 255.255.248.0 U 0 0 0 eth0
30.1.0.0 * 255.255.0.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 10.164.0.35 0.0.0.0 UG 0 0 0 eth0

and the netstat -rn output

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth4
10.164.0.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0
30.1.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
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 10.164.0.35 0.0.0.0 UG 0 0 0 eth0

So, let see if this makes things clearer ...

Thanks Thomas
# 4  
Old 07-13-2009
Hello,

I just review your notes and i am wondering if there is a chance that you check the ip address that you have, on the interfaces, also i would like to recommend a better segmentation of the network, and that u can use a p2p connection whit the gateway in order to make it more secure.

we can help you whit this
network sub netting
routes
and i will like to ask u if there is a chance that u can provide us the ifconfig so we can verify the ipaddress of the interfaces.

Thanks,
# 5  
Old 07-14-2009
Luis,

cannot do anything about the segmentation at this moment in time, it is planned to consolidated those networks this year untill then it will have to work the way it is.

IFConfig print out as per request:

eth0 Link encap:Ethernet HWaddr 00:08:02:40:FE:A6
inet addr:10.164.2.161 Bcast:10.164.7.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2183638 errors:0 dropped:0 overruns:0 frame:0
TX packets:376705 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:183765987 (175.2 Mb) TX bytes:35733810 (34.0 Mb)

eth1 Link encap:Ethernet HWaddr 00:00:24:C3:4B:98
inet addr:30.1.0.11 Bcast:30.1.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:457382 errors:0 dropped:0 overruns:0 frame:0
TX packets:286613 errors:28 dropped:0 overruns:28 carrier:28
collisions:0 txqueuelen:1000
RX bytes:46771480 (44.6 Mb) TX bytes:25163396 (23.9 Mb)
Interrupt:16 Base address:0x2000

eth2 Link encap:Ethernet HWaddr 00:00:24:C3:4B:99
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Base address:0x4000

eth3 Link encap:Ethernet HWaddr 00:00:24:C3:4B:9A
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:21 Base address:0xa000

eth4 Link encap:Ethernet HWaddr 00:00:24:C3:4B:9B
inet addr:192.168.1.210 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4332590 errors:0 dropped:0 overruns:0 frame:0
TX packets:19178 errors:8 dropped:0 overruns:8 carrier:8
collisions:0 txqueuelen:1000
RX bytes:406567872 (387.7 Mb) TX bytes:5252644 (5.0 Mb)
Interrupt:22 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:297 errors:0 dropped:0 overruns:0 frame:0
TX packets:297 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:28884 (28.2 Kb) TX bytes:28884 (28.2 Kb)

pan0 Link encap:Ethernet HWaddr 2A:FE:43:FE:4D:30
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


Hope it helps ...

Cheers Thomas
# 6  
Old 07-14-2009
Try this,

nano /etc/sysconfig/network/routes

route add -net 10.164.0.0 -netmask 255.255.248.0 dev eth0 -gw 10.164.2.135
route add -net 192.168.1.0 -netmask 255.255.255.0 via 192.168.1.210 dev eth4 -gw 10.164.2.135
route add -net 30.1.0.0 -netmask 255.255.0.0 via 30.10.0.11 dev eth1 -gw 10.164.0.135
ip route add default via 10.164.2.135
route add defaltul gw 10.164.0.135 -netmask 255.255.248.0

Address:
eth4 00:00:24:C3:4B:9B 192.168.1.210 (250 max host per sub net).
eth1 00:00:24:C3:4B:98 30.1.0.11 (This is a public ip address and you must not use them).
eth0 00:08:02:40:FE:A6 10.164.2.161 (2046 max host per sub net, it is recommended to use about like 500 host per sub net, because the broadcast storms can affect the network).

Best regards,
# 7  
Old 07-23-2009
Luis,

sorry for not getting back sooner, I would like to thank your for your efforts but unfortunately this is not working either. I think I will park the whole for the time ...

Again thanks for your efforts and help ...

Cheers Thomas
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Facing issue in ip6table rule for port based routing management

Hi, Please help me on issue described below, I have 4 machine setup, M1 -> M2 -> M3 | M4. And A laptop that can be reachable through both M3 and M4. M2 has 2 NIC conected to M3 and M4. Now I want to divide the flow coming from M1 for laptop. At M2, I have done following,... (1 Reply)
Discussion started by: rahulbhansali24
1 Replies

2. Solaris

Routing Issue

we are not able to ping client server (falcon-ebr.sbms.bsc.com) from netbackup master server (135.179.96.122 tsprd-ebr.edc.single.net) However from client server we are able to ping the master Server. Please assist on this (1 Reply)
Discussion started by: Rahul466
1 Replies

3. IP Networking

This looks like a tough routing issue

Hi, The default gateway (172.17.220.1) cannot be pinged via the default interface bond0 (172.17.220.231), but can be pinged via interface eth1 (10.201.135.73). # ping -I eth1 172.17.220.1 PING 172.17.220.1 (172.17.220.1) from 10.201.135.73 eth1: 56(84) bytes of data. 64 bytes from... (4 Replies)
Discussion started by: aixlover
4 Replies

4. UNIX for Dummies Questions & Answers

Routing issue - local vs LAN

hi guys suse 11 SP1 x64 I have a server (4 NIC ports 192.168.100.100-103) that connects point to point to a storage device (same thing 4 ports 192.168.110.100-113) but this server connects to normal LAN 10.6.100.x - gateway 10.6.100.1 the issue is when testing connectivity to the storage... (7 Replies)
Discussion started by: karlochacon
7 Replies

5. IP Networking

Need help with a routing issue.

I have run into a wall troubleshooting a Centos 5 networking issue. Hoping someone can assist. I've got a box with two vlans trunked over bond0 bond0 Link encap:Ethernet HWaddr 00:22:64:C1:D6:60 inet6 addr: fe80::222:64ff:fec1:d660/64 Scope:Link ... (0 Replies)
Discussion started by: creedog
0 Replies

6. AIX

AIX Routing Issue

Hello, I've moved to a new network with multiple AIX box's. Most of them are working fine and dandy. On one box I need to set up a static route to a gateway.. no problem right? Whenever I add the route it appears in the routing table as UGc and then begins adding new entries to the... (1 Reply)
Discussion started by: joshstar14
1 Replies

7. IP Networking

IP Routing

I am using RedHat Linux 9, In this box their are two lan intefaces. eth0 ====> LAN 192.168.100.100 255.255.255.0 eth1 ====> Internet Static IP 255.255.255.0 59.144.168.226 (Gateway) I want to define a gateway 59.144.168.226 for my LAN... (2 Replies)
Discussion started by: jaibw
2 Replies

8. Linux

Routing

Hello Friends I have two network cards eth0 192.168.100.1 eth1 10.0.0.1 There NIC connect with diff. LAN I want to make my Linux machine as a Router, Please tell me using IPTABLES command ROUTE command :) (2 Replies)
Discussion started by: jaibw
2 Replies

9. UNIX for Advanced & Expert Users

routing

Hi, in which file and how shuold be decalred a gateway and its IP adresse ? Where and how add a gateway ? Many thanks before. (4 Replies)
Discussion started by: big123456
4 Replies

10. UNIX for Dummies Questions & Answers

routing

Can anyone help with the following; I am working on a unix server (Apple OS X Server). We have two network cards in the server. Both cards are on different subnets i.e en1 is on 192.168.10.10/24 and the built in ethernet is on 10.10.150.10/24. From a computer plugged into en1 (and set to ip... (5 Replies)
Discussion started by: mrthrt
5 Replies
Login or Register to Ask a Question